Revert "ci(nightly): enable brev-e2e job with long-lived BREV_API_TOKEN (#3350)"#3373
Conversation
📝 WalkthroughWalkthroughUnified Brev E2E provisioning from dual-mode (published launchable vs startup-script) to startup-script-only instances using ChangesBrev E2E Provisioning Simplification
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
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 |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryPi Semantic E2E AdvisorFailed: pi exited with status 1; see /home/runner/work/NemoClaw/NemoClaw/artifacts/e2e-advisor/e2e-advisor-pi-raw-output.txt |
| let setupScriptPath: string; | ||
| if (DEFAULT_SETUP_SCRIPT_PATH.startsWith("http")) { | ||
| setupScriptPath = "/tmp/brev-ci-setup.sh"; | ||
| execSync(`curl -fsSL -o ${setupScriptPath} "${DEFAULT_SETUP_SCRIPT_PATH}"`, { |
| `brev search cpu --min-vcpu ${BREV_MIN_VCPU} --min-ram ${BREV_MIN_RAM} --min-disk ${BREV_MIN_DISK} --provider ${BREV_PROVIDER} --sort price | ` + | ||
| `brev create ${INSTANCE_NAME} --startup-script @${setupScriptPath} --detached`, |
| `brev search cpu --min-vcpu ${BREV_MIN_VCPU} --min-ram ${BREV_MIN_RAM} --min-disk ${BREV_MIN_DISK} --provider ${BREV_PROVIDER} --sort price | ` + | ||
| `brev create ${INSTANCE_NAME} --startup-script @${setupScriptPath} --detached`, |
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 @.github/workflows/e2e-branch-validation.yaml:
- Around line 125-126: Uncomment and restore the repository restriction on the
job by re-enabling the conditional `if: github.repository == 'NVIDIA/NemoClaw'`
(currently commented out above `runs-on: ubuntu-latest`) so the workflow only
runs in the main repository and not on forks where secrets like `BREV_API_TOKEN`
are unavailable; ensure the `if:` line is present and active before merging.
🪄 Autofix (Beta)
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: 81ef3d8e-4ccc-41ac-bdba-9081dd9a6c23
📒 Files selected for processing (4)
.github/workflows/e2e-branch-validation.yaml.github/workflows/nightly-e2e.yamltest/e2e/brev-e2e.test.tsvitest.config.ts
| # if: github.repository == 'NVIDIA/NemoClaw' # Disabled for fork testing — re-enable before merge | ||
| runs-on: ubuntu-latest |
There was a problem hiding this comment.
Re-enable repository restriction before merging.
The repository restriction if: github.repository == 'NVIDIA/NemoClaw' is commented out with a note to "re-enable before merge". Without this guard, the job will attempt to run on forks where BREV_API_TOKEN is unavailable, causing failures. Uncomment this line before merging.
🔧 Proposed fix
- # if: github.repository == 'NVIDIA/NemoClaw' # Disabled for fork testing — re-enable before merge
+ if: github.repository == 'NVIDIA/NemoClaw'📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # if: github.repository == 'NVIDIA/NemoClaw' # Disabled for fork testing — re-enable before merge | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'NVIDIA/NemoClaw' | |
| runs-on: ubuntu-latest |
🤖 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 @.github/workflows/e2e-branch-validation.yaml around lines 125 - 126,
Uncomment and restore the repository restriction on the job by re-enabling the
conditional `if: github.repository == 'NVIDIA/NemoClaw'` (currently commented
out above `runs-on: ubuntu-latest`) so the workflow only runs in the main
repository and not on forks where secrets like `BREV_API_TOKEN` are unavailable;
ensure the `if:` line is present and active before merging.
Summary
Reverts #3350 because the new
brev-e2ereusable workflow call breaksnightly-e2eat startup onmain.GitHub rejects
nightly-e2e.yamlbefore jobs are created because the caller only grantscontents: read, while the called workflow requestschecks: writeandpull-requests: write.Failing runs:
Verification
git diff --check origin/main..HEADnightly-e2e.yamlno longer contains the newbrev-e2ejob wiring.Summary by CodeRabbit
Release Notes