Repository navigation
Commit 93be029
`packages/services/service-storage` had no `vitest.config.ts`, so its unit
suite resolved `@objectstack/core` through the workspace link to
`packages/core/dist/index.js` — a build artifact. The verdict of every unit
pin in the package was a function of build state, not of the source in the
checkout.
All 17 cases of `attachment-access-hooks.test.ts` — the only executable guard
on the #4757 predicate-less unscoped-multi-delete refusal, which cannot be
expressed over REST — errored with `TypeError: withoutOperationPrivateKeys is
not a function` against a tree whose prebuilt core predated that export, while
`packages/core/src/security/operation-private-keys.ts` was correct throughout.
The loud error is the mild half: a core dist merely BEHIND rather than missing
the symbol lets a pin run green against core's old behaviour, with nothing in
the output saying so.
This is not a task-ordering bug. `turbo.json` already declares `test`
dependsOn `^build` and `turbo run test --filter=@objectstack/service-storage`
passes 352/352; it needed no change. The paths that broke are the ones turbo
does not mediate — `pnpm test` in the package, `vitest run <file>`, an editor
runner, a QA tree built at an older commit — which is where a pin is re-run
while someone is changing core. Ordering cannot fix that; taking the artifact
out of the resolution path can.
Verified by simulating the exact #7668 condition (core's built `index.js`
stripped of the export): without the config 17/30 cases fail with the issue's
verbatim TypeError; with it, 30/30 pass. Full suite 352/352 green both via
`turbo run test` and via a bare `vitest run` in the package.
Fixes #7668
Claude-Session: https://claude.ai/code/session_01UqnHVpBA1ij5Jb87JaMXyM
Co-authored-by: Claude <noreply@anthropic.com>
1 parent e906126 commit 93be029
2 files changed
Lines changed: 89 additions & 0 deletions
File tree
- .changeset
- packages/services/service-storage
| 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 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 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 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments