Repository navigation
Use version-correct Babysitter fixtures for SDK 3 tests - #716
willwashburn wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] These fixture changes appear safe to merge.
|
|
The full Linux SDK run finished with 5,035 tests passing, 14 skipped and four failures. The five synthetic-fixture failures from the v3.0.0 baseline now pass, including the serial replay case. All four remaining failures exercise the hosted runner and its release-pinned native Babysitter 0.2.0 artifact. The 3.0.0 runtime refuses that artifact's declared 2.x range before dispatch. The release manifest prerequisite is #715. The runtime needs a separately reviewed immutable ref and digests for the compatible package. Full Linux run |
The synthetic Babysitter project used by CLI, export and replay tests declares only 2.x compatibility, so SDK 3 exits before the tests exercise their actual contracts. Allow the synthetic project to load on 3.0.x. The two tests specifically checking exclusion still use a 2.x-only manifest and retain their original refusal assertions.
The native tests simulate a GitHub read of commit 8b33eba. Use the historical manifest bytes for that mocked commit so a future edit to the live native manifest cannot silently change the fixture. The existing complete bundle and manifest digest checks still verify the exact bytes. The runtime code, trust pins and CI workflows are unchanged.
Ran
npm ci --ignore-scripts --no-fund --no-audit,npm run build, andnode_modules/.bin/vitest run tests/babysitter-native-extension.test.ts tests/babysitter-catalog-export.test.ts tests/software-garden-babysitter-composition.test.ts tests/plugin-extension.test.ts tests/flow-extension-compose.test.tsin Node 24 on Linux, including the proposed manifest from #715. Result: 184 passed, 3 skipped because bubblewrap was unavailable, and one failure in the production composition path because the runtime still requires the historical 2.x native artifact. That failure remains visible. #715 proposes the separate native artifact for review, followed by an exact-reviewed-release pin update.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes SDK 3 tests against the Babysitter fixtures so they exercise their actual contracts instead of exiting on the declared 2.x-only compatibility. Widens the synthetic manifest's compat to allow 3.0.x loads, while the two tests that specifically verify exclusion override compat back to 2.x-only and keep their refusal assertions.
Native tests now mount the historical v0.2.0 manifest bytes from
testdata/plugins/babysitter-v0.2.0/flows-plugin.jsonfor the mocked commit8b33ebab, so future edits to the live native manifest cannot silently change the fixture. The complete bundle and manifest digest checks still verify the exact bytes. Runtime code, trust pins, and CI workflows are unchanged.Written for commit c5bb1ed. Summary will update on new commits.