Skip to content

Snapshots for the 19 view kinds and options #59 added, in four parallel shards - #63

Merged
alisman merged 1 commit into
masterfrom
session/code-qual
Oct 23, 2026
Merged

alisman merged 1 commit into
masterfrom
session/code-qual

Conversation

@alisman

@alisman alisman commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #61 now that #59 is in: every view kind has a snapshot case, and a check fails when one doesn't.

  • 19 new cases: Nineteen literature-derived analysis views (preview), one commit each #59's 17 new kinds (rmst, acquired, germline, hla, actionability, molsubtype, ctdna, exclusivity, cutpoint, drivernegative, instability, txendpoints, organotropism, multistate, adjusted, predictive, forest) plus its two options that change what a view asks (ctdna chFilter, riskmodel validateOn), each on its smallest gallery example.
  • Every-kind check: reads the View union in lib/types.ts (as the documentation tests do); a kind without a case fails npm test.
  • Order check: all 19 pass the reversed-delivery run unchanged, so no runner needed askEachSite.
  • Nineteen literature-derived analysis views (preview), one commit each #59 didn't move any existing view: re-recording left all 34 earlier snapshots byte-for-byte identical.

Speed

53 cases × 2 runs made the single file 71 s and npm test 1 min 45 s. The harness moves to test/support/view-snapshots.ts; cases run in four parallel files (test/view-snapshots.test.ts + -2/-3/-4), round-robin: 25 s, and npm test back to 53 s. Recording also runs sharded (CLAUDE.md's command is now the glob); after one re-shuffle of where start-up queries are recorded (answer files only, no output change), two sharded recordings in a row are identical.

Changes outside tests

Comment-only: lib/ch.ts and lib/views/shared.ts now point at the harness's new path. No application behaviour changes.

Verification

GATE_PORT=4111 scripts/gate.sh: exit 0 — lint, build, unit 1610/1610, postgres 47/47, access mutants, Python conformance, e2e incl. federation, all warehouse checks. Reverting #61's enrichment fix still fails its case with "depends on the order database answers arrive". test/snapshots is now 8.5 MB.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CuBjiBEjYispDSEYDZDWM1

…el shards

Every view kind now has a snapshot case, and a check fails when one does not: it reads the View
union in lib/types.ts, as the documentation tests do, so a new kind cannot land without its
case. The 17 new kinds (rmst, acquired, germline, hla, actionability, molsubtype, ctdna,
exclusivity, cutpoint, drivernegative, instability, txendpoints, organotropism, multistate,
adjusted, predictive, forest) each run their smallest gallery example, and the two new options
that change what a view asks (ctdna's chFilter, riskmodel's validateOn) run theirs. All 19 pass
the reversed-delivery run unchanged: none of them combines answers in arrival order on its
example, so no runner needed askEachSite.

Re-recording left every existing snapshot byte for byte as it was: #59 changed no earlier view's
queries, numbers, figure or text (its rebase onto #61 had already shown that).

With 53 cases, run twice each, the one test file took 71 s and npm test 1 min 45 s. The harness
moves to test/support/view-snapshots.ts and the cases run in four test files that node runs in
parallel (test/view-snapshots.test.ts, which also runs the every-kind check, and -2/-3/-4),
assigned round-robin so the genome-wide cases spread out: 25 s, and npm test 53 s again.
Recording runs the four shards in parallel too (the command in CLAUDE.md changes to the glob);
each shard records the start-up queries (study routing, profiles) under its own first case, so
the answer files of 15 cases moved once, with no output change, and a second recording after
that changed nothing.

Verified: npm test 1610/1610; three snapshot runs identical; reverting the enrichment fix still
fails its case with "depends on the order database answers arrive"; two sharded recordings in
a row identical. Size: test/snapshots is now 8.5 MB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CuBjiBEjYispDSEYDZDWM1
@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cbiolab-genie Ready Ready Preview Oct 23, 2026 2:43pm UTC
cohort-lab Ready Ready Preview Oct 23, 2026 2:43pm UTC

Request Review

@alisman
alisman merged commit 09a0be1 into master Oct 23, 2026
9 of 10 checks passed
@alisman
alisman deleted the session/code-qual branch October 23, 2026 14:55

This branch was successfully deployed

1 active deployment
Preview – cohort-lab — 40be9cb8 Deployed Oct 23, 2026 by vercel[bot]
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.

1 participant