mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
chore: simplify linux workflow (#36037)
* chore: simplify linux workflow Signed-off-by: TG <ebiritg@gmail.com> * chore: remove occurances of wpt-layout Signed-off-by: TG <ebiritg@gmail.com> * chore: remove invalid workflow in main.yml file Signed-off-by: TG <ebiritg@gmail.com> * chore: retain wpt-layout workflow as requested Signed-off-by: TG <ebiritg@gmail.com> --------- Signed-off-by: TG <ebiritg@gmail.com>
This commit is contained in:
parent
cb56ac8561
commit
2e3e092f19
2 changed files with 16 additions and 20 deletions
35
.github/workflows/linux-wpt.yml
vendored
35
.github/workflows/linux-wpt.yml
vendored
|
@ -13,9 +13,6 @@ on:
|
||||||
default: false
|
default: false
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
wpt-layout:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
@ -28,7 +25,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-wpt:
|
linux-wpt:
|
||||||
name: WPT ${{ inputs.wpt-layout }}
|
name: WPT
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
max_chunk_id: 20
|
max_chunk_id: 20
|
||||||
|
@ -64,16 +61,16 @@ jobs:
|
||||||
./mach update-wpt --sync --patch
|
./mach update-wpt --sync --patch
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
mkdir -p wpt-filtered-logs/linux-${{ inputs.wpt-layout }}
|
mkdir -p wpt-filtered-logs/linux
|
||||||
mkdir -p wpt-full-logs/linux-${{ inputs.wpt-layout }}
|
mkdir -p wpt-full-logs/linux
|
||||||
./mach test-wpt \
|
./mach test-wpt \
|
||||||
$WPT_ALWAYS_SUCCEED_ARG \
|
$WPT_ALWAYS_SUCCEED_ARG \
|
||||||
--${{ inputs.profile }} --processes $(nproc) --timeout-multiplier 2 \
|
--${{ inputs.profile }} --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 wpt-full-logs/linux-${{ inputs.wpt-layout }}/raw/${{ matrix.chunk_id }}.log \
|
--log-raw wpt-full-logs/linux/raw/${{ matrix.chunk_id }}.log \
|
||||||
--log-wptreport wpt-full-logs/linux-${{ inputs.wpt-layout }}/wptreport/${{ matrix.chunk_id }}.json \
|
--log-wptreport wpt-full-logs/linux/wptreport/${{ matrix.chunk_id }}.json \
|
||||||
--log-raw-unexpected wpt-filtered-logs/linux-${{ inputs.wpt-layout }}/${{ matrix.chunk_id }}.log \
|
--log-raw-unexpected wpt-filtered-logs/linux/${{ matrix.chunk_id }}.log \
|
||||||
--filter-intermittents wpt-filtered-logs/linux-${{ inputs.wpt-layout }}/${{ matrix.chunk_id }}.json \
|
--filter-intermittents wpt-filtered-logs/linux/${{ matrix.chunk_id }}.json \
|
||||||
${{ inputs.wpt-args }}
|
${{ inputs.wpt-args }}
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
|
@ -81,13 +78,13 @@ jobs:
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
with:
|
with:
|
||||||
name: wpt-filtered-logs-linux-${{ inputs.wpt-layout }}-${{ matrix.chunk_id }}
|
name: wpt-filtered-logs-linux-${{ matrix.chunk_id }}
|
||||||
path: wpt-filtered-logs/*/
|
path: wpt-filtered-logs/*/
|
||||||
- name: Archive results (full)
|
- name: Archive results (full)
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
with:
|
with:
|
||||||
name: wpt-full-logs-linux-${{ inputs.wpt-layout }}-${{ matrix.chunk_id }}
|
name: wpt-full-logs-linux-${{ matrix.chunk_id }}
|
||||||
path: wpt-full-logs/*/
|
path: wpt-full-logs/*/
|
||||||
|
|
||||||
report-test-results:
|
report-test-results:
|
||||||
|
@ -99,29 +96,29 @@ jobs:
|
||||||
- name: Merge logs (full)
|
- name: Merge logs (full)
|
||||||
uses: actions/upload-artifact/merge@v4
|
uses: actions/upload-artifact/merge@v4
|
||||||
with:
|
with:
|
||||||
name: wpt-full-logs-linux-${{ inputs.wpt-layout }}
|
name: wpt-full-logs-linux
|
||||||
pattern: wpt-full-logs-linux-${{ inputs.wpt-layout }}-*
|
pattern: wpt-full-logs-linux-*
|
||||||
delete-merged: true
|
delete-merged: true
|
||||||
# This job needs to be last. If no filtered results were uploaded, it will fail, but we want to merge other archives in that case.
|
# This job needs to be last. If no filtered results were uploaded, it will fail, but we want to merge other archives in that case.
|
||||||
- name: Merge logs (filtered)
|
- name: Merge logs (filtered)
|
||||||
uses: actions/upload-artifact/merge@v4
|
uses: actions/upload-artifact/merge@v4
|
||||||
with:
|
with:
|
||||||
name: wpt-filtered-logs-linux-${{ inputs.wpt-layout }}
|
name: wpt-filtered-logs-linux
|
||||||
pattern: wpt-filtered-logs-linux-${{ inputs.wpt-layout }}-*
|
pattern: wpt-filtered-logs-linux-*
|
||||||
delete-merged: true
|
delete-merged: true
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
||||||
with:
|
with:
|
||||||
name: wpt-filtered-logs-linux-${{ inputs.wpt-layout }}
|
name: wpt-filtered-logs-linux
|
||||||
path: results
|
path: results
|
||||||
- name: Report results
|
- name: Report results
|
||||||
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
||||||
run: |
|
run: |
|
||||||
etc/ci/report_aggregated_expected_results.py \
|
etc/ci/report_aggregated_expected_results.py \
|
||||||
--tag="linux-wpt-${{ inputs.wpt-layout }}" \
|
--tag="linux-wpt" \
|
||||||
results/linux-${{ inputs.wpt-layout }}/*.json
|
results/linux/*.json
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
1
.github/workflows/linux.yml
vendored
1
.github/workflows/linux.yml
vendored
|
@ -224,7 +224,6 @@ jobs:
|
||||||
wpt-args: ${{ inputs.wpt-args }}
|
wpt-args: ${{ inputs.wpt-args }}
|
||||||
profile: ${{ inputs.profile }}
|
profile: ${{ inputs.profile }}
|
||||||
wpt-sync-from-upstream: ${{ inputs.wpt-sync-from-upstream }}
|
wpt-sync-from-upstream: ${{ inputs.wpt-sync-from-upstream }}
|
||||||
wpt-layout: "layout-2020"
|
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
bencher:
|
bencher:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue