Skip to content

Commit e2e3b8a

Browse files
committed
Disable tests using injection points in installcheck
The 'gin' test injections faults to GIN index build. If another test running concurrently in the same cluster also tries to create a GIN index, it will hit the fault, too. To fix, disable tests using injection points when running against an existing cluster. A better long-term solution would be to make the injection points scoped to the database or process, but this will do for now. Discussion: https://www.postgresql.org/message-id/CA%2BhUKGJYhcG_o2nwSK6r01eOZJwNWUJUbX%3D%3DAVnW84f-%2B8yamQ@mail.gmail.com Discussion: https://www.postgresql.org/message-id/10fd6cdd-c5d9-46fe-9fa1-7e661191309e@iki.fi
1 parent 071e3ad commit e2e3b8a

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

src/test/modules/gin/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ EXTRA_INSTALL = src/test/modules/injection_points
44

55
REGRESS = gin_incomplete_splits
66

7+
# The injection points are cluster-wide, so disable installcheck
8+
NO_INSTALLCHECK = 1
9+
710
ifdef USE_PGXS
811
PG_CONFIG = pg_config
912
PGXS := $(shell $(PG_CONFIG) --pgxs)

src/test/modules/gin/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ tests += {
1212
'sql': [
1313
'gin_incomplete_splits',
1414
],
15+
# The injection points are cluster-wide, so disable installcheck
16+
'runningcheck': false,
1517
},
1618
}

src/test/modules/injection_points/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ PGFILEDESC = "injection_points - facility for injection points"
88

99
REGRESS = injection_points
1010

11+
# The injection points are cluster-wide, so disable installcheck
12+
NO_INSTALLCHECK = 1
13+
1114
ifdef USE_PGXS
1215
PG_CONFIG = pg_config
1316
PGXS := $(shell $(PG_CONFIG) --pgxs)

src/test/modules/injection_points/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ tests += {
3333
'sql': [
3434
'injection_points',
3535
],
36+
# The injection points are cluster-wide, so disable installcheck
37+
'runningcheck': false,
3638
},
3739
}

0 commit comments

Comments
 (0)