mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Auto merge of #29662 - sagudev:cii, r=mrobinson
try-wpt-2020 runner & run wpt test on selected layout wpt-2020 try runner was not enabled as observed in #29655 and even if it was it would have not been working right (as observed in workflow dispatch). There may be additional changes needed for WPT importer/report_agregator as quick look over it shows flags are not passed over to them. A lot of layout2020 tests are still falling. Tests: - [Quick check](https://github.com/sagudev/servo/actions/runs/4786225230) - [wpt](https://github.com/sagudev/servo/actions/runs/4786228332) - [wpt-2020](https://github.com/sagudev/servo/actions/runs/4786229751)
This commit is contained in:
commit
d577d4489a
5 changed files with 13 additions and 9 deletions
14
.github/workflows/linux.yml
vendored
14
.github/workflows/linux.yml
vendored
|
@ -39,13 +39,13 @@ on:
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
push:
|
push:
|
||||||
branches: ["try-linux", "try-wpt"]
|
branches: ["try-linux", "try-wpt", "try-wpt-2020"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
SHELL: /bin/bash
|
SHELL: /bin/bash
|
||||||
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
LAYOUT: "${{ (contains(inputs.layout, '2020') || github.ref_name == 'try-wpt-2020') && 'layout-2020' || 'layout-2013' }}"
|
||||||
PACKAGE: "${{ contains(inputs.layout, '2020') && 'linux-layout2020' || 'linux' }}"
|
PACKAGE: "${{ (contains(inputs.layout, '2020') || github.ref_name == 'try-wpt-2020') && 'linux-layout2020' || 'linux' }}"
|
||||||
SCCACHE_GHA_ENABLED: "true"
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
RUSTC_WRAPPER: "sccache"
|
RUSTC_WRAPPER: "sccache"
|
||||||
CCACHE: "sccache"
|
CCACHE: "sccache"
|
||||||
|
@ -102,7 +102,7 @@ jobs:
|
||||||
path: target.tar.gz
|
path: target.tar.gz
|
||||||
|
|
||||||
linux-wpt:
|
linux-wpt:
|
||||||
if: ${{ github.ref_name == 'try-wpt' || inputs.wpt }}
|
if: ${{ contains(github.ref_name, 'wpt') || inputs.wpt }}
|
||||||
name: Linux WPT Tests
|
name: Linux WPT Tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: ["build-linux"]
|
needs: ["build-linux"]
|
||||||
|
@ -137,7 +137,7 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ inputs.wpt != 'sync' }}
|
if: ${{ inputs.wpt != 'sync' }}
|
||||||
run: |
|
run: |
|
||||||
python3 ./mach test-wpt \
|
python3 ./mach test-wpt --with-${{ env.LAYOUT }} \
|
||||||
--release --processes $(nproc) --timeout-multiplier 2 \
|
--release --processes $(nproc) --timeout-multiplier 2 \
|
||||||
--total-chunks ${{ env.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \
|
--total-chunks ${{ env.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \
|
||||||
--log-raw test-wpt.${{ matrix.chunk_id }}.log \
|
--log-raw test-wpt.${{ matrix.chunk_id }}.log \
|
||||||
|
@ -149,7 +149,7 @@ jobs:
|
||||||
- name: Run tests (sync)
|
- name: Run tests (sync)
|
||||||
if: ${{ inputs.wpt == 'sync' }}
|
if: ${{ inputs.wpt == 'sync' }}
|
||||||
run: |
|
run: |
|
||||||
python3 ./mach test-wpt \
|
python3 ./mach test-wpt --with-${{ env.LAYOUT }} \
|
||||||
--release --processes $(nproc) --timeout-multiplier 2 \
|
--release --processes $(nproc) --timeout-multiplier 2 \
|
||||||
--total-chunks ${{ env.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \
|
--total-chunks ${{ env.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \
|
||||||
--log-raw test-wpt.${{ matrix.chunk_id }}.log \
|
--log-raw test-wpt.${{ matrix.chunk_id }}.log \
|
||||||
|
@ -183,7 +183,7 @@ jobs:
|
||||||
report-test-results:
|
report-test-results:
|
||||||
name: Reporting test results
|
name: Reporting test results
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ always() && !cancelled() && success('build-linux') && (github.ref_name == 'try-wpt' || inputs.wpt == 'test') }}
|
if: ${{ always() && !cancelled() && success('build-linux') && (contains(github.ref_name, 'wpt') || inputs.wpt == 'test') }}
|
||||||
needs:
|
needs:
|
||||||
- "linux-wpt"
|
- "linux-wpt"
|
||||||
steps:
|
steps:
|
||||||
|
|
2
.github/workflows/quick-check.yml
vendored
2
.github/workflows/quick-check.yml
vendored
|
@ -5,7 +5,7 @@ name: Quick check
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
["**", "!master", "!auto", "!try", "!try-linux", "!try-mac", "!try-windows", "!try-wpt", "!dependabot/**"]
|
["**", "!master", "!auto", "!try", "!try-linux", "!try-mac", "!try-windows", "!try-wpt", "!try-wpt-2020", "!dependabot/**"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
|
|
|
@ -352,7 +352,7 @@ class MachCommands(CommandBase):
|
||||||
def try_jobs(self, jobs):
|
def try_jobs(self, jobs):
|
||||||
branches = []
|
branches = []
|
||||||
# we validate branches because force pushing is destructive
|
# we validate branches because force pushing is destructive
|
||||||
VALID_TRY_BRACHES = ["try", "try-linux", "try-mac", "try-windows", "try-wpt"]
|
VALID_TRY_BRACHES = ["try", "try-linux", "try-mac", "try-windows", "try-wpt", "try-wpt-2020"]
|
||||||
for job in jobs:
|
for job in jobs:
|
||||||
# branches must start with try-
|
# branches must start with try-
|
||||||
if "try" not in job:
|
if "try" not in job:
|
||||||
|
|
|
@ -33,6 +33,8 @@ def create_parser():
|
||||||
help="Pass preferences to servo")
|
help="Pass preferences to servo")
|
||||||
parser.add_argument('--layout-2020', '--with-layout-2020', default=False,
|
parser.add_argument('--layout-2020', '--with-layout-2020', default=False,
|
||||||
action="store_true", help="Use expected results for the 2020 layout engine")
|
action="store_true", help="Use expected results for the 2020 layout engine")
|
||||||
|
parser.add_argument('--layout-2013', '--with-layout-2013', default=True,
|
||||||
|
action="store_true", help="Use expected results for the 2013 layout engine")
|
||||||
parser.add_argument('--log-servojson', action="append", type=mozlog.commandline.log_file,
|
parser.add_argument('--log-servojson', action="append", type=mozlog.commandline.log_file,
|
||||||
help="Servo's JSON logger of unexpected results")
|
help="Servo's JSON logger of unexpected results")
|
||||||
parser.add_argument('--always-succeed', default=False, action="store_true",
|
parser.add_argument('--always-succeed', default=False, action="store_true",
|
||||||
|
|
|
@ -47,6 +47,8 @@ def create_parser():
|
||||||
parser = wptcommandline.create_parser_update()
|
parser = wptcommandline.create_parser_update()
|
||||||
parser.add_argument("--layout-2020", "--with-layout-2020", default=False, action="store_true",
|
parser.add_argument("--layout-2020", "--with-layout-2020", default=False, action="store_true",
|
||||||
help="Use expected results for the 2020 layout engine")
|
help="Use expected results for the 2020 layout engine")
|
||||||
|
parser.add_argument("--layout-2013", "--with-layout-2013", default=True, action="store_true",
|
||||||
|
help="Use expected results for the 2013 layout engine")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue