From 775c0c88928f4c94de7dc52043b982a9791f6c48 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 25 Jul 2024 15:00:42 +0100 Subject: [PATCH] tests: adjust threshold in test_partial_evict_tenant (#8509) ## Problem This test was destabilized by https://github.com/neondatabase/neon/pull/8431. The threshold is arbitrary & failures are still quite close to it. At a high level the test is asserting "eviction was approximately fair to these tenants", which appears to still be the case when the abs diff between ratios is slightly higher at ~0.6-0.7. ## Summary of changes - Change threshold from 0.06 to 0.065. Based on the last ~10 failures that should be sufficient. --- test_runner/regress/test_disk_usage_eviction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runner/regress/test_disk_usage_eviction.py b/test_runner/regress/test_disk_usage_eviction.py index 91c7b97fdd..85616c3fe2 100644 --- a/test_runner/regress/test_disk_usage_eviction.py +++ b/test_runner/regress/test_disk_usage_eviction.py @@ -591,7 +591,7 @@ def test_partial_evict_tenant(eviction_env: EvictionEnv, order: EvictionOrder): abs_diff = abs(ratio - expected_ratio) assert original_count > count_now - expectation = 0.06 + expectation = 0.065 log.info( f"tenant {tenant_id} layer count {original_count} -> {count_now}, ratio: {ratio}, expecting {abs_diff} < {expectation}" )