Skip to content

tests: live-ruleset gate test marked slow, one shared gate derivation (Closes #5314) - #5315

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5314-20261017T0655Z
Oct 17, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5314-20261017T0655Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_matches took 16.1 s on the runner, over the 15 s limit, with no slow mark. 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.
  • The failing test gets @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 --check clean.
  • No engine change, so no golden bless.

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

…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 17, 2026 06:58
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 06:59
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 0e39ebb into main Oct 17, 2026
44 checks passed
@squid-protocol
squid-protocol deleted the churn/5314-20261017T0655Z branch October 17, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant