mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / puppeteer-perf (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
wpt / web platform tests (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
* Rework WPT runner We have no crashing tests, remove safe mode. Allows better re-use of arenas, and if we do introduce a crash, it won't be easy to ignore. Could allow for re-using the environment across tests to further improve performance. Remove console now that we have a working console api. * Update workflows, add summary Remove --safe option from WPT workflows (it's no longer valid) Include a total test/case summary when --summary or --text (default) is used. * remove wpt --safe flag from Makefile * handle tests in the root of the test folder * Fix a couple possible segfaults base on strange usage (WPT stuff) * generate proper JSON * generate proper JSON (for real this time?) * fix tag type check
120 lines
3.1 KiB
YAML
120 lines
3.1 KiB
YAML
name: wpt
|
|
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ vars.LPD_PERF_AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.LPD_PERF_AWS_SECRET_ACCESS_KEY }}
|
|
AWS_BUCKET: ${{ vars.LPD_PERF_AWS_BUCKET }}
|
|
AWS_REGION: ${{ vars.LPD_PERF_AWS_REGION }}
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "build.zig"
|
|
- "src/**/*.zig"
|
|
- "src/*.zig"
|
|
- "tests/wpt/**"
|
|
- "vendor/**"
|
|
- ".github/**"
|
|
pull_request:
|
|
|
|
# By default GH trigger on types opened, synchronize and reopened.
|
|
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
|
|
# Since we skip the job when the PR is in draft state, we want to force CI
|
|
# running when the PR is marked ready_for_review w/o other change.
|
|
# see https://github.com/orgs/community/discussions/25722#discussioncomment-3248917
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
paths:
|
|
- ".github/**"
|
|
- "build.zig"
|
|
- "src/**/*.zig"
|
|
- "src/*.zig"
|
|
- "tests/wpt/**"
|
|
- "vendor/**"
|
|
- ".github/**"
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
wpt:
|
|
name: web platform tests
|
|
|
|
# Only for PR without draft.
|
|
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
# fetch submodules recusively, to get zig-js-runtime submodules also.
|
|
submodules: recursive
|
|
|
|
- uses: ./.github/actions/install
|
|
|
|
- run: zig build wpt -- --summary
|
|
|
|
# For now WPT tests doesn't pass at all.
|
|
# We accept then to continue the job on failure.
|
|
# TODO remove the continue-on-error when tests will pass.
|
|
continue-on-error: true
|
|
|
|
wpt-json:
|
|
name: web platform tests json output
|
|
|
|
# Don't execute on PR
|
|
if: github.event_name != 'pull_request'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
# fetch submodules recusively, to get zig-js-runtime submodules also.
|
|
submodules: recursive
|
|
|
|
- uses: ./.github/actions/install
|
|
|
|
- name: json output
|
|
run: zig build wpt -- --json > wpt.json
|
|
|
|
- name: write commit
|
|
run: |
|
|
echo "${{github.sha}}" > commit.txt
|
|
|
|
- name: upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wpt-results
|
|
path: |
|
|
wpt.json
|
|
commit.txt
|
|
retention-days: 10
|
|
|
|
perf-fmt:
|
|
name: perf-fmt
|
|
needs: wpt-json
|
|
|
|
# Don't execute on PR
|
|
if: github.event_name != 'pull_request'
|
|
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/lightpanda-io/perf-fmt:latest
|
|
credentials:
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
steps:
|
|
- name: download artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: wpt-results
|
|
|
|
- name: format and send json result
|
|
run: /perf-fmt wpt ${{ github.sha }} wpt.json
|