@@ -103,7 +103,7 @@ def build_debug_config(overrides):
103103 "pg_extensions" : "postgres_fdw test_decoding" ,
104104 "installcheck" : True ,
105105 "pginstallcheck" : True ,
106- "tsdb_build_args" : "-DWARNINGS_AS_ERRORS=ON -DREQUIRE_ALL_TESTS=ON " ,
106+ "tsdb_build_args" : "-DWARNINGS_AS_ERRORS=ON" ,
107107 }
108108 )
109109 base_config .update (overrides )
@@ -119,7 +119,7 @@ def build_release_config(overrides):
119119 {
120120 "name" : "Release" ,
121121 "build_type" : "RelWithDebInfo" ,
122- "tsdb_build_args" : "-DWARNINGS_AS_ERRORS=ON -DREQUIRE_ALL_TESTS=ON " ,
122+ "tsdb_build_args" : "-DWARNINGS_AS_ERRORS=ON" ,
123123 "coverage" : False ,
124124 }
125125 )
@@ -145,7 +145,7 @@ def build_apache_config(overrides):
145145 {
146146 "name" : "ApacheOnly" ,
147147 "build_type" : "RelWithDebInfo" ,
148- "tsdb_build_args" : "-DWARNINGS_AS_ERRORS=ON -DREQUIRE_ALL_TESTS=ON - DAPACHE_ONLY=1" ,
148+ "tsdb_build_args" : "-DWARNINGS_AS_ERRORS=ON -DAPACHE_ONLY=1" ,
149149 "coverage" : False ,
150150 }
151151 )
@@ -179,9 +179,7 @@ def macos_config(overrides):
179179 "pg_extensions" : "postgres_fdw test_decoding" ,
180180 "pginstallcheck" : True ,
181181 "tsdb_build_args" : (
182- " -DASSERTIONS=ON"
183- " -DREQUIRE_ALL_TESTS=ON"
184- f" -DOPENSSL_ROOT_DIR={ openssl_path } "
182+ " -DASSERTIONS=ON" f" -DOPENSSL_ROOT_DIR={ openssl_path } "
185183 ),
186184 }
187185 )
@@ -415,19 +413,23 @@ def macos_config(overrides):
415413
416414 if tests :
417415 to_run = [t for t in list (tests ) if t not in flaky_exclude_tests ] * 20
418- random .shuffle (to_run )
419- installcheck_args = f'TESTS="{ " " .join (to_run )} "'
420- m ["include" ].append (
421- build_debug_config (
422- {
423- "coverage" : False ,
424- "installcheck_args" : installcheck_args ,
425- "name" : "Flaky Check Debug" ,
426- "pg" : PG18_LATEST ,
427- "pginstallcheck" : False ,
428- }
416+ # Skip the Flaky job when every changed test is excluded. Otherwise
417+ # TESTS="" makes `make installcheck` run the full suite, which exposes
418+ # pre-existing XX000s the per-test loop would never have touched.
419+ if to_run :
420+ random .shuffle (to_run )
421+ installcheck_args = f'TESTS="{ " " .join (to_run )} "'
422+ m ["include" ].append (
423+ build_debug_config (
424+ {
425+ "coverage" : False ,
426+ "installcheck_args" : installcheck_args ,
427+ "name" : "Flaky Check Debug" ,
428+ "pg" : PG18_LATEST ,
429+ "pginstallcheck" : False ,
430+ }
431+ )
429432 )
430- )
431433
432434# generate command to set github action variable
433435with open (os .environ ["GITHUB_OUTPUT" ], "a" , encoding = "utf-8" ) as output :
0 commit comments