Repository navigation
chore(ci): refresh the reviewed unit weights and read the complete changed-file list in pr-status (#4140, #4114) - #4155
Merged
Conversation
…overlap (#4114) pr-status read the changed files with gh pr view --json files, which returns the first 100. On a larger pull request a moved base's overlap past them was missed, and an empty overlapsThisPr read as no overlap. Read the list from the paginated pulls/<n>/files endpoint instead. GitHub ends that list at 3000 files and a comparison of two commits at 300, so when either list is cut short baseGained.overlapIncomplete now says which. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…1605108 (#4140) The weights dated from 2026-11-02 and covered 1,167 of the 1,590 files default discovery now finds; the 424 unweighted files hold about 1,500 measured seconds. Refreshed with the documented command from exhaustive main run 44041605108 attempt 1 at 564a1d5. At the measured weights the eight confirmation partitions planned from the old table cost 472 to 1,084 s; from the new table each costs 766 s. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s' into chore/4140-refresh-unit-weights
This was referenced Nov 17, 2026
schlessera
marked this pull request as ready for review
November 17, 2026 09:39
This was referenced Nov 17, 2026
This was referenced Nov 17, 2026
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.
Closes #4140
Closes #4114
What changed
Two small tooling changes as one squash.
scripts/test-shard-costs.jsonandscripts/unit-shard-measurement.jsonnow come from exhaustive main run 44041605108, attempt 1, at564a1d57f, written bybun scripts/refresh-unit-costs.ts 44041605108 1. The old table dated from 2026-11-02 and weighted 1,167 of the 1,590 files default discovery finds today; the 424 unweighted files hold about 1,500 measured seconds. Every discovered file now has a weight, and the one entry for a deleted test is gone.pr-statusreads the complete changed-file list (from fix(ci): read a pull request's complete file list for a moved base's overlap (#4114) #4151). On a moved base it pagespulls/<n>/filesinstead ofgh pr view --json files, which stops at 100, and reportsoverlapIncompletewhen GitHub's own limits cut a list short.Why this shape
One squash saves a lease cycle; the two changes share no file. For #4140 the refresh uses the documented command and a run on main itself, so the weights describe the source they will balance. Per-change reasoning for #4114 is in #4151.
Proof
unitjobs of 605–1,024 s, 637–1,043 s and 608–979 s; this PR's own ready confirmation is the measurement under the new weights.connection-continuity-runtime349.7 → 145.4 s,parallel-sessions-runtime343.5 → 437.3 s, and new entries such ashygiene-media-effects(143.1 s) andmedia-review-flow(89.5 s).Off-main qualification
564a1d57f.b1e5e36c16ee, the refreshed weights merged with main ate2a233e7e. Every job passed. The commits added since are merges of main thatbun scripts/proof-system.ts classifyreports as no proof-system change.Complete unit proofstep (s)unitjob (s){"version":1,"kind":"brain-check-pr-receipt","head":"d50a6c78f2b51f3f666264fc109ab3d19c03a2b7","base":"origin/main","mode":"focused","startedAt":"2026-11-17T08:35:36.593Z","finishedAt":"2026-11-17T08:37:08.602Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13101.541496},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":107.07303500000125},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":74.31615699999747},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":21.24138099999982},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":78689.538812}]}Checklist
docs/reflect the change, or nothing documented moved.Anything left open
The eight
unitjob durations from this PR's ready confirmation are recorded on #4140 after it runs. #4152 (a renamed file is matched only under its new path inpr-status) is filed and not addressed here.🤖 Generated with Claude Code