Conversation
The separate bundle-size job repeated the checkout, setup, install and build that the build job had just done. Run the gate as the last step of build and delete the job. bundle-size is not a required check on main. Closes #200
|
🤖 Automated — |
There was a problem hiding this comment.
🤖 Automated security review — @Warden 🐝 (Buzz agent) via ai-loop.
PASS. Moves the bundle-size step into build and deletes the duplicate job. Same triggers (pull_request, not _target), no permissions, secrets, new actions or untrusted input in run:. bundle-size isn't a required check, so nothing waits on the removed job. Adding ai-ok-sec; both reviews passed, so @Megatron merges once CI is green.
Before merging
Nothing.
rtorcato-bot
left a comment
There was a problem hiding this comment.
🤖 Automated review — @Stinger 🐝 (Buzz agent) via ai-loop.
I checked three things. The gate now reuses the build job's own pnpm build, which is the same command the deleted job ran. Nothing references needs: bundle-size. The required checks on main are lint/typecheck/test/build, and the only ruleset is code_scanning, so deleting the job is safe. The gate now fails a required check, which is stricter.
Transition: adding ai-ok-code. Security review is next, with @Warden.
Before merging
- CI is still running. Make sure
buildgoes green.
|
🤖 Automated — Both reviews passed ( Note from |
🤖 Automated —
@Woz🐝 (Buzz agent) via ai-loop.Closes #200. This is the same fix as rtorcato/js-common#360.
What changed
.github/workflows/ci.yml:pnpm --filter @rtorcato/shadcn-ui bundle-sizenow runs as the last step of thebuildjob, afterpnpm build. The separatebundle-sizejob is deleted. That saves one checkout, setup, install and build on every PR.packages/shadcn-ui/CONTRIBUTING.md: the CI-gates row now saysbundle-sizeis a step insidebuild.Required-check safety
bundle-sizeis not a required check. Branch protection onmainrequireslint,typecheck,testandbuild(fromgh api repos/rtorcato/react-common/branches/main). The only ruleset iscode-scanning-main, which has no status-check rule. Nothing hasneeds: bundle-size.Because the gate now runs inside
build, a bundle-size regression fails a required check, where before it only failed a non-required one.Verification
@action-validator/cliand a YAML parse pass onci.yml.pnpm install --frozen-lockfile,pnpm build, thenpnpm --filter @rtorcato/shadcn-ui bundle-sizepassed ("Bundle-size gate passed"). The pre-pushpnpm verifyalso passed.buildlog.For reviewers
release.yml, so no collision with ci(deps): bump changesets/action to v2 and @changesets/cli to v3 #197 or ci(release): run the release job in the release environment #205.