test(onboard): preserve runtime fixture isolation - #8557
Conversation
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesClone session isolation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests. E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite against this exact revision. Recommended E2E: None This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Summary
cloneSessionfrom #8546 returned the caller-owned session when normalization rejected its serialized copy. This follow-up keeps the serialized copy as the fallback so fixture mutations cannot alter caller-owned top-level or nested state.Changes
test/helpers/onboard-final-flow-phases.ts,src/lib/onboard/resume-machine-repair.test.ts,src/lib/onboard/runtime-boundary-step-result.test.ts, andsrc/lib/onboard/runtime-boundary.test.ts. Their callers construct valid sessions and do not expose test(onboard): add an in-memory machine runtime fixture #8546's independent-mutation contract, so this PR does not change them.Type of Change
Quality Gates
Documentation Writer Review
no-docs-neededtest/helpers/onboard-machine-runtime-fixture.tsandtest/helpers/onboard-machine-runtime-fixture.test.ts. The reviewer found no user-visible behavior or documentation impact and approved the test title and existing JSDoc ownership.DGX Station Hardware Evidence
scripts/prepare-dgx-station-host.shdoes not change.Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx vitest run --project integration test/helpers/onboard-machine-runtime-fixture.test.tspassed 1/1; the eight test(onboard): add an in-memory machine runtime fixture #8546 CLI suites passed 63/63;npm run typecheck:clipassed;npm run test:projects:checkreported exact membership for 2,231 candidate files across seven projects.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: not applicable. The change updates one fixture fallback and adds one focused test; targeted validation covers every test(onboard): add an in-memory machine runtime fixture #8546 consumer.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Julie Yaunches jyaunches@nvidia.com
Summary by CodeRabbit
Bug Fixes
Tests