Skip to content

test-writing rule: per-test gate is 15 s, baselined tests fail at 2.5x (Part of #5166) - #6674

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5166-20261025T2055Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5166-20261025T2055Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5166. Doc-only: .claude/rules/test-writing.md said the per-test gate is 10 s and the baseline factor 2x; tests/tools/time_ratchet.py (FAIL_S = 15.0, FACTOR = 2.5, owner 2026-10-15) and docs/ci.md say 15 s / 2.5x. The rule now matches the code.

Premise check

The slice as briefed was already on main before this worktree was cut: time_ratchet.py (check/over/budget/update/seed), the seeded tests/test_time_baseline.json, tests/tools/test_time_ratchet.py (30 tests), the time entry in pr_gates.py --ratchets, docs/ci.md "Test-time ratchet (#5166)", and the rules note. Nothing to rebuild; no code changed.

Checklist: partial [c:6881f547] -- gate, baseline and docs already on main; this PR only corrects the rule text (15 s fail / 10-15 s warn, owner 2026-10-15, not a hard 10 s)
Checklist: partial [c:a9db9d08] -- ratchet tests and ci.md exist on main; budget-delta coverage not re-verified here

Class / Sibling gaps

Class: documents that state the ratchet thresholds (rules file, docs/ci.md, time_ratchet.py docstring). Rules file fixed here; docs/ci.md and the script already agree. Sibling gaps: none.
Remaining slices: whole-suite budget (c:11753cc1) and the section C slow-test fixes (c:6c05b408 through c:58dcbf54), untouched.

Lessons for agents

  • A bare cat > file with no heredoc waits on stdin and hangs the Bash tool; never chain one before a heredoc.

🤖 Generated with Claude Code

…2.5x, as time_ratchet.py does (Part of #5166)

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 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 21:02
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 21:03
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 46332a9 into main Oct 25, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5166-20261025T2055Z branch October 25, 2026 21: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