Repository navigation
Commit ecda2fa
fix(ci-local): the gates lane ran bun over workspace TS with no node_modules
`owned template copies current` has been RED on every hosted `local-ci` run and
GREEN on every warm dev box. It is not flake and it is not the gate's content: on
a fresh CI checkout there is no `node_modules`, and the lane's only `bun install`
sat inside `gate_fixture_lint` near the END. Cold, the script's relative import of
`codegen-ts/src/index.js` reaches `src/templates/filter-shared.ts`, whose bare
`@metaobjectsdev/metadata` specifier cannot resolve —
error: Cannot find module '@metaobjectsdev/metadata' from
.../codegen-ts/src/templates/filter-shared.ts
The failure was the loud half of a class whose quiet half is worse: bun
auto-installs a bare specifier from the registry, so a cold gate can bind the
PUBLISHED package instead of the working tree and pass, gating a release against
a stale loader with two physical copies of the metamodel in one process.
The standing rule was "any new gates step that touches workspace TS must start
with `bun_install &&`" — a rule each new gate has to remember, and this one did
not. Install ONCE at the head of the bun-requiring section instead, so the class
is unreachable rather than patched. The existing per-gate prefixes stay: they cost
6ms warm and keep each gate runnable on its own.
Proven on a genuinely cold tree (root `node_modules` moved aside), both
directions: without the step the gate fails to resolve; with it the full lane is
LOCAL CI PASSED, 27 gates, from nothing installed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTcEKXTQMYt84fAjuw5A2M1 parent 78c85e1 commit ecda2fa
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
687 | 696 | | |
688 | 697 | | |
689 | 698 | | |
| |||
0 commit comments