Repository navigation
test(wsl): align subprocess fixtures with runtime contracts - #12574
Conversation
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe Podman diagnostic test now uses the shared test timeout and passes it to its command mock. Child-runtime proof matching now accepts ChangesPodman diagnostic test timeout
Child-runtime proof matching
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change only updates test fixtures to match the subprocess behavior they simulate, so it has no production impact. It is low risk to merge; real WSL validation is still pending in the platform workflow. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 326fa28 in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit 326fa28 in the Show a line coverage summary of the most impacted files.
Updated |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
Outcome
Make the remaining WSL subprocess fixtures recognize the runtime contracts they simulate. The Ollama recovery fixture accepts both supported GNU timeout locations, and the Podman diagnostic fixture honors the command budget supplied by its caller.
Reason
WSL run 36969000132, on the merge of #12573, cleared all 13 original failures. Shards 2 and 3 passed. Two fixture failures still prevented live onboarding:
/usr/bin/timeout. The newly selected/usr/bin/gnutimeoutfell through to the real runner instead of receiving the fixture's successful proof response.Related issues
Refs #12285, #12281, and #12573.
Changes
timeoutMsinto its real child process and give the surrounding test cleanup headroom. Retain the assertions for successful execution, empty stderr, and the collector's exact serialized result.Verification
npx vitest run --project integration --project e2e-support test/helpers/onboard-child-runtime.test.ts test/e2e/support/podman-owner-diagnostic.test.ts— all 26 tests passed.test/onboarding/onboard-selection.test.tssystemd-timeout recovery case — passed. The same case also passed in a temporary fixture forcing prefixed-GNU availability, with its original assertions unchanged.326fa28b71668ee89599f93b6daaa3b9ee0ba3bdis GitHub Verified.Review notes
This three-file change is limited to test fixtures and their coverage; it does not alter runtime behavior or validation assertions. It adds one table case for the prefixed GNU path. Self-review checked the diff against
5b3bd580c9b6496c9dd9e095bd9db53f9d0e6b29, including preservation of unsupported-command rejection and diagnostic-result checks. Automated CI and review are pending.Signed-off-by: Aaron Erickson aerickson@nvidia.com
Summary by CodeRabbit