-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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 3Files
.github/workflows/dashboard-e2e.yml
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working