Skip to content

Dashboard E2E scheduled runs fail: missing GH_TOKEN #566

@waleedkadous

Description

@waleedkadous

Bug

Dashboard E2E tests fail consistently on scheduled runs (daily at 08:00 UTC) but pass on push-triggered runs. This has been happening for multiple days.

Root Cause

.github/workflows/dashboard-e2e.yml does not pass GH_TOKEN or GITHUB_TOKEN to the test step. Push-triggered workflows get the token automatically, but scheduled workflows do not propagate it to child processes.

The Tower starts during E2E tests and calls gh pr list, gh issue list, etc. Without auth, all GitHub CLI commands fail:

[github] fetchMergedPRs failed: Command failed: gh pr list --state merged ...
[github] fetchPRList failed: Command failed: gh pr list --json ...
[github] fetchIssueList failed: Command failed: gh issue list --json ...

Tests that depend on GitHub data (37 of 89) fail. Tests that don't (52) pass.

Fix

Add GH_TOKEN to the test step environment in dashboard-e2e.yml:

- name: Run Playwright tests
  working-directory: packages/codev
  env:
    TOWER_ARCHITECT_CMD: bash
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  run: npx playwright test --retries 3

Files

  • .github/workflows/dashboard-e2e.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions