Repository navigation
tests: live-ruleset gate test marked slow, one shared gate derivation (Closes #5314) - #5315
Merged
Merged
Conversation
…tion (Closes #5314) test_live_gates_accept_every_rules_own_matches derives a gate for every live rule: 16.1 s on a CI runner, over the 15 s per-test limit, unmarked, so the time ratchet failed full-suite part 3/3 on main (run 39008099891). Same mechanism as #5267/#5269. Both live-ruleset tests now share one cached derivation, and this one carries slow(reason=...) because a split part may run it first. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 17, 2026 06:58
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 17, 2026 06:59
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Main's GitGalaxy Smoke Tests failed (run 39008099891, full-suite part 3/3, per-test time ratchet):
test_live_gates_accept_every_rules_own_matchestook 16.1 s on the runner, over the 15 s limit, with noslowmark. It derives a literal gate for every live rule. Its sibling in the same file was marked in #5269.The only failing job was that ratchet step. The later main runs were green or cancelled by newer pushes, so no rerun was needed.
Change (tests only,
tests/core_engine/test_rule_prefilter.py)_every_live_gate()(functools.cache) derives(lang, rule, pattern, gate)once; both live-ruleset tests use it.@pytest.mark.slow(reason=...): a split part can run it first and pay the full derivation.Verification
pytest tests/core_engine/test_rule_prefilter.py: 41 passed in 3 s locally.time_ratchet.py check: 0 over the limit.audit_check.py: all clear;ruff format --checkclean.Class sweep
Same mechanism in this file: the other live-ruleset test (already slow-marked, now shares the derivation). The committed durations list nothing else unmarked over 15 s.
Sibling gaps: 7 tests sit in the 10-15 s warning band (e.g.
test_sweep_plan.py::test_the_marker_is_exactly_the_name_rule_under_extraction,test_det_mq.py::test_the_runtime_is_the_oracle_model_byte_for_byte). They are advisory today and no burned-estate program needs them.🤖 Generated with Claude Code