You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dashboard-e2e workflow: scheduled run red since PR #1604 — TOWER_TEST_PORT unset trips the live-Tower guard (config still defaults 4100) #1630
The scheduled Dashboard E2E Tests workflow fails on main since 2026-09-05 08:15Z (run 33954778730), first scheduled run after PR #1604 merged:
Error: TOWER_TEST_PORT must be set for this test — refusing to default to 4100 (the live Tower). Run it against a throwaway server, e.g. TOWER_TEST_PORT=14100.
Cause
PR #1604 added issue-1482-held-popover-detail.test.ts with a deliberate no-default-port guard (reads process.env.TOWER_TEST_PORT directly, throws if unset) so the suite can never target a developer's live Tower on 4100. Correct guard — but:
.github/workflows/dashboard-e2e.yml sets TOWER_ARCHITECT_CMD and GH_TOKEN, not TOWER_TEST_PORT, so in CI the guard trips.
Add TOWER_TEST_PORT: "14100" to the workflow's Playwright step env (unbreaks the scheduled run).
Follow-up worth doing in the same change or separately: change the playwright.config default from 4100 to a throwaway port (e.g. 14100) so the guard's protection applies suite-wide by default instead of per-test.
Note
This was the ci-health cron's first true positive (its record was 7-for-7 false positives, #1456).
The playwright.config 4100 default itself remains, but every test now honors the env var, so local runs with TOWER_TEST_PORT set are fully isolated; flipping the config default to a throwaway port stays available as a hardening follow-up if anyone hits the local live-Tower hazard again. Two flake-class teardown errors (spec-823, team-tab: context-closed/ECONNRESET, retry-recovered) were observed during the chain and are noted here for pattern-matching if they recur.
Activity
Merge pull request #1632 from cluesmith/fix/1630-dashboard-e2e-test-port
Merge pull request #1635 from cluesmith/fix/1630-e2e-port-sync
Merge pull request #1636 from cluesmith/fix/1630-evaluate-port
amrmelsayed commentedon Sep 7, 2026
Resolved by a three-PR chain, proven by dispatch run 34102564209 (success, 65 tests):
TOWER_TEST_PORT=14100in the workflow (cured the guard trip, exposed the next layer).localhost:4100; now derive fromTOWER_TEST_PORT(exposed the next layer).page.evaluatebrowser context whereprocessdoesn't exist; port now travels through the evaluate arguments.The playwright.config
4100default itself remains, but every test now honors the env var, so local runs withTOWER_TEST_PORTset are fully isolated; flipping the config default to a throwaway port stays available as a hardening follow-up if anyone hits the local live-Tower hazard again. Two flake-class teardown errors (spec-823, team-tab: context-closed/ECONNRESET, retry-recovered) were observed during the chain and are noted here for pattern-matching if they recur.Fix cluesmith#1630: set TOWER_TEST_PORT in the dashboard e2e workflow
Fix cluesmith#1630: e2e tests read TOWER_TEST_PORT instead of hardcod…
Fix cluesmith#1630: pass TOWER_TEST_PORT into browser context — proce…