-
Notifications
You must be signed in to change notification settings - Fork 9
70 lines (65 loc) · 2.26 KB
/
Copy pathrun-wpt.yml
File metadata and controls
70 lines (65 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Reusable workflow to execute WPT against Servo nightly.
env:
NIGHTLY_PATH: https://download.servo.org/nightly/linux/servo-x86_64-linux-gnu.tar.gz
on:
workflow_call:
inputs:
layout-engine:
required: true
type: string
artifact-name:
required: true
type: string
jobs:
run-wpt:
name: Run WPT suite.
runs-on: ubuntu-22.04
env:
max_chunk_id: 20
strategy:
matrix:
chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
steps:
- name: Checkout servo repo
uses: actions/checkout@v3
with:
repository: servo/servo
path: servo
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12' # Make sure this is the same as .python-version in servo repo
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Prep test environment
run: |
sudo apt update
sudo apt install -qy --no-install-recommends mesa-vulkan-drivers
- name: Download latest nightly
run: |
./mach bootstrap --skip-nextest --skip-lints
wget -O servo-latest.tar.gz "${{ env.NIGHTLY_PATH }}"
tar -xzf servo-latest.tar.gz
mkdir -p target/release
mv servo/resources target/release/resources
mv servo/servoshell target/release/servoshell
SERVO_VERSION=$(./target/release/servoshell --version)
echo Downloaded $SERVO_VERSION
echo "SERVO_VERSION=$SERVO_VERSION" >> $GITHUB_ENV
working-directory: servo
- name: Run tests
run: |
./mach test-wpt \
--release ${WPT_LAYOUT_FLAG} \
--log-wptreport=wpt-report-${{ matrix.chunk_id }}.json \
--processes $(nproc) --timeout-multiplier 2 \
--always-succeed \
--browser-version "$SERVO_VERSION" \
--this-chunk ${{ matrix.chunk_id }} \
--total-chunks ${{ env.max_chunk_id }}
working-directory: servo
- name: Archive the wpt result chunk
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}-${{ matrix.chunk_id }}
path: servo/wpt-report-${{ matrix.chunk_id }}.json