ci: fast lanes for docs-only PRs, 6-way serial sharding, flake retry - #5
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three independent CI speedups for
.github/workflows/ci.yml:1. Docs-only fast path
New
changesdetect job (dorny/paths-filter@v3, pull requests only) with a two-filter expression:docs(*.md,docs/**,.agents/**) andother(**minus the doc surfaces). A PR gets the fast set only when detection succeeded and nothing outside the doc surfaces changed:Failure semantics: any non-success detection result (failure/cancel/skipped-on-push) routes every lane back to the full suite - an empty filter output can never silently green-light a skip.
Filter simulation against representative file sets (
otherdecides heavy lanes):otherAll existing job names and ids are unchanged. Assumption noted inline: main has no branch protection (verified 2026-08-24), so skipped jobs cannot block merges; revisit before adding required checks. Pushes to main always run the full suite through the same rule (detection is skipped there).
2. Serial lane 4 -> 6 shards
PORTABLE_SERIAL_SHARDS=6inbin/fm-test-run.sh; ci.yml matrix extended to[1..6](still derivesofNfromstrategy.job-total, so drift fails loudly). Weight hints refreshed from the latest green run'sfm-test-timing-portable-serial-*artifacts (32731658785, 2026-08-24: 126 scripts, 3062014 ms - nine of them then-unmerged scripts that are now measured ahead of landing). LPT result: six shards within 19 ms of each other (~8.4 min each vs ~10.6 min under 4-way), job cap tightened 20 -> 15 min keeping ~2x hang-tripwire margin.docs/fm-test-portable-shards.mdrecords provenance, the new balance table, and timeout rationale.3. One automatic retry per serial shard
The serial-shard run step re-runs the same shard exactly once on failure; passing on retry exits 0 and leaves
::warning::annotations as flake evidence. No other step retries.Verification
bin/fm-test-run.sh --check-coverage: ok, total=156 parallel=24 serial=120 serial_shards=6 herdr=12tests/fm-test-run.test.sh: 18/18 oktests/fm-documentation-audiences.test.sh: 3/3 ok (also fixed stale-classification fallout found on the older base)bin/fm-lint.sh: green (pinned ShellCheck 0.11.0, actionlint 1.7.12, 3 workflows valid)