Skip to content

ci: typecheck + vitest + python cross-check - #19

Merged
Amperstrand merged 2 commits into
mainfrom
ci/typecheck-vitest
Oct 31, 2026
Merged

Amperstrand merged 2 commits into
mainfrom
ci/typecheck-vitest

Conversation

@Amperstrand

Copy link
Copy Markdown
Owner

Closes #14.

  • test job (node 22, npm cache): npm ci → npm run typecheck (tsc --noEmit) → npm test (vitest run) — automated regression protection after the derivation-logic rewrites (10b32b4, 9da4c55).
  • python-check job (python 3.12): python -m py_compile python/cli.py — the cross-check implementation can no longer silently rot.
  • Remaining item from the issue — gate merges to main on CI — is a branch-protection settings change (owner action), noted here so the checklist is honest.

Verification: CI on this PR is the proof (both jobs must go green on a clean runner).

Closes #14: regression protection after the derivation-logic rewrites
(10b32b4, 9da4c55). Two jobs — node 22 (npm ci -> tsc --noEmit -> vitest run)
and python 3.12 (py_compile python/cli.py) so the cross-check CLI cannot
silently rot. Branch-protection gating of main is a repo-settings action for
the owner.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T13:22:09.350800Z 0f07fe7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

No CI existed before, so these sat on main unnoticed (the premise of #14):

- deterministic_age.test.ts:80 — literal \\n text glued into the source by a
  bad paste (esbuild: Syntax error "n"); restored real newlines.
- semantic_paths.test.ts:165 — stale entropy assertion: /^[0-9a-f]{64}$/ predates
  the Phase 3c HMAC-SHA512 change to 64-byte entropy (128 hex), which the
  sibling test already asserts.
- generate_vectors.test.ts — deriveMasterKey (argon2id, 64MiB) inside the test
  body makes workerd's io-context disconnect after ~12s of sync CPU
  ("Network connection lost" is the symptom, not a network problem); derived
  at module scope like deterministic_age.test.ts does.

Local: vitest run 53/53 passed, tsc --noEmit clean.
@Amperstrand
Amperstrand merged commit 39e1c0a into main Oct 31, 2026
2 checks passed
@Amperstrand
Amperstrand deleted the ci/typecheck-vitest branch October 31, 2026 09:29
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.

Add CI (GitHub Actions) to run typecheck + vitest on every push/PR

1 participant