Repository navigation
Conversation
| if [[ "$EVENT_NAME" == "pull_request" ]]; then | ||
| args+=(--base measurements/binary-size-base/measurement.json) | ||
| fi | ||
| python3 scripts/binary_size.py report measurements/binary-size-current/measurement.json "${args[@]}" | tee "$GITHUB_STEP_SUMMARY" |
There was a problem hiding this comment.
[P2] Preserve report failures through the tee pipeline
If report fails while reading or validating a measurement, this step still succeeds: GitHub’s default Linux shell uses bash -e without pipefail, so the pipeline returns tee’s successful exit status. I reproduced an invalid-target measurement yielding exit code 0 and an empty summary. Add shell: bash to this step or explicitly enable pipefail so reporting failures remain visible while size increases stay informational.
Binary size
Build detailsTarget: Current revision: d79b229c. Incremental native Cargo builds with |
8d7e3e3 to
e070521
Compare
a197a0e to
8a69411
Compare
Binary size
Build detailsTarget: Current revision: 3650df7c. Native Cargo builds with |
| with: | ||
| ref: ${{ matrix.sha }} | ||
| path: source |
There was a problem hiding this comment.
[P2] Isolate the measured revision from the tooling checkout
On a baseline cache miss, source sits beneath the PR merge checkout. Cargo also reads ancestor .cargo/config.toml files, so a PR adding Linux rustflags, such as a size-reducing linker option, applies those settings to the baseline too. A nested-directory Cargo configuration probe confirmed this inheritance. The comparison can therefore hide the intended size change and produce different results depending on baseline cache availability. Put the tooling and measured checkouts in sibling directories so the PR's configuration cannot affect the baseline build.
e558e08 to
0a856ef
Compare
97a483f to
610bb32
Compare
Binary-size reports need persistent comment IDs so later runs can update reports without listing pull request comments. Grant `read` and `write` access to `pull-request` KV state for the pinned `publish-binary-size.yml` revision, and move the existing STS comment grants from `binary-size.yml` to that revision. The grants apply to `ci.yml` pull-request runs on `refs/pull/*/merge` in the `automations` environment for `astral-sh/uv` and `astral-sh/uv-dev`. This policy can merge before the workflows in astral-sh#2730; it does not enable reporting by itself. --------- Co-authored-by: zaniebot <[email protected]>
610bb32 to
65b1d89
Compare
Binary size
Build detailsTarget: Current revision: 1acdcbf4. Native Cargo builds with |
Track native Linux x86-64 sizes for
uv,uvx, anduv-buildonmainand on CI runs for pull requests labeledbuild:binary-size. Compare each PR's merge commit with its first parent. Size changes are informational.Build
uvanduvxwithreleaseanduv-buildwithminimal-size. Reuse compiled workspace crates and dependencies using the same caching approach as the test workflow, and skip baseline builds when an exact measurement is available. These native builds omit release PGO, SBOM embedding, and manylinux packaging.Same-repository PRs receive a size-only comment through a pinned publisher using STS. The publisher stores the comment ID in
aghs-kvwithpull-requestscope and verifies the comment's author, PR, and marker before updating it. Missing or expired IDs and deleted comments create a new report. KV read failures prevent publication; write failures fail the job after publication and can lead to a duplicate on a later run. There is no comment scan.The KV and STS grants are supplied by astral-sh#22822. The
automationsenvironment must also provideKV_API_URL.