ci: Stop using python3 ./mach (#39271)

this way of invoking mach is incorrect now that we use uv, and it will
prevent us from running bencher builds on self-hosted runners (#39269),
where the system Python is too old (3.10 vs 3.11).

Testing:
- mach try bencher
<https://github.com/servo/servo/actions/runs/17675086579>

Fixes: part of #39269

Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
shuppy 2025-09-12 22:45:31 +08:00 committed by GitHub
parent 2b2ea05c12
commit 25147c75cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -76,7 +76,7 @@ jobs:
run: | run: |
sudo apt update sudo apt update
sudo apt install -qy --no-install-recommends mesa-vulkan-drivers sudo apt install -qy --no-install-recommends mesa-vulkan-drivers
python3 ./mach bootstrap --skip-lints ./mach bootstrap --skip-lints
- uses: bencherdev/bencher@main - uses: bencherdev/bencher@main
- name: File size - name: File size
if: ${{ inputs.file-size == true }} if: ${{ inputs.file-size == true }}
@ -101,12 +101,12 @@ jobs:
- name: Speedometer - name: Speedometer
if: ${{ inputs.speedometer == true }} if: ${{ inputs.speedometer == true }}
run: | run: |
python3 ./mach test-speedometer -r --bmf-output speedometer.json ./mach test-speedometer -r --bmf-output speedometer.json
echo "SERVO_SPEEDOMETER_RESULT=speedometer.json" >> "$GITHUB_ENV" echo "SERVO_SPEEDOMETER_RESULT=speedometer.json" >> "$GITHUB_ENV"
- name: Dromaeo - name: Dromaeo
if: ${{ inputs.dromaeo == true }} if: ${{ inputs.dromaeo == true }}
run: | run: |
python3 ./mach test-dromaeo -r dom --bmf-output dromaeo.json ./mach test-dromaeo -r dom --bmf-output dromaeo.json
echo "SERVO_DROMAEO_RESULT=dromaeo.json" >> "$GITHUB_ENV" echo "SERVO_DROMAEO_RESULT=dromaeo.json" >> "$GITHUB_ENV"
# set options # set options
- name: Set bencher opts for PRs (label try run) - name: Set bencher opts for PRs (label try run)

View file

@ -289,7 +289,7 @@ jobs:
continue-on-error: true continue-on-error: true
- name: Run speedometer - name: Run speedometer
id: BencherRun id: BencherRun
run: python3 ./mach test-speedometer-ohos --bmf-output speedometer.json --profile ${{ inputs.profile }} run: ./mach test-speedometer-ohos --bmf-output speedometer.json --profile ${{ inputs.profile }}
continue-on-error: true continue-on-error: true
- name: Create empty speedometer.json if failed - name: Create empty speedometer.json if failed
run: touch speedometer.json run: touch speedometer.json