-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the problems discovered in the upgrade test (#10826)
## Problem The nightly test discovered problems in the extensions upgrade test. 1. `PLv8` has different versions on PGv17 and PGv16 and a different test set, which was not implemented correctly [sample](https://github.com/neondatabase/neon/actions/runs/13382330475/job/37372930271) 2. The same for `semver` [sample](https://github.com/neondatabase/neon/actions/runs/13382330475/job/37372930017) 3. `pgtap` interfered with the other tests, e.g. tables, created by other extensions caused the tests to fail. ## Summary of changes The discovered problems were fixed. 1. The tests list for `PLv8` is now generated using the original Makefile 2. The patches for `semver` are now split for PGv16 and PGv17. 3. `pgtap` is being tested in a separate database now. --------- Co-authored-by: Mikhail Kot <[email protected]>
- Loading branch information
1 parent
a4e3989
commit 7199919
Showing
8 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
docker-compose/ext-src/pg_semver-src/test-upgrade-17.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/test/sql/base.sql b/test/sql/base.sql | ||
index 53adb30..2eed91b 100644 | ||
--- a/test/sql/base.sql | ||
+++ b/test/sql/base.sql | ||
@@ -2,7 +2,6 @@ | ||
BEGIN; | ||
|
||
\i test/pgtap-core.sql | ||
-CREATE EXTENSION semver; | ||
|
||
SELECT plan(334); | ||
--SELECT * FROM no_plan(); | ||
diff --git a/test/sql/corpus.sql b/test/sql/corpus.sql | ||
index c0fe98e..39cdd2e 100644 | ||
--- a/test/sql/corpus.sql | ||
+++ b/test/sql/corpus.sql | ||
@@ -4,7 +4,6 @@ BEGIN; | ||
-- Test the SemVer corpus from https://regex101.com/r/Ly7O1x/3/. | ||
|
||
\i test/pgtap-core.sql | ||
-CREATE EXTENSION semver; | ||
|
||
SELECT plan(76); | ||
--SELECT * FROM no_plan(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
set -ex | ||
cd "$(dirname ${0})" | ||
patch -p1 <test-upgrade.patch | ||
patch -p1 <test-upgrade-${PG_VERSION}.patch | ||
psql -d contrib_regression -c "DROP EXTENSION IF EXISTS pgtap" | ||
PG_REGRESS=$(dirname "$(pg_config --pgxs)")/../test/regress/pg_regress | ||
${PG_REGRESS} --use-existing --inputdir=./ --bindir='/usr/local/pgsql/bin' --inputdir=test --dbname=contrib_regression base corpus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7199919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7697 tests run: 7316 passed, 0 failed, 381 skipped (full report)
Flaky tests (4)
Postgres 17
test_migration_to_cold_secondary
: release-x86-64-without-lfctest_branched_empty_timeline_size
: debug-x86-64-without-lfctest_only_heads_within_horizon
: debug-x86-64-without-lfctest_race_conditions
: debug-x86-64-without-lfcCode coverage* (full report)
functions
:32.9% (8621 of 26193 functions)
lines
:48.9% (72720 of 148858 lines)
* collected from Rust tests only
7199919 at 2025-02-19T09:03:28.935Z :recycle: