Files
neon/test_runner/cloud_regress
Alexander Bayandin 30a7dd630c ruff: enable TC — flake8-type-checking (#11368)
## Problem

`TYPE_CHECKING` is used inconsistently across Python tests.

## Summary of changes
- Update `ruff`: 0.7.0 -> 0.11.2
- Enable TC (flake8-type-checking):
https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc
- (auto)fix all new issues
2025-03-30 18:58:33 +00:00
..

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_Angeles
    • DateStyle: Postgres,MDY
    • compute_query_id: off
  • Checkout the actual Neon sources
  • 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_CONNSTR to the connection URI of your project.
  • Set the environment variable PG_VERSION to the version of your project.
  • Run
$ pytest -m remote_cluster -k cloud_regress