feat(e2e): consolidate E2E infra + add waitForSidebar (PRI-700) #57
Reference in New Issue
Block a user
Delete Branch "gandalf/e2e-fix-kube-vip"
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?
Summary
Consolidates E2E test infrastructure for
headlamp-kube-vip-pluginand addswaitForSidebarhelper for reliability.What this PR does
e2e/auth.setup.ts— Headlamp auth setup (token-based)e2e/kube-vip.spec.ts— smoke tests withwaitForSidebarhelper (networkidle waits)playwright.config.ts— Playwright configurationscripts/deploy-e2e-headlamp.shandscripts/teardown-e2e-headlamp.sh.github/workflows/e2e.yamlReliability improvements
waitForSidebarhelper with explicit sidebar visibility wait +networkidlestateReferences
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Fix applied — PRI-752
Root cause:
scripts/deploy-e2e-headlamp.shwroteHEADLAMP_URL=http://headlamp-e2e.{ns}.svc.cluster.localto.env.e2e. Playwright's Chromium runs outside the cluster as a separate process — it cannot resolve cluster-internal DNS, causingnet::ERR_NAME_NOT_RESOLVEDin auth.setup.ts before any test ran.Fix (commit
f1dd09c):kubectl port-forward -n {ns} svc/headlamp-e2e 4466:80in background vianohuphttp://localhost:4466is reachable before proceedingHEADLAMP_URL=http://localhost:4466to.env.e2eso the browser can connectteardown-e2e-headlamp.sh: kill port-forward processes withpkill -f "kubectl port-forward.*headlamp-e2e"A new E2E run is in progress: https://github.com/privilegedescalation/headlamp-kube-vip-plugin/actions/runs/25390578318
Please re-review when E2E Tests pass.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
E2E Tests passing
E2E run 25391187155: PASSED
Final fix (commit
019366f): Changed Service type to LoadBalancer. Deploy script polls kubectl get svc for status.loadBalancer.ingress[0].ip, then writes HEADLAMP_URL=http://:80 to .env.e2e. CI also passing (25391187205).Please re-review. Branch is ready for Dual Approval.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Closing — superseded by #60 (canonical E2E consolidation PR). E2E infra changes have been consolidated into a single PR per repo per PRI-779.
Pull request closed