Skip to content

ci: run Sentinel's check gates and tests on every pull request - #9

Merged
PermutationResearch merged 1 commit into
mainfrom
fix/sentinel-ci
Dec 1, 2026
Merged

PermutationResearch merged 1 commit into
mainfrom
fix/sentinel-ci

Conversation

@PermutationResearch

Copy link
Copy Markdown
Owner

What

Sentinel's first CI: .github/workflows/ci.yml, one job, nothing else changes.

  • npm ci (setup-node cache), then npm run check — the repo's own typecheck + eslint + biome format:check — then npm test.
  • DEV_MODE=true, because src/config.ts exits at import unless six production secrets are set (TRUST_RECEIPT_PRIVATE_KEY_PEM, RESEND_API_KEY, PROBE_VERIFICATION_SECRET, VEILSTREAM_SESSION_SECRET, …). .env.example line 2 prescribes DEV_MODE=true for local work, and src/trust-receipts.ts names it as the alternative to the receipt key.
  • One runner, one install; a new push to the same PR cancels the running one.

State at HEAD, measured here

npm run check is 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.

Env Result
no env fails auth lockout: repeated bad verify tokens trigger 429 — importing src/index.js trips the production-secret exit
DEV_MODE=true fails proxy: strips caller cookies before forwarding upstream — 400 !== 200 at test/e2e-proxy-behavior.test.ts:303

CI will show that one failure until it is fixed. I did not touch product code in this slice.

Checks run

  • npm ci then npm run check in a clean checkout of main: exit 0.
  • npm test both ways: 688/689, failure named above.
  • Workflow YAML parses; single job check.

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.
@PermutationResearch
PermutationResearch merged commit ea8d5dd into main Dec 1, 2026
1 of 2 checks passed
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.

2 participants