From dd52f14fcec35bb60b32712af0268d63fc29e1f5 Mon Sep 17 00:00:00 2001 From: Shay Date: Fri, 3 Jul 2026 12:24:24 -0700 Subject: [PATCH] test: fix CORE_SHOWCASE_SKIP_BUDGET enforcement --- tests/test_public_showcase.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_public_showcase.py b/tests/test_public_showcase.py index 1dc1a33c..5c5b1ccc 100644 --- a/tests/test_public_showcase.py +++ b/tests/test_public_showcase.py @@ -69,12 +69,9 @@ class TestShowcaseExecution: for claim in scene["claims"]: assert claim["supported"] is True - @pytest.mark.skipif( - _CI_BUDGET_SKIPPED, - reason="ADR-0099 runtime budget is a production contract; " - "set CORE_SHOWCASE_SKIP_BUDGET=1 suppresses enforcement on slow CI runners", - ) def test_runtime_within_budget(self, showcase_payload: dict[str, Any]) -> None: + if os.environ.get("CORE_SHOWCASE_SKIP_BUDGET") == "1": + pytest.skip("ADR-0099 runtime budget is a production contract; suppressed on slow CI runners") runtime_ms = showcase_payload["total_runtime_ms"] budget_ms = MAX_RUNTIME_SECONDS * 1000 assert runtime_ms <= budget_ms, (