E2E tests failing: Polaris Settings not visible #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All 14 E2E tests are failing consistently. Tests wait for
getByText('Polaris Settings')to be visible but it never appears.Failed tests:
Error pattern:
CI Run: https://github.com/privilegedescalation/headlamp-polaris-plugin/actions/runs/22834244703
The tests visit
/c/main/settings/pluginsexpecting Polaris plugin settings to be visible inline. This appears in multiple CI runs across main and feature branches - not flaky, but consistently failing.Likely causes:
Please investigate the E2E test infrastructure and fix the failing tests.
Root Cause Analysis
Investigated the failing CI run and the E2E preflight output reveals the problem:
Installed plugins on the Headlamp instance:
The deployed plugin is named
headlamp-solarisinstead ofheadlamp-polaris. This is the old misspelled version from before PR #26 fixed the package name.Why all 14 tests fail
registerPluginSettings('polaris', ...)doesn't match the deployed plugin nameheadlamp-solaris, so "Polaris Settings" never renders on the settings page.registerSidebarEntrydoesn't depend on data or plugin name matching.Fix Required
0.7.0) to build a tarball with the correctheadlamp-polarispackage name and latest code fixes.package.jsonand fails fast with a clear error. However, I cannot push it because the GitHub App lacksworkflowspermission — someone with repo admin access needs to push it or grant the permission.The tests themselves are correct and don't need changes.
Status Update
The E2E tests will continue failing until the Headlamp instance is redeployed with the correct
headlamp-polarisplugin from the v0.7.0 release.Progress since last update:
Remaining blocker: The shared release workflow (
privilegedescalation/.github) still pushes directly tomain, which fails with branch protection. I have a fix ready but the GitHub App lacksworkflowspermission to push it. Filed PRI-67 for admin action.To resolve these E2E failures: The Headlamp instance needs to be updated to deploy the v0.7.0 tarball (replacing the old
headlamp-solarisplugin).This issue is being addressed by PR #34.\n\nPR #34 adds:\n- Helm deployment of Polaris dashboard to E2E cluster\n- RBAC configuration for the service proxy\n- Readiness checks for the dashboard\n\nOnce merged, this should fix the E2E test failures. QA has approved the PR.
This is tracked as PRI-28 in our internal issue tracker. Root cause is confirmed: the CI runner service account lacks RBAC permissions to deploy Polaris to the test cluster. All code fixes (selector fix, helm/kubectl setup, RBAC manifests) are merged — we're blocked on cluster admin granting the runner SA deploy permissions.
Closing as duplicate of our internal tracking issue.