From 3451bdd3d219c04a28a3f0499924827a816ca0c8 Mon Sep 17 00:00:00 2001 From: "Alex Chi Z." <4198311+skyzh@users.noreply.github.com> Date: Mon, 10 Mar 2025 16:03:49 -0400 Subject: [PATCH] fix(test): force L0 compaction before gc-compaction (#11143) ## Problem Fix test flakyness of `test_gc_feedback` Closes: https://github.com/neondatabase/neon/issues/11153 ## Summary of changes Looking at the log, gc-compaction is interrupted by L0 compaction. Signed-off-by: Alex Chi Z --- test_runner/performance/test_gc_feedback.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_runner/performance/test_gc_feedback.py b/test_runner/performance/test_gc_feedback.py index acb7b56fd0..7c9e9f47c8 100644 --- a/test_runner/performance/test_gc_feedback.py +++ b/test_runner/performance/test_gc_feedback.py @@ -69,6 +69,9 @@ def gc_feedback_impl(neon_env_builder: NeonEnvBuilder, zenbenchmark: NeonBenchma env.create_branch("child") branch_created += 1 + # Ensure L0 layers are compacted so that gc-compaction doesn't get preempted. + client.timeline_checkpoint(tenant_id, timeline_id, force_l0_compaction=True) + max_num_of_deltas_above_image = 0 max_total_num_of_deltas = 0 for key_range in client.perf_info(tenant_id, timeline_id):