Skip to content

fix(ci): Brev E2E suite silently skips — brev login removed in #1470 #1638

@cjagwani

Description

@cjagwani

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.

Before #1470

const REQUIRED_VARS = ["BREV_API_TOKEN", "NVIDIA_API_KEY", "GITHUB_TOKEN", "INSTANCE_NAME"];
// ...
brev("login", "--token", process.env.BREV_API_TOKEN);  // ← wrote credentials

After #1470

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CI/CDUse this label to identify issues with NemoClaw CI/CD pipeline or GitHub Actions.bugSomething isn't workinggithub_actionsPull requests that update GitHub Actions code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions