**Investigation:** - According to [here](https://github.com/microsoft/playwright/actions/runs/8351676198), the job got cancelled, because someone force-pushed and another commit took priority. - We have `if: always()` for uploading the blobs, even if they are cancelled. We expect, that the task before (`npx playwright test`) finished writing the blob, but it didn't - cancelled in between. We still upload - a broken one. - We download the broken zip and it breaks from there on. Proposed change: Instead of uploading always, upload if it did not get cancelled. Quoting from the GitHub Actions docs about `always()`: > Warning: Avoid using always for any task that could suffer from a critical failure, for example: getting sources, otherwise the workflow may hang until it times out. If you want to run a job or step regardless of its success or failure, use the recommended alternative: if: `${{ !cancelled() }}` This is phase 1/2 where it changes our code to use this new condition. The actual roll-out happens once it works for us. Relates https://github.com/microsoft/playwright/issues/29451
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
name: "stress"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'browser_patches/**'
|
|
- 'docs/**'
|
|
types: [ labeled ]
|
|
branches:
|
|
- main
|
|
- release-*
|
|
|
|
env:
|
|
FORCE_COLOR: 1
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
|
|
jobs:
|
|
test_components:
|
|
name: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 16
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npx playwright install --with-deps
|
|
- run: npx playwright install firefox-asan
|
|
if: matrix.os != 'windows-latest'
|
|
- run: npm run stest contexts -- --project=chromium
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest browsers -- --project=chromium
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest frames -- --project=chromium
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest contexts -- --project=webkit
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest browsers -- --project=webkit
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest frames -- --project=webkit
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest contexts -- --project=firefox
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest browsers -- --project=firefox
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest frames -- --project=firefox
|
|
if: ${{ !cancelled() }}
|
|
- run: npm run stest heap -- --project=chromium
|
|
if: ${{ !cancelled() }}
|