From d8837e4a52583bfa5e519017026c3e5b58451ac5 Mon Sep 17 00:00:00 2001 From: Narfinger Date: Mon, 19 May 2025 12:21:34 +0200 Subject: [PATCH] Allow OHOS bencher to get the model name for testbed. (#37026) Allow OHOS bencher to get the model name for testbed. Currently we rely on simple `hdc bugreport` and awk. `hdc bugreport` spits out a lot of information so it is kind of slow. But that should be ok. Working run (with the usual caveats of removing the checks in the file) can be found here: https://github.com/Narfinger/servo/actions/runs/15069652902 Signed-off-by: Narfinger --- .github/workflows/ohos.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ohos.yml b/.github/workflows/ohos.yml index 0fe92dcf5c7..404e305f61b 100644 --- a/.github/workflows/ohos.yml +++ b/.github/workflows/ohos.yml @@ -243,6 +243,9 @@ jobs: run: hitrace-bench --bencher -b "org.servo.servo" -p "https://www.servo.org" -n 5 - name: Getting bencher uses: bencherdev/bencher@main + - name: Getting model name + run: | + echo "MODEL_NAME=$(hdc bugreport | head -n 20 | grep MarketName | awk '{for (i=2; i> $GITHUB_ENV - name: Uploading to bencher.dev run: | - bencher run --adapter json --file bench.json --project '${{ env.BENCHER_PROJECT }}' --token '${{ secrets.BENCHER_API_TOKEN }}' --github-actions '${{ secrets.GITHUB_TOKEN }}' + bencher run --adapter json --file bench.json --project '${{ env.BENCHER_PROJECT }}' --token '${{ secrets.BENCHER_API_TOKEN }}' --github-actions '${{ secrets.GITHUB_TOKEN }}' --testbed="$MODEL_NAME"