Commit 6ad13bb
fix(ci): write Brev credentials file so CLI authenticates on runner (#1639)
## Summary
- Write `~/.brev/credentials.json` during the "Install Brev CLI"
workflow step
- The Brev CLI v0.6.322 does not read `BREV_API_TOKEN` from the
environment — it requires a credentials file
- The `brev login --token` call was removed in 374a847 (#1470),
breaking all E2E runs since
## Root Cause
PR #1470 replaced `brev("login", "--token", process.env.BREV_API_TOKEN)`
with a `brev("ls")` pre-check (`hasAuthenticatedBrev`), but nothing
writes the credentials file on the ephemeral GH Actions runner. Result:
`brev ls` fails silently, `hasAuthenticatedBrev` returns false,
`describe.runIf()` skips the entire suite, and CI reports success with 0
tests run.
## Evidence
- Last working run (Apr 4):
[23968693963](https://github.com/NVIDIA/NemoClaw/actions/runs/23968693963)
— 1 passed, 988s
- Broken runs (Apr 8):
[24160260650](https://github.com/NVIDIA/NemoClaw/actions/runs/24160260650),
[24160572779](https://github.com/NVIDIA/NemoClaw/actions/runs/24160572779),
[24161141317](https://github.com/NVIDIA/NemoClaw/actions/runs/24161141317)
— all 1 skipped, <1s
## Test plan
- [ ] Merge to main, trigger `e2e-brev` workflow with `TEST_SUITE=full`
— confirm tests actually run (not skip)
Fixes #1638
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Improved CI end-to-end workflow: requires and validates an API token
before running, securely writes and protects credential data, and
verifies authentication to ensure reliable automated test runs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>1 parent d8d0d44 commit 6ad13bb
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
153 | 168 | | |
154 | 169 | | |
155 | 170 | | |
| |||
0 commit comments