From c610f3584df1fa7abe1a18d33bba7e647e33d29c Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Wed, 9 Apr 2025 08:52:49 +0200 Subject: [PATCH] test_runner: tweak `test_create_snapshot` compaction (#11495) ## Problem With the recent improvements to L0 compaction responsiveness, `test_create_snapshot` now ends up generating 10,000 layer files (compared to 1,000 in previous snapshots). This increases the snapshot size by 4x, and significantly slows down tests. ## Summary of changes Increase the target layer size from 128 KB to 256 KB, and the L0 compaction threshold from 1 to 5. This reduces the layer count from about 10,000 to 1,000. --- test_runner/regress/test_compatibility.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_runner/regress/test_compatibility.py b/test_runner/regress/test_compatibility.py index 2230bdc666..e23b1e0bca 100644 --- a/test_runner/regress/test_compatibility.py +++ b/test_runner/regress/test_compatibility.py @@ -148,9 +148,9 @@ def test_create_snapshot( env = neon_env_builder.init_start( initial_tenant_conf={ # Miniature layers to enable generating non-trivial layer map without writing lots of data. - "checkpoint_distance": f"{128 * 1024}", - "compaction_threshold": "1", - "compaction_target_size": f"{128 * 1024}", + "checkpoint_distance": f"{256 * 1024}", + "compaction_threshold": "5", + "compaction_target_size": f"{256 * 1024}", } ) endpoint = env.endpoints.create_start("main")