test(e2e): distinguish managed image rollback backup - #8833
Conversation
Signed-off-by: Senthil Ravichandran <senthilr@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)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe managed image E2E harness now uses typed, injectable command runners. It validates exact running-container images, stopped-container cleanup, and explicit startup probe failures for executable, configuration, filesystem, CA, and readiness checks. ChangesManaged image runtime validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/managed-image-protected-runtime-contract.test.ts`:
- Around line 133-177: Update the test case around assertExactSandboxImage and
assertFailedBootstrapContainerCleanup to model a valid lifecycle: return the
running container for the initial ps -q lookup, then return no containers for
post-rollback ps -aq cleanup. Add a separate focused case where ps -aq returns a
stopped, correctly labeled container and assert that
assertFailedBootstrapContainerCleanup throws, covering both cleanup detection
and the no-container false-positive behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 835929bf-f46c-4dd0-8f86-d4aab96bbe86
📒 Files selected for processing (2)
scripts/checks/run-managed-image-openshell-e2e.tstest/managed-image-protected-runtime-contract.test.ts
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. 3 semantic terminology decisionsTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: Manual-only E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Signed-off-by: Senthil Ravichandran <senthilr@nvidia.com>
Summary
The protected managed-image main E2E counted the stopped managed-bootstrap rollback backup as a second active PR-image container. This change qualifies exactly one running replacement while preserving all-container rollback cleanup, and replaces empty startup-probe failures with the exact failed condition.
Changes
Type of Change
Quality Gates
Documentation Writer Review
no-docs-neededDGX Station Hardware Evidence
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/managed-image-protected-runtime-contract.test.tspassed 32/32;npm run typecheck:clipassed;npm run test-conditionals:scan -- --top 25passed.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: Linux PR CI is the authoritative broad gate for this protected E2E-only change.npm run docsbuilds without warnings (doc changes only)Failure evidence
Signed-off-by: Senthil Ravichandran senthilr@nvidia.com
Summary by CodeRabbit
Bug Fixes
Tests