perf(scripts): enforce deterministic local verification - #1563
Merged
Conversation
Contributor
|
Warning Review limit reachedNext included review available in 3 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
📚 Documentation Preview
|
FelixTJDietrich
force-pushed
the
1549-enforce-perf-dx-standards
branch
from
August 28, 2026 18:01
43edff8 to
f824f6f
Compare
Contributor
🧩 Storybook Preview
|
FelixTJDietrich
force-pushed
the
1549-enforce-perf-dx-standards
branch
2 times, most recently
from
August 28, 2026 20:30
c47fb03 to
1d424b9
Compare
FelixTJDietrich
force-pushed
the
1549-enforce-perf-dx-standards
branch
from
August 28, 2026 21:33
1d424b9 to
ddfb102
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Small changes should get useful feedback in seconds, without making the pre-push gate less trustworthy. This PR establishes three commands with deliberately different promises:
bun run check:affectedbun run checkbun run verifyWhy this is worth merging
The previous affected commands took up to four minutes because they embedded broad test suites. That made the “fast” path too slow for an edit–check loop, while there was no single command for the broader credential-free CI inventory.
This change makes the boundaries explicit and measured:
checkremains the read-only pre-push contract and still includes agent tests;verifyadds webapp unit and Storybook browser tests, server unit/architecture tests, webapp and Storybook production builds, generated-route validation, and the docs build;checkrather than guessing;The selector considers committed, staged, unstaged, untracked, deleted, and renamed paths. A real temporary Git repository test covers that discovery path, including the Git environment exported by hooks. Table-driven tests cover ordinary workspaces, shared/configuration inputs, generated artifacts, and cross-workspace changes.
Deliberate CI-only boundaries
verifyexcludes checks that need live services, end-to-end environments, image builds, mutation infrastructure, release security, or hosted credentials. Those remain clearly documented CI responsibilities. The webapp build verifier restores the generated route file before exiting, so all three normal verification commands are read-only.The contributor guide records the measured warm budgets, peak practical memory, and planted-failure detection times.
AGENTS.md,CONTRIBUTING.md, package scripts, and hook messages now describe the same contribution path.Fixes #1549
How to test
Completed locally on the final tree:
bun run formatbun run checkbun run verify— passed in 8 min 27 s before the final Storybook-build parity leg was addedbun run verify:storybook-buildbun test scripts/check-affected.test.ts— 9 tests passedGIT_DIRandGIT_WORK_TREEvariables to verify repository isolationSmoke test:
bun run check:affectedon this branch. Because it changes root tooling, it must expand tobun run checkand report that the complete local quality gate passed.HEPHAESTUS_SKIP_PRE_PUSH=1 sh .husky/pre-push. It must report the bypass and corrective command without claiming success.bun run check:affected --unknown. It must reject the unsupported argument.Checklist
main.