test(e2e): add state validation phase fixture#5004
Conversation
|
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 (8)
📝 WalkthroughWalkthroughThis PR adds a new e2e state-validation phase to the test framework. GatewayClient and SandboxClient now accept ShellProbeRunOptions to configure probe execution. StateValidationPhaseFixture verifies CLI availability, gateway health, and sandbox status through multiple probe handlers, with support for provider-specific fallbacks and strict environment isolation. ChangesE2E State Validation Phase
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
PR Review AdvisorFindings: 0 needs attention, 0 worth checking, 0 nice ideas Consider writing more tests for
This is an automated advisory review. A human maintainer must make the final merge decision. |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
E2E Scenario Advisor RecommendationRequired scenario E2E: Dispatch required scenario E2E:
Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
Summary
Adds a typed state-validation phase fixture that consumes the expected-state registry and calls existing host, gateway, and sandbox clients. This gives the Vitest E2E path typed probes for CLI installed, gateway healthy/absent, and sandbox running/absent.
Related Issue
Refs #4941
Refs #4990
Changes
StateValidationPhaseFixtureand result types for expected-state probe execution.stateValidationon the shared Vitest E2E scenario context.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Additional verification after rebasing on current
main:npx vitest run --project e2e-scenario-framework test/e2e-scenario/framework-tests/e2e-phase-state-validation.test.tspassesnpx vitest run --project e2e-scenario-frameworkpassesnpx vitest run --project cli test/cli/list-share-live-inference.test.ts test/e2e-scenario/framework-tests/e2e-fixture-context.test.tspassesNote: full local pre-commit
test-cliretries hit unrelated timing flakes intest/cli/list-share-live-inference.test.ts,test/cli/sandbox-mutations.test.ts,test/cli/snapshot-shields.test.ts, andtest/e2e-scenario/framework-tests/e2e-fixture-context.test.ts; the affected files passed when rerun directly.Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit