Skip to content

ci(studio): gate load, open-project time and eager bundle size - #2944

Draft
miguel-heygen wants to merge 1 commit into
perf/studio-load-u5from
perf/studio-load-u6
Draft

ci(studio): gate load, open-project time and eager bundle size#2944
miguel-heygen wants to merge 1 commit into
perf/studio-load-u5from
perf/studio-load-u6

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

PR 5 of 5 · base perf/studio-load-u5 (#2943)

Makes the whole thing a check instead of a one-off measurement. Lands last, and green — a gate wired in red gets muted.

The job

studio-load-gate, gated on needs.changes.outputs.studio the same way studio-timeline-viewport is:

  • Eager bundle byte budget — cheap, no browser, runs on every studio PR.
  • Load and open-project gate — dev arm, 3,000 clips, CI budgets, against a real on-disk project generated at run time (the output is ~9,200 lines of derivable markup, so it is not committed). Runs with NODE_ENV=production so it measures shipped rendering behaviour, not the development runtime. Evidence uploaded on pass and fail.

The bundle budget: target and ratchet

Two numbers, deliberately:

Enforcing an unreached target means a permanently red check, and a permanently red check gets muted — so it would protect nothing. The ratchet locks in the 23.6% already won; every run prints the remaining gap so it stays visible:

[StudioBundleBudget] PASS eagerEntryChunkGzipBytes measured=855246B budget=870000B
[StudioBundleBudget] NOTE eager gzip 855246B is within the 870000B ratchet
                     but still 240846B over the 614400B target.

Not included

The embedded arm. It needs the CLI studio bundle built, which is materially slower on a hosted runner, and whether that is worth a per-PR check is a runner-cost decision rather than a code one. The dev arm plus the static byte check run on every studio PR; the embedded arm stays a local gate for now. Stated as a limitation rather than presented as full coverage.

Runs the two-arm load gate on the dev arm at CI budgets against a real
3,000-clip project generated at run time, plus the eager bundle byte check
on every studio PR.

The bundle check enforces a ratchet at 870,000B rather than the 600KiB
target. The target needs a Node-only AST/DOM stack out of the browser
bundle, which is its own unit; enforcing it now would mean a permanently
red check, and a permanently red check gets muted. The ratchet cannot be
regressed past and every run reports the remaining gap.
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