test: fix CORE_SHOWCASE_SKIP_BUDGET enforcement
This commit is contained in:
parent
cff3781d7c
commit
dd52f14fce
1 changed files with 2 additions and 5 deletions
|
|
@ -69,12 +69,9 @@ class TestShowcaseExecution:
|
||||||
for claim in scene["claims"]:
|
for claim in scene["claims"]:
|
||||||
assert claim["supported"] is True
|
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:
|
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"]
|
runtime_ms = showcase_payload["total_runtime_ms"]
|
||||||
budget_ms = MAX_RUNTIME_SECONDS * 1000
|
budget_ms = MAX_RUNTIME_SECONDS * 1000
|
||||||
assert runtime_ms <= budget_ms, (
|
assert runtime_ms <= budget_ms, (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue