From eafa5d2db8cd6bed5af5fe3d8a3a71b5555d1b9e Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 5 Jul 2024 11:06:17 +0000 Subject: [PATCH] tests: full compaction at end of pg_regress tests --- test_runner/regress/test_pg_regress.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test_runner/regress/test_pg_regress.py b/test_runner/regress/test_pg_regress.py index 2a3f150fc9..54b493ec70 100644 --- a/test_runner/regress/test_pg_regress.py +++ b/test_runner/regress/test_pg_regress.py @@ -12,6 +12,7 @@ from fixtures.neon_fixtures import ( NeonEnv, NeonEnvBuilder, check_restored_datadir_content, + tenant_get_shards, ) from fixtures.pg_version import PgVersion from fixtures.remote_storage import s3_storage @@ -106,6 +107,13 @@ def post_checks(env: NeonEnv, test_output_dir: Path, db_name: str, endpoint: End check_restored_datadir_content(test_output_dir, env, endpoint, ignored_files=ignored_files) + # Ensure that compaction works, on a timeline containing all the diversity that postgres regression tests create. + # There should have been compactions mid-test as well, this final check is in addition those. + for shard, pageserver in tenant_get_shards(env, env.initial_tenant): + pageserver.http_client().timeline_checkpoint( + shard, env.initial_timeline, force_repartition=True, force_image_layer_creation=True + ) + # Run the main PostgreSQL regression tests, in src/test/regress. #