Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: E2E
# nightly on main -> `e2e`: same job, and `e2e-stress`: the stress suite
# on chromium in two shards, beside it. Both skipped if
# main has not moved since the last green scheduled
# run; a red one opens an issue
# run; a red night opens one issue
# weekly + on demand -> `e2e-full`: every suite x chromium + webkit, with
# stress. Run it before any release of adaptv.
# dispatch, `nightly` -> the nightly jobs, on the ref it was dispatched on
Expand All @@ -36,8 +36,9 @@ on:
permissions:
contents: read

# A dispatch's scope is part of the group, so a `nightly` and a `full` dispatch on one ref both run.
concurrency:
group: e2e-${{ github.event.pull_request.number || github.ref }}-${{ github.event.schedule || github.event_name }}
group: e2e-${{ github.event.pull_request.number || github.ref }}-${{ github.event.schedule || github.event_name }}${{ inputs.scope && format('-{0}', inputs.scope) || '' }}
cancel-in-progress: true

env:
Expand All @@ -62,7 +63,6 @@ jobs:
permissions:
contents: read
actions: read
issues: write
steps:
- name: Skip if main has not moved
id: moved
Expand Down Expand Up @@ -128,15 +128,6 @@ jobs:
path: playground/playwright-report/
retention-days: 14

- name: Open an issue for a red nightly
if: failure() && github.event_name == 'schedule'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue create -R "$GITHUB_REPOSITORY" \
--title "nightly e2e failed on ${GITHUB_SHA:0:7}" \
--body "Run: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}. Fix forward on a PR."

# The stress suite every night, so a stress regression is seen the next morning
# rather than on Sunday. Chromium only: webkit stays in the weekly `e2e-full`.
# One worker per config, ~30 min in one job; two shards of ~15 min run beside
Expand All @@ -151,7 +142,6 @@ jobs:
permissions:
contents: read
actions: read
issues: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -207,14 +197,24 @@ jobs:
path: playground/playwright-report/
retention-days: 14

# One issue per red night, however many of `e2e` and the two stress shards failed.
nightly-issue:
needs: [e2e, e2e-stress]
if: failure() && github.event_name == 'schedule'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
issues: write
steps:
- name: Open an issue for a red nightly
if: failure() && github.event_name == 'schedule'
env:
GH_TOKEN: ${{ github.token }}
E2E: ${{ needs.e2e.result }}
STRESS: ${{ needs.e2e-stress.result }}
run: |
gh issue create -R "$GITHUB_REPOSITORY" \
--title "nightly e2e stress (shard ${{ matrix.shard }}/2) failed on ${GITHUB_SHA:0:7}" \
--body "Run: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}. Fix forward on a PR."
--title "nightly e2e failed on ${GITHUB_SHA:0:7}" \
--body "Run: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} (e2e: ${E2E}, e2e-stress: ${STRESS}). Fix forward on a PR."

e2e-full:
name: e2e-full (${{ matrix.suite }}, ${{ matrix.engine }})
Expand Down
10 changes: 6 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ to a ready PR only what you want merged.

Browser suites in CI (`e2e.yml`, never required): the `e2e` label on a PR runs the five PR suites
(`test:e2e`, `:plain`, `:sw`, `:sw:spa`, `:sw:prompt`) on chromium, and the same runs nightly on
`main` with `:stress` on chromium beside it (dispatch with `scope=nightly` to run that set on a branch); `e2e-full` (every suite × chromium + webkit, weekly or on demand) runs before a release. The
WebKit and Android smokes run on demand or when their own files change. Before marking ready a PR
that touches runtime or service-worker code (or anything visual or behavioural), run the specs you
touched locally on chromium and paste the result in the PR's `Verify:` section, or add the `e2e` label.
`main` with `:stress` on chromium beside it (dispatch with `scope=nightly` to run that set on a
branch); `e2e-full` (every suite × chromium + webkit, weekly or on demand) runs before a release.
The WebKit and Android smokes run on demand or when their own files change. Before marking ready a
PR that touches runtime or service-worker code (or anything visual or behavioural), run the specs
you touched locally on chromium and paste the result in the PR's `Verify:` section, or add the `e2e`
label.

## Rules

Expand Down
8 changes: 4 additions & 4 deletions docs/guides/e2e.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ configs pin `workers: 1` for this, so do not pass `--workers` to them.
**CI runs the browser suites off the per-PR path** (`.github/workflows/e2e.yml`, never a required
check): a PR with the `e2e` label and the nightly run on `main` run five suites (main, `plain`, `sw`,
`sw-spa`, `sw-prompt`) on **chromium**, and the nightly also runs `stress` on chromium in two shards;
the weekly `e2e-full` runs every suite on chromium and **webkit**. The HTML report and traces are uploaded when a suite fails. An unlabelled PR runs none of
them, so run the specs you touched locally. The CI history is **O11a**, and whether the native
matrix can run in CI at all is still open as **O11b**
([`../roadmap/open-questions.md`](../roadmap/open-questions.md)).
the weekly `e2e-full` runs every suite on chromium and **webkit**. The HTML report and traces are
uploaded when a suite fails. An unlabelled PR runs none of them, so run the specs you touched
locally. The CI history is **O11a**, and whether the native matrix can run in CI at all is still
open as **O11b** ([`../roadmap/open-questions.md`](../roadmap/open-questions.md)).

Anything that needs a real device — motion feel, the OS keyboard, splash timing, edge-to-edge system
bars — is owed to a device ladder and tracked in
Expand Down
Loading