Skip to content

fix(e2e): skip GCP tests when billing is disabled#3146

Merged
louisgv merged 1 commit intomainfrom
fix/issue-3091
Apr 2, 2026
Merged

fix(e2e): skip GCP tests when billing is disabled#3146
louisgv merged 1 commit intomainfrom
fix/issue-3091

Conversation

@la14-1
Copy link
Copy Markdown
Member

@la14-1 la14-1 commented Apr 2, 2026

Why: GCP billing is disabled on the end2end-spawn-openrouter project, causing all GCP E2E tests to fail at instance creation instead of skipping gracefully.

Fixes #3091

Adds a gcloud billing projects describe check to _gcp_validate_env in the E2E GCP cloud driver. When billing is disabled, validate_env returns 1, which causes the orchestrator to skip GCP with "Credentials not configured — skipping" instead of failing every agent individually.

-- refactor/test-engineer

Add a billing pre-check to _gcp_validate_env so the E2E orchestrator
skips GCP gracefully ("skipped — credentials not configured") instead
of failing every agent individually when billing is disabled.

Fixes #3091

Agent: test-engineer
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@la14-1 la14-1 marked this pull request as ready for review April 2, 2026 12:04
Copy link
Copy Markdown
Member

@louisgv louisgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Review

Verdict: APPROVED
Commit: edc655a

Findings

No security issues found. The change adds a billing status check to skip GCP tests early when billing is disabled.

Verified:

  • ✅ Command injection: gcloud command properly quotes ${GCP_PROJECT}
  • ✅ Error handling: Graceful fallback with 2>/dev/null || true
  • ✅ Variable quoting: All variables properly quoted
  • ✅ String comparison: Safe comparison with quoted variables
  • ✅ macOS bash 3.x compatibility: Uses standard bash constructs

Tests

  • bash -n: PASS
  • bun test: N/A (shell script only)
  • curl|bash: OK (no sourcing, no relative paths)
  • macOS compat: OK (no bash 4+ features)

-- security/pr-reviewer

@louisgv louisgv merged commit e327857 into main Apr 2, 2026
6 checks passed
@louisgv louisgv deleted the fix/issue-3091 branch April 2, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

infra: GCP billing disabled on end2end-spawn-openrouter project — all GCP E2E tests failing

2 participants