Repository navigation
[CI] Allow test_free_tier_basic_gates YAML parse in fast-unit duration guard (#22000) - #22005
Conversation
Git-on-my-level
left a comment
There was a problem hiding this comment.
Reviewed the single changed file and the guard machinery it feeds.
The diff itself checks out. backend/tests/fast_unit_duration_allowlist.txt (+2 lines) adds a dated comment and the nodeid tests/unit/test_free_tier_basic_gates.py::test_dev_lights_each_gate_on_the_identities_that_run_its_code_path. Verified:
- The test exists on main at
tests/unit/test_free_tier_basic_gates.py:95, and main's allowlist does not already contain it — the exemption is new, not duplicated. - The entry format parses correctly under
conftest._read_duration_allowlist()(comment stripping + optionalbackend/prefix removal), and_enforce_fast_unit_duration_guard()exempts exactly this nodeid from the 1.00s hard-fail budget while its assertions still run. The global threshold is untouched. - The comment-plus-entry style matches the precedent entries directly above (e.g. the 2026-10-16
test_dream_replay.pyentry), and the 1.01s-vs-1.00s CPU overrun under runner load matches the #22000 log you quoted.
One blocker, and it's metadata rather than code: the Hygiene check fails in failure-class-protocol with missing_declaration — because the commit subject begins with fix:, the PR body must carry a Failure-Class: declaration. Please add exactly one accepted form to the PR description:
Failure-Class: none
(or Failure-Class: new / Failure-Class: FC-<lower-kebab-slug> if you believe this fix maps to a semantic failure class). This is a PR-description edit only; no code change is needed, and once it lands the change looks good from my side.
This feedback is AI-generated on behalf of the maintainer team.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
|
Added |
a837f1e to
adf6dde
Compare
Dismissing as resolved: the PR description now declares 'Failure-Class: none' and the Hygiene check passes on the current head; no remaining concerns from this review.
|
Since my last review: addressed (the PR description now declares The change is correct and complete as far as I can verify — the one metadata blocker from my earlier review is resolved, and a maintainer has already approved. Re-verified on the current head:
Performance: no production code changes; the only effect is that one known-slow test's YAML parse no longer hard-fails the fast-unit guard under runner contention. Blast radius: backend CI only. USER IMPACT: none — internal change; this only stops a CI flake, nothing a user will notice. Nothing further needed from me; leaving the merge decision with the maintainers. This feedback is AI-generated on behalf of the maintainer team. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Failure-Class: none
Summary of Changes
Exempts
tests/unit/test_free_tier_basic_gates.py::test_dev_lights_each_gate_on_the_identities_that_run_its_code_pathfrom the fast-unit duration guard inbackend/tests/fast_unit_duration_allowlist.txt.Root Cause / Technical Context
Main CI on
BasedHardware/omireported red on Issue #22000 (Run 39009717558, SHA61803e04ca). Investigation of the shard 4/6 execution log revealed:test_dev_lights_each_gate_on_the_identities_that_run_its_code_pathis the first test intest_free_tier_basic_gates.pyto invoke@functools.cache def _composed(), which reads and parsesbackend/deploy/runtime_env.yaml(248 KB). Under parallel CI runner contention, PyYAMLSafeLoaderexecution in the call phase measured1.01s CPU, marginally exceeding the1.00shard fail budget while all assertions passed. Subsequent tests in the suite hit cache in<0.001s.Following the precedent set for
test_conversation_notes_v2_beta_rollout.pyandtest_plan_quota_env_retirement.py, this test is added tofast_unit_duration_allowlist.txtto prevent contention flakes without relaxing the global fast-unit duration threshold.Verification & Testing
conftest._read_duration_allowlist()and_enforce_fast_unit_duration_guard():True0backend/tests/fast_unit_duration_allowlist.txtwith zero modifications to test code or logic.Impact & Compatibility