Skip to content

[pull] main from react:main - #642

Merged
pull[bot] merged 1 commit into
code:mainfrom
react:main
Aug 24, 2026
Merged

[pull] main from react:main#642
pull[bot] merged 1 commit into
code:mainfrom
react:main

Conversation

@pull

@pull pull Bot commented Aug 24, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

`build_and_lint` assigns its `[bundle, bundleType]` pairs to 25 workers
per channel by round-robin, which leaves the slowest worker with 56-62
seconds of rollup time while the mean worker has 40-42 seconds (measured
from the timestamped `BUILDING`/`COMPLETE` lines in recent `main` run
logs).

This change shards by measured build time instead, and the measurement
maintains itself:

`yarn build` writes the timing results into `build/__shard_timings__/`,
which rides along inside the existing per-worker artifacts.

`process_artifacts_combined`, which already downloads all 50 artifacts
and is off the critical path, combines them into `build-weights.json`
and saves it to the actions cache under a per-run key. Readers restore
the most recent entry via a `restore-keys` prefix. Only pushes can save
to cache keys that PRs can read, so pull request runs benefit from the
weights but cannot poison them.

The new measurement is always written verbatim rather than merged with
previous weights, so removed bundles drop out instead of accumulating.

A per-bundle diff against the previous weights is logged so that we can
monitor whether single-run variance is too high, in which case shards
should be determined from timings across the last N runs instead. Even
on this PR a perfect prediction would've only gained us ?s for the
slowest shard.



Co-authored-by: Claude Code (kimi-k3[1m]) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Aug 24, 2026
@pull pull Bot added the ⤵️ pull label Aug 24, 2026
@pull
pull Bot merged commit bd6ea41 into code:main Aug 24, 2026
13 checks passed
@pull
pull Bot deployed to npm August 24, 2026 18:28 Active
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant