Repository navigation
ci optimizations - #8881
Draft
kanej wants to merge 3 commits into
Draft
ci optimizations#8881kanej wants to merge 3 commits into
kanej wants to merge 3 commits into
Conversation
|
Contributor
hardhatTotal size of the bundle: List of dependencies (sorted by size) |
kanej
force-pushed
the
ci-low-hanging-fruit
branch
from
November 25, 2026 10:26
80f9375 to
1272294
Compare
The merge queue fast-forwards `main` to a commit its `merge_group` run has already tested, so the push run repeated that run on the same SHA. It was 186 of the last 195 pushes to `main`, and about 18% of the workflow's runner time. The other 9 pushes went past the queue. `main` now refuses direct pushes, so every commit on it has passed the queue first, and the push run has nothing left to check. `workflow_dispatch` still allows a manual run on `main`.
The restore in `setup-env` looked up `node-cache-<os>-pnpm-<hash>`, while `cache.yml` saved through `actions/setup-node` under `node-cache-<os>-<arch>-pnpm-<hash>`. The keys never matched, so every `ci.yml` job logged "Cache not found" and installed cold, while the saved caches filled the repository's 10 GB cache store. Fixing the key made things slower. Timed over eight jobs per runner, restoring the store and then installing took 7.5-10 s on Linux against a 6 s cold install, 32-45 s on macOS and 22-37 s on Windows against 17-25 s. Downloading a 175-340 MB store costs more than pnpm fetching what a package needs. We remove the cache instead: `cache.yml` goes, along with `setup-env`'s restore step and its `cache-save` input and `cache-hit` output, which only `cache.yml` used.
…ages Every Linux job installs `libusb-1.0-0-dev` and `libudev-dev`, which `node-hid` needs when its prebuilt binary cannot be downloaded. On the ARM runners `libudev-dev` pulls in a systemd upgrade, and dpkg's triggers then rebuild the initramfs: about 13 of the step's 25 seconds, on a machine that is discarded after the job and never boots it. On x64 the man-db trigger costs another second or so. We now turn both off before installing, and skip the recommended `libusb-1.0-doc`. The packages themselves are still installed.
kanej
force-pushed
the
ci-low-hanging-fruit
branch
from
November 25, 2026 11:10
1272294 to
b4032c5
Compare
This branch has not been deployed
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.
A small set of CI optimizations to improve CI performance.