test(inference): share the stopped foreign-container cases - #8439
Conversation
Signed-off-by: Tinson Lai <tinsonl@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 (4)
📝 WalkthroughWalkthroughThe change centralizes stopped foreign-container fixtures in the shared test-support module. The discovery, executor, and lifecycle test suites now import the shared type and fixture collection instead of defining duplicate local cases. ChangesManaged-cluster fixture sharing
Estimated code review effort: 2 (Simple) | ~10 minutes 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 |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 91e3d9e in the TypeScript / code-coverage/cliThe overall coverage in commit 91e3d9e in the Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
3 additional E2E selections from the second opinionAdvisory only. The primary lane did not select these E2E jobs or targets.
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: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Summary
Three managed-cluster suites each carried a byte-identical copy of the stopped foreign-container case table. The table and its type now live in the existing managed-cluster test-support module, so one canonical set of signals drives all three parameterized suites.
Related Issue
Resolves #8348
Changes
StoppedForeignContainerFixtureandSTOPPED_FOREIGN_CONTAINER_FIXTURESfromsrc/lib/inference/serving/managed-cluster-fixture.test-support.ts, moved verbatim from the suites.managed-cluster-discovery.test.ts,managed-cluster-executor.test.ts, andmanaged-cluster-lifecycle.test.ts, which now import the shared pair.MANAGED_CLUSTER_MANAGED_LABELimport from the executor and lifecycle suites, where the removed table was its only consumer. The discovery suite keeps it for its other cases.runtime-conflict, the executor asserts the worker-first boundary stays closed, and lifecycle assertsconflictwith no staging, start, or removal.organizeImportsfix to the test-support module. That module already failedbiome checkonorigin/main, and the pre-commit hook rewrites it as soon as the file is touched.Type of Change
Quality Gates
Documentation Writer Review
no-docs-neededsrc/lib/inference/serving/. No production module, CLI command, blueprint YAML, catalog, default, or error string is touched, anddocs/has no reference to the affected symbols. The documented contract these cases exercise, atdocs/inference/set-up-vllm-on-two-dgx-sparks.mdx:227, is unchanged because the table moved verbatim.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 cli src/lib/inference/serving/managed-cluster-discovery.test.ts src/lib/inference/serving/managed-cluster-executor.test.ts src/lib/inference/serving/managed-cluster-lifecycle.test.ts— 3 files, 62 tests passed;npm run typecheck:cliclean;npm run test:projects:checkreports exact membership.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)Signed-off-by: Tinson Lai tinsonl@nvidia.com
Summary by CodeRabbit