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:
Narfinger
2026-02-19 11:50:32 +09:00
committed by GitHub
parent d7b097d89b
commit 9610c3b3bd

View File

@@ -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 }}