Skip to content

ci: keep binary size report in job summary for fork PRs - #2448

Open
fengmk2 wants to merge 2 commits into
mainfrom
ci/binary-size-fork-summary
Open

ci: keep binary size report in job summary for fork PRs#2448
fengmk2 wants to merge 2 commits into
mainfrom
ci/binary-size-fork-summary

Conversation

@fengmk2

@fengmk2 fengmk2 commented Aug 14, 2026

Copy link
Copy Markdown
Member

Fork pull_request runs get a read-only token, so vp-binary-size.yml gated every job to same-repo PRs. Fork PRs that change native inputs (for example #2346, which touches Cargo.lock and many crates) got no size report at all.

Changes:

  • Drop the fork gate from the inputs job, so fork PRs run the native input compare and the base/head builds when inputs changed.
  • Let the comment job run for fork PRs. It always writes the size table to the job summary, and returns before the comment API calls when the PR head is a fork.
  • Keep the cleanup job same-repo only, because comment deletion needs a write token.

Same-repo PRs keep the current behavior, summary plus sticky comment. Fork PRs get the report in the run's job summary.

The build jobs receive no secrets, checkout uses persist-credentials: false, and the Rust cache save is disabled, so the untrusted fork code runs with the same exposure as the regular CI jobs that already run for fork PRs.

Fork pull_request runs get a read-only token, so the whole workflow was
gated to same-repo PRs and fork PRs got no size report at all.

Drop the fork gate from the inputs job so fork PRs run the native input
compare and the base/head builds. The comment job now always writes the
size table to the job summary and returns before the comment API calls
when the PR head is a fork. Cleanup stays same-repo only because
deleting a comment needs a write token.
@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit f591429
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a7f1594e5d9e10008cb5769

@fengmk2
fengmk2 requested review from cpojer and wan9chi August 14, 2026 07:24
@fengmk2 fengmk2 self-assigned this Aug 14, 2026
@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Native binary sizes (f591429)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.

Artifact Format Base PR Change
vp (Linux x64) Binary 10.67 MiB 10.67 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 4.62 MiB 4.62 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 32.02 MiB 32.02 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 12.61 MiB 12.61 MiB 0 B (0.00%)
vp (macOS ARM64) Binary 7.98 MiB 7.98 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 4.03 MiB 4.03 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 39.68 MiB 39.68 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 16.92 MiB 16.92 MiB 0 B (0.00%)
vp (Windows x64) Binary 8.55 MiB 8.55 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 3.73 MiB 3.73 MiB 0 B (0.00%)
NAPI (Windows x64) Binary 26.89 MiB 26.89 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 10.68 MiB 10.68 MiB 0 B (0.00%)
Trampoline (Windows x64) Binary 205.00 KiB 205.00 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 99.00 KiB 99.00 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.47 MiB 4.47 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.09 MiB 2.09 MiB 0 B (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant