Skip to content

ci: restore cross-browser E2E coverage via weekly workflow - #1652

Merged
JuroOravec merged 2 commits into
masterfrom
ci/cross-browser-e2e
May 30, 2026
Merged

JuroOravec merged 2 commits into
masterfrom
ci/cross-browser-e2e

Conversation

@JuroOravec

@JuroOravec JuroOravec commented May 30, 2026 •

Copy link
Copy Markdown
Collaborator

(Opus 4.8)

Summary

#1623 split the test matrix into lanes and limited the E2E lane to Chromium only on every PR for speed. That dropped Firefox and WebKit coverage entirely. Past browser-specific bugs (e.g. a Firefox-only quirk in how window.Components is populated) show this coverage has value, so this PR reintroduces it - but on a weekly cadence instead of paying for it on every PR.

Changes

  • New workflow .github/workflows/tests-cross-browser.yml

    • Runs tox -e e2e weekly (Mondays 06:00 UTC) and on manual workflow_dispatch.
    • Matrix over chromium, firefox, webkit. fail-fast: false keeps each browser's red/green independent for easy triage.
    • Chromium is included as a baseline cell: if chromium passes and firefox/webkit fail, the bug is browser-specific; if chromium also fails, it's a generic E2E regression the PR-time lane would have caught.
    • A notify_failure job files or updates a tracking issue (label ci-cross-browser-failure) on scheduled failures only, so manual dispatch runs don't open noisy issues. One open issue per outage: it comments on an existing open issue if present, otherwise creates one.
  • tox.ini - [testenv:e2e] now reads DJC_TEST_BROWSERS via passenv instead of hardcoding chromium with set_env, so the caller controls which browsers run. (set_env would have overridden the caller and silently broken the cross-browser run.)

  • .github/workflows/tests.yml - the PR-time e2e lane now sets DJC_TEST_BROWSERS=chromium explicitly at the step level, preserving its fast single-browser default.

  • Docs - docs/community/development.md documents the test markers, the CI lanes, and how to select browsers locally with DJC_TEST_BROWSERS. Added an explanatory comment to the pytest_collection_modifyitems hook in tests/conftest.py.

Notes

  • No change to what runs on PRs - they stay Chromium-only and just as fast.
  • Notification is intentionally scheduled-only; we can revisit alerting (Slack/Discord) separately.

🤖 Generated with Claude Code

PR #1623 limited the E2E lane to Chromium on every PR for speed, which
dropped Firefox and WebKit coverage entirely. Past browser-specific bugs
(e.g. a Firefox-only quirk in how `window.Components` is populated) show
this coverage has value, so reintroduce it - but on a weekly cadence
instead of paying for it on every PR.

- Add `.github/workflows/tests-cross-browser.yml`: runs `tox -e e2e`
  weekly (Mon 06:00 UTC) and on manual dispatch, with a matrix over
  chromium/firefox/webkit. `fail-fast: false` keeps each browser's
  red/green independent. Chromium is included as a baseline so a failure
  tells you whether the bug is browser-specific or a generic E2E
  regression. A `notify_failure` job files or updates a tracking issue
  (label `ci-cross-browser-failure`) on scheduled failures only.
- `tox.ini`: `[testenv:e2e]` now reads `DJC_TEST_BROWSERS` via `passenv`
  instead of pinning chromium with `set_env`, so the caller controls
  which browsers run. The PR-time lane in `tests.yml` sets
  `DJC_TEST_BROWSERS=chromium` explicitly to keep its fast default.
- Document the test markers, CI lanes, and browser selection in
  `docs/community/development.md`, and add an explanatory comment to the
  `pytest_collection_modifyitems` hook in `tests/conftest.py`.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Performance Benchmark Results

Comparing PR changes against master branch:

Benchmarks that have stayed the same:

Change Before [08f50d2] After [f3ad0de] Ratio Benchmark (Parameter)
70.0±1ms 69.5±1ms 0.99 Components vs Django.timeraw_render_lg_first('django')
245±4ms 243±0.9ms 0.99 Components vs Django.timeraw_render_lg_first('django-components')

@github-actions

Copy link
Copy Markdown
Contributor

Performance Benchmark Results

Comparing PR changes against master branch:

Benchmarks that have stayed the same:

Change Before [08f50d2] After [6f09bf2] Ratio Benchmark (Parameter)
63.6±2ms 64.0±1ms 1.01 Components vs Django.timeraw_render_lg_first('django')
230±5ms 228±5ms 0.99 Components vs Django.timeraw_render_lg_first('django-components')

@EmilStenstrom

Copy link
Copy Markdown
Collaborator

@JuroOravec Sounds like a good compromise.

@JuroOravec
JuroOravec merged commit 946395b into master May 30, 2026
15 checks passed
@JuroOravec
JuroOravec deleted the ci/cross-browser-e2e branch May 30, 2026 20:18
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.

2 participants