Commit 4490760
test(oracle): port upstream reference tests as an independent behavior oracle
The 9 bugs from the recent hunt slipped past our own tests because we
reimplemented the code AND wrote the tests from the same reading of the spec —
so the test encoded the same misunderstanding as the code. The fix is to port
the UPSTREAM test suite verbatim: its inputs and expected values come from the
reference authors, so it catches divergences our hand-written tests cannot.
Ported as TestOracle_* (provenance noted in each file):
- imageMetadata.test.ts merge rules: remoteEnv last-wins, mount de-dup by
target (the exact case that would have caught this cycle's mount bug), gpu
requirement merge.
- utils.test.ts: isBuildxCacheToInline (whitespace/casing/embedded specs).
- workspaceConfiguration.test.ts: the basic /workspaces/<basename> mount (the
git-worktree cases are a documented divergence and intentionally not ported).
Entries are built from the exact JSON the TS tests use to avoid translation drift.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7d1ceae commit 4490760
2 files changed
Lines changed: 60 additions & 0 deletions
| 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 | + | |
| 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 | + | |
0 commit comments