Problem
The Brev E2E suite silently skips all tests (reports 1 skipped, 0 passed) because the Brev CLI is not authenticated on the GH Actions runner.
Root cause: Commit 374a847 (refactor(installer): unify host preflight and thin deploy compatibility, PR #1470) removed the brev("login", "--token", process.env.BREV_API_TOKEN) call from brev-e2e.test.js and replaced it with a brev("ls") pre-check (hasAuthenticatedBrev). But nothing authenticates the CLI first — the Brev CLI v0.6.322 does not read BREV_API_TOKEN from the environment; it requires ~/.brev/credentials.json.
const REQUIRED_VARS = ["BREV_API_TOKEN", "NVIDIA_API_KEY", "GITHUB_TOKEN", "INSTANCE_NAME"];
// ...
brev("login", "--token", process.env.BREV_API_TOKEN); // ← wrote credentials
const REQUIRED_VARS = ["NVIDIA_API_KEY", "GITHUB_TOKEN", "INSTANCE_NAME"]; // ← BREV_API_TOKEN removed
const hasAuthenticatedBrev = (() => {
try { brev("ls"); return true; } catch { return false; } // ← fails, no credentials file
})();
describe.runIf(hasRequiredVars && hasAuthenticatedBrev)("Brev E2E", () => { // ← skips
Evidence
Fix
Write ~/.brev/credentials.json in the "Install Brev CLI" workflow step before vitest runs.
Problem
The Brev E2E suite silently skips all tests (reports
1 skipped, 0 passed) because the Brev CLI is not authenticated on the GH Actions runner.Root cause: Commit 374a847 (
refactor(installer): unify host preflight and thin deploy compatibility, PR #1470) removed thebrev("login", "--token", process.env.BREV_API_TOKEN)call frombrev-e2e.test.jsand replaced it with abrev("ls")pre-check (hasAuthenticatedBrev). But nothing authenticates the CLI first — the Brev CLI v0.6.322 does not readBREV_API_TOKENfrom the environment; it requires~/.brev/credentials.json.Before #1470
After #1470
Evidence
Fix
Write
~/.brev/credentials.jsonin the "Install Brev CLI" workflow step before vitest runs.