Skip to content

ci: multi-browser sharded CI with PR gating + artifact upload#1

Merged
MrFullStackDev merged 1 commit into
mainfrom
chore/ci-and-config
May 2, 2026
Merged

ci: multi-browser sharded CI with PR gating + artifact upload#1
MrFullStackDev merged 1 commit into
mainfrom
chore/ci-and-config

Conversation

@MrFullStackDev

Copy link
Copy Markdown
Owner

Summary

  • Gates PRs: adds pull_request trigger so test failures actually block merge (was push-only on main).
  • Sharding: chromium runs 4 shards in parallel matrix on every push and PR. New scripts/merge-dashboard-shards.ts combines per-shard SQLite DBs into one before the dashboard build.
  • Cross-browser: firefox/webkit/mobile-chrome run smoke tests on main and dispatch only — keeps PR runs fast.
  • Artifacts: uploads playwright-report/ always and test-results/ (traces + videos) on failure, 7-day retention. Failures are now debuggable from CI.
  • Removes continue-on-error: true from the test step so a green main means tests passed (was always green even if everything failed).
  • Local retries → 0 so flakes surface during dev rather than weeks later in CI.
  • dotenv loads .env automatically.

Test plan

  • Open this PR — chromium x 4 shards should run, test job gates merge
  • Confirm artifacts upload on a failing test (can introduce a temporary failure in a draft to verify)
  • After merge, push to main — firefox/webkit/mobile-chrome smoke jobs should fire alongside chromium
  • Confirm dashboard deploy succeeds with merged shard DBs

🤖 Generated with Claude Code

- Adds firefox/webkit/mobile-chrome project definitions
- Splits CI into chromium-sharded (4 shards on PRs and main) +
  cross-browser smoke (firefox/webkit/mobile-chrome on main only)
- Removes continue-on-error so test failures actually fail the build
- Uploads playwright-report always and test-results (traces/videos)
  on failure, with 7-day retention
- Adds scripts/merge-dashboard-shards.ts to combine per-shard
  SQLite databases into a single results.db before dashboard build
- Loads .env via dotenv at config time
- Drops local retries to 0 so flakes surface during dev

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MrFullStackDev MrFullStackDev merged commit e7bae82 into main May 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant