mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-03 19:42:55 +00:00
## Problem Currently, we run the `pg_regress` tests only for PG16 However, PG17 is a part of Neon and should be tested as well ## Summary of changes Modified the workflow and added a patch for PG17 enabling the `pg_regress` tests. The problem with leftovers was solved by using branches.
How to run the pg_regress tests on a cloud Neon instance.
- Create a Neon project on staging.
- Grant the superuser privileges to the DB user.
- (Optional) create a branch for testing
- Configure the endpoint by updating the control-plane database with the following settings:
Timeone:America/Los_AngelesDateStyle:Postgres,MDYcompute_query_id:off
- Checkout the actual
Neonsources - Patch the sql and expected files for the specific PostgreSQL version, e.g. for v17:
$ cd vendor/postgres-v17
$ patch -p1 <../../compute/patches/cloud_regress_pg17.patch
- Set the environment variable
BENCHMARK_CONNSTRto the connection URI of your project. - Set the environment variable
PG_VERSIONto the version of your project. - Run
$ pytest -m remote_cluster -k cloud_regress