Repository navigation
Commit f5a9bc2
Seventeen pin tests across thirteen files each built their own ts.createProgram
over all sixteen entry points inside a vitest case to answer one question:
which source declaration does entry X export under name Y? That resolution is
now a checked-in artifact, packages/spec/export-origins/<entry>.json, and the
pins compare against it.
Measured on this container over the 18 affected files: aggregate test time
76.3s -> 23.3s, of which the 17 pins were 55.5s -> 0.07s. The pool grew by one
full compilation per retirement PR (12 files when #4796 was filed, 18 now), and
at ~3.4s per case against vitest's 5s default it rode the timeout line, ejecting
six unrelated PRs from the merge queue in one night.
Freshness is guarded twice, independently: check:export-origins recomputes from
source and byte-compares (wired into check:generated and into lint.yml's
required TypeScript Type Check job), and the pins carry a compiler-free runtime
cross-check so pnpm test alone is not blind to a doctored artifact.
Every retired assertion has a successor that fails under the same condition;
two are strictly tighter, because the old pins matched a declaration's line
number as \d+ and the successors assert the declaring file exactly.
Claude-Session: https://claude.ai/code/session_01WkUFF5wo3ceX4fEpXdty3k
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2d1ddf0 commit f5a9bc2
44 files changed
Lines changed: 6466 additions & 1009 deletions
File tree
- .changeset
- .github/workflows
- packages/spec
- export-origins
- scripts
- lib
- src
- api
- automation
- cloud
- integration
- kernel
- studio
- system
- ui
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
894 | 916 | | |
895 | 917 | | |
896 | 918 | | |
| |||
0 commit comments