Skip to content

ci: balance the 3 full-suite parts by recorded test durations (#4825) - #4829

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4825-suite-balance-base-cache
Oct 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4825-suite-balance-base-cache

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Follow-up to #4828: its count-based split ran 11.3 / 5.7 / 7.1 min, because part 1 held the heavy tests.

Change: .test_durations holds per-test seconds for 16,617 tests (20.3 min of test time), recorded locally with --store-durations and rounded to 0.01 s. pytest-split reads it automatically and balances the parts by time: simulated 6.8 / 6.8 / 6.7 min of test time per part. A test the file doesn't list counts at the average. Refresh with pytest tests/ -n 8 --store-durations (noted in smoke-test.yml).

Not done (#4814): caching main's "before" translation for the port diff. GitHub's Actions cache is scoped per branch, so a cache a PR saves only helps re-runs of that PR. It would have to be built by a main run per main commit, which is a low hit rate for ~2 min on translator PRs only.

pr_gates --fast 5/5. This PR's own CI shows the new split.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

#4828's count-based split ran 11.3 / 5.7 / 7.1 min (part 1 held the heavy tests). .test_durations (16,617 tests,
20.3 min of test time, recorded locally with --store-durations, rounded to 0.01 s) lets pytest-split balance by time:
simulated 6.8 / 6.8 / 6.7 min of test time per part. Refresh with `pytest tests/ -n 8 --store-durations`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 03:01
@squid-protocol
squid-protocol merged commit 2261cd2 into main Oct 10, 2026
24 checks passed
@squid-protocol
squid-protocol deleted the ci/4825-suite-balance-base-cache branch October 10, 2026 03:01
squid-protocol added a commit that referenced this pull request Oct 10, 2026
…ilures stop blocking after 3 reruns; keep watching an empty queue (#4790) (#4830)

* ci shepherd: a failure main has too is main's, not the PR's; non-required infra failures stop blocking after 3 reruns (#4790)

- ci_digest: one more call fetches the checks failing on main's newest commit; a real failure of the same check on a
  PR is triaged `main` (repro: fix main). The shepherd logs it and posts no PR note -- on 2026-10-09 every open PR
  got a misleading "real failure" note while main itself was red.
- ci_shepherd: when every remaining failure is infra, none of those checks is required by main's rules (read from
  rules/branches/main; unreadable rules = everything required) and each has used its 3 reruns, the PR merges with one
  note saying so. muninn failed every PR for an hour on 2026-10-09 because Docker Hub throttled the image GitHub
  builds before any step runs. A real finding in a non-required check (muninn, CodeQL) still blocks; a required
  check always does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

* ci shepherd: keep watching an empty queue (a PR queued later still merges); --exit-when-empty for the old stop

2026-10-09: it merged its last PR, found the queue empty and exited; #4818, queued minutes later, sat green.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

* ci: advisory summaries run in full-suite part 3, entry-point checks stay in part 1 (balance; #4829 ran 10.1 / 6.9 / 7.6 min)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

* ci_digest: suite part names get the pytest repro; test_prism_suppression_regex_bomb is a #4477 timing flake

#4830's part 2 failed on it: 1.006 s against a 1.0 s bound on a loaded runner; the digest called it real and fell back
to pr_gates --fast because 'full-suite part 2/3' did not match the repro table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant