Repository navigation
fix(e2e): allow Brev GPU bridge gateway traffic - #3960
Conversation
Signed-off-by: Aaron Erickson <aerickson@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 (2)
📝 WalkthroughWalkthroughExtracts GPU Docker runtime command assembly into gpuDockerRuntimeSetupCommands(), adds OPENSHELL_GATEWAY_PORT/OLLAMA_AUTH_PROXY_PORT/DOCKER_DEFAULT_BRIDGE_POOL_CIDR, updates prepareGpuDockerRuntime() to execute the assembled command string, adds Vitest validating generated ufw allow-rule strings, and refactors sandbox inference routing and probe logic in the e2e script. ChangesGPU Runtime Setup for Brev
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
🚥 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)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
E2E Advisor RecommendationRequired E2E: None Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
PR Review AdvisorRecommendation: blocked This is an automated advisory review. A human maintainer must make the final merge decision. Limitations: Review used read-only repository/diff inspection and deterministic PR context; no PR scripts, package-manager commands, or live E2E jobs were executed by this review.; Linked issue #3959 body/comments were not available in the deterministic context, so issue-specific clauses could not be extracted literally beyond the PR body reference.; CI is still pending and mergeability is blocked for the requested head SHA; final gate status may change after checks complete.; Review thread state is unknown despite empty GraphQL reviewThreads.nodes; CodeRabbit auto-review was paused in the provided issue comment.; Brev E2E failure comments were available, but logs were not inspected, so the exact historical failure causes are unknown.; A branch-level passed Brev E2E comment is present, but the trusted context does not establish that it passed for current head ba96c57.; The behavioral safety and effectiveness of the UFW rules cannot be fully proven without successful required live GPU E2E evidence for the current head SHA. Full advisor summaryPR Review AdvisorBase: Patch is localized to Brev/GPU E2E harness code and appears directionally scoped, but it is blocked by pending CI, blocked/review-required mergeability, and missing required E2E pass evidence for the current head SHA. Gate status
🔴 Blockers
🟡 Warnings
🔵 Suggestions
Acceptance coverage
Security review
Test / E2E status
✅ What looks good
Review completeness
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/e2e/brev-e2e.test.ts (1)
1057-1061: ⚡ Quick winBind the
|| truecheck to the UFW rule assertion.The standalone
expect(setup).toContain("|| true")can pass if any unrelated command includes that token. Assert the full UFW rule line with its tolerant suffix to avoid false positives.Proposed test tightening
- expect(setup).toContain( - `ufw allow from ${DOCKER_BRIDGE_CIDR} to any port ${OPENSHELL_GATEWAY_PORT} proto tcp`, - ); - expect(setup).toContain("|| true"); + expect(setup).toContain( + `ufw allow from ${DOCKER_BRIDGE_CIDR} to any port ${OPENSHELL_GATEWAY_PORT} proto tcp >/dev/null || true`, + );🤖 Prompt for 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. In `@test/e2e/brev-e2e.test.ts` around lines 1057 - 1061, The test currently asserts expect(setup).toContain(...) for the UFW rule and separately expect(setup).toContain("|| true"), which can yield false positives; update the assertion so the UFW rule expectation includes the tolerant suffix by checking for the full combined string `ufw allow from ${DOCKER_BRIDGE_CIDR} to any port ${OPENSHELL_GATEWAY_PORT} proto tcp || true` (i.e. modify the expect that references setup, DOCKER_BRIDGE_CIDR and OPENSHELL_GATEWAY_PORT to include the trailing "|| true" in the same toContain call).
🤖 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.
Nitpick comments:
In `@test/e2e/brev-e2e.test.ts`:
- Around line 1057-1061: The test currently asserts expect(setup).toContain(...)
for the UFW rule and separately expect(setup).toContain("|| true"), which can
yield false positives; update the assertion so the UFW rule expectation includes
the tolerant suffix by checking for the full combined string `ufw allow from
${DOCKER_BRIDGE_CIDR} to any port ${OPENSHELL_GATEWAY_PORT} proto tcp || true`
(i.e. modify the expect that references setup, DOCKER_BRIDGE_CIDR and
OPENSHELL_GATEWAY_PORT to include the trailing "|| true" in the same toContain
call).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: faffbc97-2373-4796-8f64-727cb2271e37
📒 Files selected for processing (1)
test/e2e/brev-e2e.test.ts
|
❌ Brev E2E (gpu): FAILED on branch |
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
|
❌ Brev E2E (gpu): FAILED on branch |
|
❌ Brev E2E (gpu): FAILED on branch |
|
❌ Brev E2E (gpu): FAILED on branch |
|
❌ Brev E2E (gpu): FAILED on branch |
|
❌ Brev E2E (gpu): FAILED on branch |
|
❌ Brev E2E (gpu): FAILED on branch |
|
❌ Brev E2E (gpu): FAILED on branch |
|
❌ Brev E2E (gpu): FAILED on branch |
Selective E2E Results —
|
| Job | Result |
|---|---|
| gpu-e2e | ⏭️ skipped |
|
✅ Brev E2E (gpu): PASSED on branch |
Summary
Refs #3959.
Testing
npx vitest run test/e2e/brev-e2e.test.ts -t "Brev GPU runtime setup|Brev deploy input validation"git diff --checkFollow-up
[2/8] Starting OpenShell gatewayand reaches sandbox GPU proof/inference.Summary by CodeRabbit
Tests
Bug Fixes / Reliability