test(onboard): isolate gateway recovery fixture#7516
Conversation
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>
Signed-off-by: Apurv Kumaria <akumaria@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 (1)
📝 WalkthroughWalkthroughGateway recovery tests now construct a virtual clock by default, use it for sleeping, and expose its time reader through ChangesGateway recovery test timing
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested reviewers: 🚥 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 coverage in commit b04f836 in the TypeScript / code-coverage/cliThe overall coverage in commit b04f836 in the Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor — InformationalAdvisor assessment: Informational / high confidence Model lanes
Nemotron output stays in workflow artifacts and does not change the assessment above. E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: 1 optional E2E recommendation
This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Summary
Gateway-recovery unit tests no longer invoke the host's production
docker inforuntime probe or busy-loop against real wall-clock deadlines. The fixture now owns a deterministic runtime value and virtual clock, preserving the same recovery assertions while reducing focused test execution from 4.02 seconds to 16 milliseconds.Related Issue
Part of #7140.
Changes
Date.now().Type of Change
Quality Gates
f34bc4baeagainst base3c88ec303passed with no findings. No production code or assertions changed; fail-closed gateway validation and lifecycle-authority coverage remain intact.Documentation Writer Review
no-docs-neededsrc/lib/onboard/gateway-recovery.test.ts; no production or user-facing behavior changed. Focused tests: 14/14 pass; file execution 4.02s -> 16ms.DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailablenpx vitest run --project cli src/lib/onboard/gateway-recovery.test.ts --reporter=verbose: 14/14 passed;npm run typecheck:cli,npm run test:titles:check, andnpm run source-shape:checkpassed.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — not run for this one-file unit-fixture change; GitHub CI is the broad gate.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Apurv Kumaria akumaria@nvidia.com
Summary by CodeRabbit