Skip to content

Commit 8c8fabd

Browse files
authored
Auto merge of #29201 - delan:ci-mac-wpt, r=<try>
CI: run WPT tests on macOS This patch uncomments and fixes the mac-wpt job in the main workflow, with a few changes: * we downgrade python3 and pip3 to 3.9, because inspect.getargspec was [removed in 3.11](https://docs.python.org/3/whatsnew/3.11.html#removed) * we should apparently move to [inspect.getfullargspec](https://docs.python.org/3/library/inspect.html#inspect.getfullargspec) * we download the real Servo artifact, rather than the fake Servo for testing We also align the rest of the job (other than `--timeout-multiplier`) to be as close as possible to linux-wpt, based on the assumption that linux-wpt is more up to date. This includes: * setting strategy.fail-fast to false * adding a failure() condition to the “Archive logs” step * adding the chunk id to log filenames There are some failing WPT tests, so for now the job is not required to succeed. Example run: <https://github.com/delan/servo/actions/runs/3837530905> --- - [ ] ~~`./mach build -d` does not report any errors~~ - [ ] ~~`./mach test-tidy` does not report any errors~~ - [x] These changes fix #28284 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they affect the CI configuration
2 parents 9769f91 + 9f91b36 commit 8c8fabd

File tree

1 file changed

+57
-53
lines changed

1 file changed

+57
-53
lines changed

.github/workflows/main.yml

Lines changed: 57 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -144,59 +144,62 @@ jobs:
144144
name: release-binary-macos
145145
path: target.tar.gz
146146

147-
# mac-wpt:
148-
# #needs: build-mac
149-
# runs-on: macos-10.12
150-
# env:
151-
# max_chunk_id: 20
152-
# strategy:
153-
# matrix:
154-
# chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
155-
# steps:
156-
# - uses: actions/checkout@v3
157-
# with:
158-
# fetch-depth: 2
159-
#
160-
# #- name: Download release binary
161-
# # uses: actions/download-artifact@v3
162-
# # with:
163-
# # name: release-binary-macos
164-
#
165-
# - name: Fake build
166-
# run: |
167-
# wget https://joshmatthews.net/release-binary-macos.zip
168-
# unzip release-binary-macos.zip
169-
#
170-
# - name: Prep test environment
171-
# run: |
172-
# brew install gnu-tar
173-
# gtar -xzf target.tar.gz
174-
# python3 -m pip install --upgrade pip virtualenv
175-
# brew bundle install --verbose --no-upgrade --file=etc/taskcluster/macos/Brewfile
176-
# - name: Smoketest
177-
# run: python3 ./mach smoketest
178-
# - name: Run tests
179-
# run: |
180-
# python3 ./mach test-wpt \
181-
# --release --processes=3 --timeout-multiplier=8 \
182-
# --total-chunks=${{ env.max_chunk_id }} --this-chunk=${{ matrix.chunk_id }} \
183-
# --log-raw=test-wpt.log \
184-
# --log-servojson=wpt-jsonsummary.log \
185-
# --always-succeed | cat
186-
# python3 ./mach filter-intermittents wpt-jsonsummary.log \
187-
# --log-intermittents=intermittents.log \
188-
# --log-filteredsummary=filtered-wpt-summary.log \
189-
# --tracker-api=default --reporter-api=default
190-
#
191-
# - name: Archive logs
192-
# uses: actions/upload-artifact@v3
193-
# with:
194-
# name: wpt${{ matrix.chunk_id }}-logs-macos
195-
# path: |
196-
# test-wpt.log
197-
# wpt-jsonsummary.log
198-
# filtered-wpt-summary.log
199-
# intermittents.log
147+
mac-wpt:
148+
name: Mac WPT Tests
149+
runs-on: macos-12
150+
needs: ["build-mac"]
151+
env:
152+
max_chunk_id: 20
153+
strategy:
154+
fail-fast: false
155+
matrix:
156+
chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
157+
steps:
158+
- uses: actions/checkout@v3
159+
with:
160+
fetch-depth: 2
161+
- uses: actions/download-artifact@v3
162+
with:
163+
name: release-binary-macos
164+
# TODO: Remove this step when the compatibility issue between mozjs and
165+
# Homebrew's Python 3.10 formula (servo/rust-mozjs#559) is fixed
166+
- name: Select Python 3.9
167+
run: |
168+
brew install [email protected]
169+
cd $(dirname $(which python3.9))
170+
rm -f python3 pip3
171+
ln -s python3.9 python3
172+
ln -s pip3.9 pip3
173+
- name: Prep test environment
174+
run: |
175+
gtar -xzf target.tar.gz
176+
python3 -m pip install --upgrade pip virtualenv
177+
brew bundle install --verbose --no-upgrade --file=etc/taskcluster/macos/Brewfile
178+
- name: Smoketest
179+
run: python3 ./mach smoketest
180+
- name: Run tests
181+
run: |
182+
python3 ./mach test-wpt \
183+
--release --processes $(nproc) --timeout-multiplier 8 \
184+
--total-chunks ${{ env.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \
185+
--log-raw test-wpt.${{ matrix.chunk_id }}.log \
186+
--log-servojson wpt-jsonsummary.${{ matrix.chunk_id }}.log \
187+
--always-succeed
188+
python3 ./mach filter-intermittents wpt-jsonsummary.${{ matrix.chunk_id }}.log \
189+
--log-intermittents=intermittents.${{ matrix.chunk_id }}.log \
190+
--log-filteredsummary=filtered-wpt-summary.${{ matrix.chunk_id }}.log \
191+
--tracker-api=default --reporter-api=default
192+
193+
- name: Archive logs
194+
uses: actions/upload-artifact@v3
195+
if: ${{ failure() }}
196+
with:
197+
name: wpt${{ matrix.chunk_id }}-logs-macos
198+
path: |
199+
test-wpt.${{ matrix.chunk_id }}.log
200+
wpt-jsonsummary.${{ matrix.chunk_id }}.log
201+
filtered-wpt-summary.${{ matrix.chunk_id }}.log
202+
intermittents.${{ matrix.chunk_id }}.log
200203
201204
build-linux:
202205
name: Build (Linux)
@@ -290,6 +293,7 @@ jobs:
290293
- "build-linux"
291294
- "build-mac"
292295
- "linux-wpt"
296+
# - "mac-wpt"
293297

294298
steps:
295299
- name: Mark the job as successful

0 commit comments

Comments
 (0)