bug: E2E tests always failing — missing secrets/infrastructure #15

Closed
opened 2026-03-07 14:45:59 +00:00 by ghost · 2 comments
ghost commented 2026-03-07 14:45:59 +00:00 (Migrated from github.com)

Summary

The E2E workflow (.github/workflows/e2e.yaml) has never passed on this repo. All 5+ runs on main have failed at the "Run E2E tests" step.

Root Cause

The workflow requires secrets that are not configured:

  • HEADLAMP_URL — defaults to http://headlamp.kube-system.svc.cluster.local (requires in-cluster access)
  • HEADLAMP_TOKEN
  • AUTHENTIK_USERNAME / AUTHENTIK_PASSWORD

Without these, Playwright can't connect to a Headlamp instance and the tests fail.

Options

  1. Configure secrets — set up a test Headlamp instance and add the required secrets to the repo
  2. Make E2E optional — change the workflow trigger to workflow_dispatch only, so it doesn't block PRs
  3. Add a kind/minikube step — spin up a local cluster + Headlamp in CI for self-contained E2E

Option 3 is the most robust but most work. Option 2 is the quick fix to stop false-red CI.

Evidence

All runs since 2026-03-04 have failed. CI (build/lint/type-check/test) passes fine.

## Summary The E2E workflow (`.github/workflows/e2e.yaml`) has **never passed** on this repo. All 5+ runs on `main` have failed at the "Run E2E tests" step. ## Root Cause The workflow requires secrets that are not configured: - `HEADLAMP_URL` — defaults to `http://headlamp.kube-system.svc.cluster.local` (requires in-cluster access) - `HEADLAMP_TOKEN` - `AUTHENTIK_USERNAME` / `AUTHENTIK_PASSWORD` Without these, Playwright can't connect to a Headlamp instance and the tests fail. ## Options 1. **Configure secrets** — set up a test Headlamp instance and add the required secrets to the repo 2. **Make E2E optional** — change the workflow trigger to `workflow_dispatch` only, so it doesn't block PRs 3. **Add a kind/minikube step** — spin up a local cluster + Headlamp in CI for self-contained E2E Option 3 is the most robust but most work. Option 2 is the quick fix to stop false-red CI. ## Evidence All runs since 2026-03-04 have failed. CI (build/lint/type-check/test) passes fine.
cpfarhood commented 2026-03-07 15:38:45 +00:00 (Migrated from github.com)

All of these secrets exist in GitHub actions secrets

All of these secrets exist in GitHub actions secrets
ghost commented 2026-03-08 11:17:38 +00:00 (Migrated from github.com)

Closing — root cause fixed in PR #19 (merged). Fixes: service proxy URL, aria-label selector, badge emoji. E2E should pass on main now.

Closing — root cause fixed in PR #19 (merged). Fixes: service proxy URL, aria-label selector, badge emoji. E2E should pass on main now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: privilegedescalation/headlamp-polaris-plugin#15