Repository navigation
Conversation
mremond
force-pushed
the
fm/fm-ci-refresh-portable-serial-hints
branch
from
September 11, 2026 07:11
14bee50 to
e6dc442
Compare
The portable serial shard assignment is bin packing over per-script duration hints, and those hints had drifted badly: 145 of them changed against fresh measurement, 37 were low by more than 2x and 11 by more than 5x, and 11 lane scripts had no hint at all. The predicted split therefore claimed every shard at 15.19 minutes while real shards ran 11 to 23 minutes on the same run. That imbalance is what cancels the lane. It has done so three times in nine days, most recently on 2026-09-10 when Behavior portable serial 1 was cancelled at 30 min 15 s with no hang - it was passing tests three seconds earlier and simply ran out of budget. Refresh all 157 hints from the slowest measured duration per script across five green runs of 2026-09-10, so no script falls back to the default weight and one slow runner cannot dominate the table. Validated against a held-out run that contributed nothing to the table: run 34447627189 scores 13.58 to 16.95 minutes across its five shards, a worst shard of 56.5% of the job cap, against 13.24 to 21.93 minutes under the previous hints. This changes balance only. The shard count, the job cap, and the coverage guard are untouched.
The documentation pass on this branch compressed five comment blocks and removed the reasoning behind three numbers this delivery does not change. Restoring it is not widening scope: the deletions ship under this branch's name, so carrying them would remove those sentences from the trunk. What is restored: - CHANGED_DEFAULT_TIMEOUT_SECS keeps its stated intent, that 900s is a guard rather than a speed control, so a hung script becomes a bounded failure instead of an unbounded suite. Its pointer to docs/fm-test-portable-shards.md is dropped, because that document describes portable shard timing and does not own this constant. - The hint table keeps its derivation rule, that each value is the slowest of several green runs so the balance holds on a slow runner, and its safety invariant, that hints affect balance only and a stale hint costs balance rather than coverage. - The unhinted-share bound and the coverage guard keep the explanation of why unmeasured scripts unbalance shards. Two original sentences are deliberately NOT restored, because measurement has since made them false. Both rested on the slowest script being the 341s Herdr presentation E2E: tests/fm-watch-triage.test.sh was measured at 1191s on 2026-09-10, which is 1.32x the 900-second bound. The derivation is restated as it stands today, scoped to the --changed selection where it still holds. Observation, not addressed here: that 1191s measurement means a healthy script can now exceed a bound that exists to catch hung ones.
…pported runtime inference
mremond
force-pushed
the
fm/fm-ci-refresh-portable-serial-hints
branch
from
September 14, 2026 16:56
e6dc442 to
e6be924
Compare
Contributor
Author
|
Closing as superseded: #4800 repacked the portable serial lanes into nine shards, so these five-shard duration hints no longer apply. |
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.
Intent
Stop the portable serial CI lanes from being cancelled at their job ceiling by refreshing the per-script duration hints that pack them, which had drifted badly enough that one shard reached its cap while another sat idle. Four of this project's deliveries were cut that way. The hints in bin/fm-test-run.sh are refreshed from the slowest measured duration per script across five green CI runs of 2026-09-10, so the longest-processing-time packing balances on evidence rather than on stale or missing measurements.
Two facts this delivery must state for its reader.
First, the documentation deliberately does NOT carry a refreshed copy of the per-shard duration table. Trunk removed that copied table on purpose and made the runner's own --check-coverage output the authority for lane size, shard composition and balance. That decision was upheld here and applied to the hint-provenance paragraph as well, because the numeric lane-size snapshot in that paragraph is the same kind of copied claim. Measurement proves the point rather than argument: the lane now holds 165 scripts with 6 unhinted, which is 3.6 percent against a 15 percent limit, so this branch's earlier documented claim of 157 hints with no script on the default weight would have shipped false the day it was written. A copied table that is wrong the day it is refreshed is the argument for deleting it.
Second, this branch originally carried four commits and now carries three. The commit "fix(test): Correct portable serial timing baseline documentation" became empty during the rebase onto current trunk and was dropped, because its entire content refined prose inside the copied table block that trunk had removed. Nothing was lost beyond the text it edited, and no reader should wonder where it went.
What Changed
bin/fm-test-run.sh --check-coverageremains authoritative for lane size, composition, and balance: the recorded 165 scripts with six unhinted (3.6%, below the 15% limit) already contradicted the earlier “157 hints, no default weights” claim.fix(test): Correct portable serial timing baseline documentation: it became empty because trunk removed the copied table block containing its entire prose change. No other content was lost. Three subsequent review/documentation corrections bring the final branch delta to six commits.Risk Assessment
✅ Low: The refreshed hints match all five runs’ serial timing artifacts, preserve execution and coverage rules, and introduce no unnecessary behavior.
Testing
The focused runner suite and live CLI checks passed. Independent artifact comparison confirmed the refreshed assignment, and baseline replay improved the heaviest historical load. Verifier setup errors were corrected; transcripts and provenance evidence were saved. Fresh CI timing remains untested. This change has no GUI surface.
Evidence: Live CLI outputs, refusals, and baseline comparison
Source: Live CLI outputs, refusals, and baseline comparison
Evidence: Successful serial jobs in all five source runs
Source: Successful serial jobs in all five source runs
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 2 issues found → auto-fixed (2) ✅
docs/fm-test-portable-shards.md:116- Intent makes the runner's '--check-coverage output the authority for lane size, shard composition and balance'. This changed row instead adds 'Each shard carries about 19.14 minutes'. Tracing the current 165-script inventory yields approximately 19.71 minutes per shard; the new 10.3% claim at line 75 is also stale (approximately 10.02%). Remove these duplicated balance snapshots and retain the runner pointer, as required by the stated simplification decision.docs/fm-test-portable-shards.md:60- The serial-hint provenance still describes September 1 measurements and a 5121 ms Windows measurement, although this branch replaces the hints and changes that Windows entry to 81 ms. It never identifies the five September 10 source runs, preventing readers from reconstructing the refreshed table. Update this paragraph with the actual measurement provenance, without restoring copied lane-size totals.🔧 Fix applied.
1 warning still open:
bin/fm-test-run.sh:193- The new comment treats 1191 seconds as evidence that a healthy script exceeds the 900-second bound. However, the historical job recordsfm-watch-triage.test.sh exit=1 duration_ms=1191435, following a failed assertion about replayed wakes (https://github.com/kunchenguid/firstmate/actions/runs/34439141091/job/102750305543). Identify this as a failed-run measurement and remove the unsupported healthy-runtime inference; leave the timeout unchanged.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
git diff 036fec054283882c1cfaa3e66e6f8d16ff4f4b5f 53751a41d28be5e963528e90ec12d1e907b8f81fand manual inspection of the scoped documentation and commit history.TMPDIR="$PWD/.test-phase-tmp" bin/fm-test-run.sh --jobs 1 --json ~/.no-mistakes/evidence/01M2GB01EQ2MPCJ200TG71Y9SV/runner-contract.json tests/fm-test-run.test.shpython3 ~/.no-mistakes/evidence/01M2GB01EQ2MPCJ200TG71Y9SV/drive-runner.pyexercised current CLI coverage, shard listings, determinism, and adversarial refusals; rerun successfully after correcting the verifier's retained-hint inputs.git show 036fec054283882c1cfaa3e66e6f8d16ff4f4b5f:bin/fm-test-run.shsupplied the previous executable for comparison against the same current inventory.gh-axi run downloadretrieved fm-test-timing-aggregate from runs 34413640474, 34413651260, 34413670094, 34439204619, 34466966385, and held-out run 34447627189; generated timing data supplied the independent packing oracle and historical replay.gh-axi run viewverified successful serial jobs in each of the five source runs.Removed the temporary baseline executable and test directory; confirmed unchanged target HEAD and a clean worktree.✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.