Repository navigation
ci: run Sentinel's check gates and tests on every pull request - #9
Merged
Merged
Conversation
One job: `npm ci` then `npm run check` (typecheck, eslint, biome format:check) then `npm test`, so a pull request pays for one install and one runner. A new push to the same PR cancels the running one. DEV_MODE=true is set because src/config.ts refuses to import without six production secrets; .env.example prescribes DEV_MODE=true for local work and src/trust-receipts.ts names it as the alternative to the receipt key. The suite is red at HEAD either way: one test fails with this env, a different one fails without it. See the pull request body.
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.
What
Sentinel's first CI:
.github/workflows/ci.yml, one job, nothing else changes.npm ci(setup-node cache), thennpm run check— the repo's own typecheck + eslint + biomeformat:check— thennpm test.DEV_MODE=true, becausesrc/config.tsexits at import unless six production secrets are set (TRUST_RECEIPT_PRIVATE_KEY_PEM,RESEND_API_KEY,PROBE_VERIFICATION_SECRET,VEILSTREAM_SESSION_SECRET, …)..env.exampleline 2 prescribesDEV_MODE=truefor local work, andsrc/trust-receipts.tsnames it as the alternative to the receipt key.State at HEAD, measured here
npm run checkis green. The suite is not: 689 tests, 688 pass, 1 fails — and which one depends on the env, so this PR does not introduce the red.auth lockout: repeated bad verify tokens trigger 429— importingsrc/index.jstrips the production-secret exitDEV_MODE=trueproxy: strips caller cookies before forwarding upstream—400 !== 200attest/e2e-proxy-behavior.test.ts:303CI will show that one failure until it is fixed. I did not touch product code in this slice.
Checks run
npm cithennpm run checkin a clean checkout ofmain: exit 0.npm testboth ways: 688/689, failure named above.check.