Skip to content

Mark two near-limit tests slow so the time ratchet stops failing main (Fixes #5267) - #5269

Merged
squid-protocol merged 1 commit into
mainfrom
fix/5267-time-ratchet-slow-marks
Oct 16, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/5267-time-ratchet-slow-marks

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Cause

Main's Smoke Tests run 38922935362 (6857f34) failed only at full-suite part 2/3, step "Per-test time ratchet (#5166)". All tests passed; two unmarked, unbaselined tests were just over the 15 s FAIL_S limit on a slow runner:

  • test_port_ticket_references.py::test_what_no_generated_class_carries_stays_inline: 15.0 s (4.7 s in .test_durations; pays for the module-scoped refract + java fixture)
  • test_rule_prefilter.py::test_extractor_never_raises_and_gates_are_one_sided_on_live_ruleset: 15.6 s (12.2 s in .test_durations; 2.2 s alone locally, so the CI cost is in-suite and not reproducible)

Class table

Class: unmarked, unbaselined tests within ~20% of the 15 s per-test time-ratchet limit.

Member Status Evidence
test_what_no_generated_class_carries_stays_inline handled (this PR): slow(reason) CI 15.0 s
test_extractor_never_raises_and_gates_are_one_sided_on_live_ruleset handled (this PR): slow(reason) CI 15.6 s
Other tests in 10-15 s (7 warnings, e.g. test_det_nondigit_zoned.py::test_a_bad_sign_byte_... 11.1 s, test_refraction_differential.py::test_excerpt_no_new_unexplained[...carddemo] 10.0 s) missing, not failing now time_ratchet.py check output
Other consumers of the generated fixture in test_port_ticket_references.py partial: can pay the fixture cost if a split puts them first module fixture scope

Fix

@pytest.mark.slow(reason=...) on both failing tests. Tests only; no engine change, no golden bless. Caching the prefilter gates was considered and dropped: it would not give a reliable margin.

Verification

  • both files pass (50 tests); time_ratchet.py check (no --times): 0 over the limit
  • pr_gates.py --fast: 6/6; --ratchets --only-ratchets time: pass

Sibling gaps

  • 10-15 s warned tests above: same class, not failing; not marked here (member, status, why not: no failure, would hide regressions).
  • Other generated-fixture consumers: same mechanism, not marked to keep the diff minimal.

Lessons for agents

A module-scoped fixture's cost lands on whichever test runs first in a split part, so any consumer of an expensive fixture can trip the ratchet.

🤖 Generated with Claude Code

…Fixes #5267)

Run 38922935362 failed the per-test time ratchet: test_what_no_generated_class_carries_stays_inline (15.0 s, pays for the module refract+java fixture) and the live-ruleset prefilter property test (15.6 s) were over FAIL_S on a slow runner. Both are inherently heavy; a slow(reason) mark is the ratchet's own remedy.

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 16, 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 16, 2026 15:38
@squid-protocol
squid-protocol enabled auto-merge (squash) October 16, 2026 15:39
@squid-protocol
squid-protocol merged commit 354b907 into main Oct 16, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the fix/5267-time-ratchet-slow-marks branch October 16, 2026 15:55
squid-protocol added a commit that referenced this pull request Oct 16, 2026
…skills and the pr-worker (Part of #5280)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 16, 2026
… rules, skills and the pr-worker (Part of #5280)"

This reverts commit 58da6f5.
squid-protocol added a commit that referenced this pull request Oct 16, 2026
…skills and the pr-worker (Part of #5280) (#5284)

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 16, 2026
…-down, Gap Atlas; READMEs link it (Part of #5280) (#5281)

* progress page: generated burned-estate ladder, components, eras, core burn-down, Gap Atlas; READMEs link it (Part of #5280)

tests/tools/progress_report.py renders docs/language_status/progress.md and progress.json through
generated_docs.PAGES and the generated-docs workflow publish list. README.md and the cobol_to_java
README drop their hand-written status numbers for a link to the page; det_survey.md becomes a dated
snapshot.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* generated_branch test: the docs workflow publishes progress.md and progress.json (Part of #5280)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* agent memory: promote lessons #5269, #5277, #5279, #5281 into rules, skills and the pr-worker (Part of #5280)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Revert "agent memory: promote lessons #5269, #5277, #5279, #5281 into rules, skills and the pr-worker (Part of #5280)"

This reverts commit 58da6f5.

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 17, 2026
…tion (Closes #5314) (#5315)

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]>
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