Skip to content

feat(ci): gate boot gzip on PR delta instead of deploy ceiling - #4466

Merged
tyler-dane merged 2 commits into
mainfrom
cursor/boot-size-delta-gate-4f3a
Oct 14, 2026
Merged

tyler-dane merged 2 commits into
mainfrom
cursor/boot-size-delta-gate-4f3a

Conversation

@tyler-dane

Copy link
Copy Markdown
Contributor

Fixes #4464

What and why

Tyler approved replacing the absolute boot gzip ceiling that kept blocking releases over a few bytes (#4463).

  • Deploy/release: .github/docker/Dockerfile.web runs .github/perf/run-boot-size-check.sh with COMPASS_BOOT_SIZE_ENFORCE=0, logs boot gzip, and never fails the image build on absolute size.
  • PR CI: new required-style workflow .github/workflows/boot-bundle.yml builds merge base and PR head with the deploy-shaped config, posts/updates one sticky comment (for example Boot bundle: 519.8 KB gzip (+0.4 KB vs main)), and fails only when gzip grows more than +5 KB vs main unless the PR has the bundle-size-ok label.
  • Budget file/docs: boot-size-budget.json drops enforced absolute gzip (totalGzipSlackBytes removed; totalGzipBytes is informational). performance-baselines.md and workflows.md describe the delta gate.

PR #4463 is already merged; this makes future ceiling bumps unnecessary for routine byte drift.

Verify

Selected packages: web, scripts, self-host
Checks run: test:web, test:scripts:fast, test:self-host, type-check, lint, knip
Checks skipped: test:a11y, test:e2e (local sandbox axe/e2e failures unrelated to this diff; CI is the gate)

✓ selected checks passed
VERDICT: PASS (scoped to changed packages; full verify --strict blocked on local Playwright a11y noise)

Local evidence:

  • COMPASS_BOOT_SIZE_ENFORCE=0 .github/perf/run-boot-size-check.sh → exit 0, boot gzip total: 519809 B
  • bun .github/perf/pr-boot-size-delta.ts with BASE_SHA=merge-base → Boot bundle: 507.6 KB gzip (+0.0 KB vs main)
Open in Web Open in Cursor 

Fixes #4464

Remove absolute gzip enforcement from deploy builds and default web
builds. Add boot-bundle workflow with +5 KB delta vs main, sticky PR
comment, and bundle-size-ok label override.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Boot bundle: 507.6 KB gzip (+0.0 KB vs main)

@tyler-dane
tyler-dane enabled auto-merge October 14, 2026 18:59
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 2a7afe8 Oct 14, 2026
27 checks passed
@tyler-dane
tyler-dane deleted the cursor/boot-size-delta-gate-4f3a branch October 14, 2026 19:18
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.

Replace absolute boot gzip ceiling with PR delta gate

2 participants