mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
CI: Ohos add screenshot for bencher failure (#42598)
Currently we have spurious errors in various bencher runs. This updates hitrace-bench and the workflow to save a screenshot if this happens. Testing: CI does not have automatic tests but here is a run without the error, proving at least that this does not break the normal workflow. https://github.com/Narfinger/servo/actions/runs/21987493140/job/63526108222 Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/ohos.yml
vendored
8
.github/workflows/ohos.yml
vendored
@@ -39,7 +39,7 @@ env:
|
||||
SHELL: /bin/bash
|
||||
CARGO_INCREMENTAL: 0
|
||||
BENCHER_PROJECT: ${{ vars.BENCHER_PROJECT || 'servo' }}
|
||||
HITRACE_BENCH_VERSION: 0.11.0
|
||||
HITRACE_BENCH_VERSION: 0.11.1
|
||||
MITMDUMP_CACHE_KEY: mitmdump-ohos-cache-0.1
|
||||
|
||||
jobs:
|
||||
@@ -298,6 +298,12 @@ jobs:
|
||||
- name: "Run benchmark"
|
||||
id: hitrace_bench
|
||||
run: hitrace-bench -r support/hitrace-bencher/runs.json --bencher -p ${{ inputs.profile }}
|
||||
- name: Upload failure screenshots
|
||||
if: ${{ steps.hitrace_bench.success == 'failure' }}
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: bencher-${{ inputs.profile }}-failure-screenshot
|
||||
path: "/tmp/servo.jpeg"
|
||||
- name: Run speedometer
|
||||
id: speedometer
|
||||
run: uv run ./etc/ci/scenario/servo_speedometer.py ${{ inputs.profile }}
|
||||
|
||||
Reference in New Issue
Block a user