From: Daniele Varrazzo Date: Thu, 13 Feb 2025 17:44:32 +0000 (+0100) Subject: ci(crdb): enable back crdb 25.1 tests X-Git-Tag: 3.3.0.dev1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8fa00726fa9cc257aa8f62735c240bae839a618;p=thirdparty%2Fpsycopg.git ci(crdb): enable back crdb 25.1 tests Test were failing because of the setting 'autocommit_before_ddl' now defaulting to 'on'. After exchanging with CRDB developer, this seems the correct behaviour for their database moving on. --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ebf8b664..9e702c466 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -380,8 +380,8 @@ jobs: # https://us-docker.pkg.dev/v2/cockroach-cloud-images/cockroachdb/cockroach/tags/list \ # | jq .tags | egrep 'latest-[^-]+-build' | sort # Suspended as currently failing - # - {impl: c, crdb: "latest-master-build", python: "3.13"} - # - {impl: c, crdb: "latest-v25.1-build", python: "3.13", libpq: newest} + - {impl: c, crdb: "latest-master-build", python: "3.13"} + - {impl: c, crdb: "latest-v25.1-build", python: "3.13", libpq: newest} - {impl: c, crdb: "latest-v24.3-build", python: "3.9", libpq: newest} - {impl: python, crdb: "latest-v23.2-build", python: "3.12"} env: @@ -389,6 +389,10 @@ jobs: DEPS: ./psycopg[test] ./psycopg_pool PSYCOPG_TEST_DSN: "host=127.0.0.1 port=26257 user=root dbname=defaultdb" CRDB_REPO: us-docker.pkg.dev/cockroach-cloud-images/cockroachdb/cockroach + # Since CRDB 25.1, 'on' should become the default, which will break + # the test suite assumption. + # https://www.cockroachlabs.com/docs/stable/online-schema-changes#enable-automatic-commit-before-running-schema-changes-inside-transactions + PGOPTIONS: "-c autocommit_before_ddl=off" steps: - uses: actions/checkout@v4