From 0ad035e28412bb54eede676f7a89c8d9e463a644 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 16 Nov 2026 10:06:40 +0800 Subject: [PATCH] Loosen the goldens tolerance for deterministic cases to 5e-6 ubuntu-26.04 runners differ from the goldens by up to ~2e-6 on array_s2_overlap0_logits_tiny0, failing the weekly slow tier. Co-Authored-By: Claude Opus 5.5 --- tests/test_goldens.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_goldens.py b/tests/test_goldens.py index 284adc7..a7a5ba6 100644 --- a/tests/test_goldens.py +++ b/tests/test_goldens.py @@ -48,7 +48,7 @@ def test_tiny_models_load(name): def test_goldens_reproduce_with_ocm(): """Rerun the tiny-model cases with OCM live and compare: classes exactly, values within - 1e-6 where OCM is deterministic (see scripts/make_goldens.py), else 1e-5.""" + 5e-6 where OCM is deterministic (see scripts/make_goldens.py), else 1e-5.""" pytest.importorskip("omnicloudmask") pytest.importorskip("rasterio") sys.path.insert(0, str(Path(__file__).parents[1] / "scripts")) @@ -68,6 +68,6 @@ def test_goldens_reproduce_with_ocm(): np.testing.assert_array_equal(value, old[key], err_msg=f"{name}:{key}") else: # deterministic cases are bitwise only on the CPU that generated them; other - # CPUs' kernels differ by up to ~7e-7 (seen on CI runners) - atol = 1e-6 if exact else 1e-5 + # CPUs' kernels differ by up to ~2e-6 (seen on ubuntu-26.04 CI runners) + atol = 5e-6 if exact else 1e-5 np.testing.assert_allclose(value, old[key], atol=atol, err_msg=f"{name}:{key}")