fix(e2e): use hosted validation models in Vitest lanes - #5892
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. 💤 Files selected but had no reviewable changes (1)
⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughLive e2e scenario tests and the Hermes vitest workflow now use shared hosted-inference defaults and environment plumbing. Hardcoded model IDs and direct API-key extraction were replaced with ChangesHosted inference configuration plumbing
Sequence Diagram(s)sequenceDiagram
participant T as upgrade-stale-sandbox.test.ts
participant C as requireHostedInferenceConfig
participant H as installCurrentNemoclaw
participant E as commandEnv
participant S as host.command
T->>C: read hosted.apiKey and hosted.env from secrets
C-->>T: return hosted config
T->>H: pass hosted
H->>E: merge hosted.env into command env
H->>S: run install with env and redactionValues
T->>S: run upgrade and rebuild checks with commandEnv(hosted.env)
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)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in the Show a code coverage summary of the most covered files.
TypeScript / code-coverage/cliThe overall coverage in the Show a code coverage summary of the most covered files.
Updated |
E2E Advisor RecommendationRequired E2E: None Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
Vitest E2E Scenario RecommendationRequired Vitest E2E scenarios: Dispatch required Vitest E2E scenarios:
Full Vitest E2E advisor summaryVitest E2E Scenario AdvisorBase: Required Vitest E2E scenarios
Optional Vitest E2E scenarios
Relevant changed files
|
PR Review Advisor — Changes requestedMerge posture: Do not merge yet Action checklist
Findings index
Review findings by urgency: 0 required fixes, 2 items to resolve/justify, 0 in-scope improvements
|
PR Review Advisor (Nemotron Ultra) — No blocking findingsMerge posture: No blocking advisor findings Action checklist
Test follow-ups to resolve or justifyIf these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.
This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision. |
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Superseded by #5893 because force-push is disabled on PR branches and the replacement branch has a clean minimal diff. |
Summary
Fixes hosted-compatible Vitest lanes that reached the custom provider path but still used public/provider-specific model or env setup, causing hosted endpoint validation to fail with HTTP 401/403. The affected tests now use the shared hosted-compatible model/env plumbing consistently.
Changes
NEMOCLAW_MODEL=minimaxai/minimax-m2.7so hosted-compatible runs use the shared hosted model default.DEFAULT_HOSTED_INFERENCE_MODEL.requireHostedInferenceConfig()/hosted.envinstead of manually passing onlyNVIDIA_INFERENCE_API_KEY.Type of Change
Quality Gates
Verification
Verifiedin GitHubnpx prek run --from-ref main --to-ref HEADpassesnpm testpasses (broad runtime changes only)npm run docsbuilds without warnings (doc changes only)Targeted verification:
Live scenario test files are gated locally unless
NEMOCLAW_RUN_E2E_SCENARIOS=1is set; the validation evidence will come from targeted GitHub E2E reruns after merge.Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit