Skip to content

tests: mark the path-independence scans slow for the time ratchet (Part of #5248) - #5249

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5248-slow-mark
Oct 16, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5248-slow-mark

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5248.

Failure: main run 38896471213, "full-suite part 1/3": all 6855 tests passed; the time_ratchet.py check step failed on test_scan_path_independence_4058.py::test_the_same_tree_scans_the_same_under_any_parent[vendor] (15.7s > 15s, no slow mark, no baseline entry). full-suite failed only because part 1/3 did. No infrastructure flake; the failure is in a test, not the workflow (no workflow edit).

Cause: the module-scoped scans fixture (seven parallel galaxyscope subprocesses) is set up by whichever test of the module a CI part runs first. That was [tmp] earlier (baselined, 42s) and [vendor] this time.

Fix: a module-level pytest.mark.slow(reason=...), covering every test in the module whichever runs first. The seven scans are not reduced, so no check is weakened. The baseline is untouched.

Not duplicated: PR #5230 (blocker report) does not touch this. Three WARN-only tests (10-11s) are under the limit and left alone.

Gates: the module passes (8 tests); pr_gates --ratchets --only-ratchets time PASS; ruff_audit --ci no new findings; ruff format --check clean.

Lessons for agents

A test that pays for a shared module-scoped fixture can cross the 15s limit depending on which test a part runs first: mark the whole module slow, not just the test that tripped.

🤖 Generated with Claude Code

…rt of #5248)

The module-scoped seven-scan fixture is set up by whichever test a CI part
runs first; run 38896471213 put it on [vendor] (15.7s, over FAIL_S).

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 12:25
@squid-protocol
squid-protocol enabled auto-merge (squash) October 16, 2026 12:26
@squid-protocol
squid-protocol merged commit 36cc2f6 into main Oct 16, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the churn/5248-slow-mark branch October 16, 2026 12:31
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