Skip to content

dashboard-e2e workflow: scheduled run red since PR #1604 — TOWER_TEST_PORT unset trips the live-Tower guard (config still defaults 4100) #1630

Closed

Description

@amrmelsayed

Symptom

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:

Fix

  1. Add TOWER_TEST_PORT: "14100" to the workflow's Playwright step env (unbreaks the scheduled run).
  2. 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).

Activity

  1. added
    area/tower
    on Sep 5, 2026
  2. added 3 commits that reference this issue on Sep 7, 2026
    8bea8e4
    251a4de
    8dd5722
  3. amrmelsayed commented on Sep 7, 2026

    @amrmelsayed
    CollaboratorAuthor

    Resolved by a three-PR chain, proven by dispatch run 34102564209 (success, 65 tests):

    1. PR Fix #1630: set TOWER_TEST_PORT in the scheduled dashboard e2e workflow #1632 — set TOWER_TEST_PORT=14100 in the workflow (cured the guard trip, exposed the next layer).
    2. PR Fix #1630: sync e2e test ports with TOWER_TEST_PORT (completes PR #1632) #1635 — five e2e files hardcoded localhost:4100; now derive from TOWER_TEST_PORT (exposed the next layer).
    3. PR Fix #1630: pass the test port into page.evaluate (browser has no process) #1636 — two of those interpolations were inside page.evaluate browser context where process doesn't exist; port now travels through the evaluate arguments.

    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.

  4. added 3 commits that reference this issue on Sep 8, 2026
    44c6b4d
    1bfcad5
    5537d80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tower

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions