Skip to content

Commit 486c066

Browse files
Refresh Python versions in CI and generated workflows (#485)
1 parent ceea648 commit 486c066

11 files changed

Lines changed: 28 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
python_version: ["3.11", "3.12", "3.13"]
32+
python_version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
3333
steps:
3434
- uses: actions/checkout@v7.0.1
3535
with:
@@ -53,7 +53,7 @@ jobs:
5353
persist-credentials: false
5454
- uses: actions/setup-python@v7.1.0
5555
with:
56-
python-version: 3.13
56+
python-version: "3.15"
5757
cache: pip
5858
- name: install dependencies
5959
run: |
@@ -70,7 +70,7 @@ jobs:
7070
persist-credentials: false
7171
- uses: actions/setup-python@v7.1.0
7272
with:
73-
python-version: 3.13
73+
python-version: "3.15"
7474
cache: pip
7575
- name: install dependencies
7676
run: |

‎.github/workflows/lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
persist-credentials: false
2121
- uses: actions/setup-python@v7.1.0
2222
with:
23-
python-version: "3.11"
23+
python-version: "3.x"
2424
cache: pip
2525
- name: Install dependencies
2626
run: python -m pip install ".[test]"

‎PROVISIONING.md‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This document describes how to set up machines to serve as self-hosted runners for `bench_runner`.
44

5+
The Python interpreter running `bench_runner` must be Python 3.11 or later.
6+
The generated Linux x86-64 benchmark jobs and pystats jobs request Python 3.15
7+
through `actions/setup-python`. Other benchmark jobs use `python` on Linux,
8+
`python3` on macOS, or `py` on Windows; these commands must select a supported
9+
interpreter for the runner service account.
10+
511
These instructions are only a WFM™ rough guide: This is the sort of information that gets out of date rather quickly.
612

713
While cloud VMs will *work*, we highly recommend using bare metal machines for the most stable results.
@@ -19,7 +25,9 @@ sudo apt install python3 build-essential ccache gdb lcov pkg-config \
1925
lzma lzma-dev tk-dev uuid-dev zlib1g-dev linux-perf
2026
```
2127

22-
The self-hosted runner needs to have `python` be Python 3.9 or later.
28+
Install Python 3.11 or later with `pip` and `venv` support, and make sure `python`
29+
selects it on the runner service's `PATH`. Verify this with
30+
`python --version` as the account that runs the service.
2331

2432
### Enable ccache
2533

@@ -57,9 +65,12 @@ eval "$(/opt/homebrew/bin/brew shellenv)"
5765
#### Install brew packages
5866

5967
```bash session
60-
brew install openssl@3 jq python@3.9 coreutils ccache
68+
brew install openssl@3 jq python coreutils ccache
6169
```
6270

71+
An existing Python 3.11 or later installation is also supported. Make sure
72+
`python3 --version` selects a supported version as the account running the runner service.
73+
6374
## Microsoft Windows
6475

6576
### Adjust settings and permissions
@@ -86,7 +97,9 @@ Install [git for Windows](https://git-scm.com/download/win).
8697

8798
### Install Python
8899

89-
Install Python 3.9 or later from [python.org](https://python.org), and install for all users.
100+
Install Python 3.11 or later from [python.org](https://python.org), and make it
101+
available to the account running the runner service. Verify that `py --version`
102+
selects a supported version for that account.
90103

91104
### Install Clang 19
92105

‎bench_runner/templates/_benchmark.src.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
if: ${{ runner.arch == 'X64' }}
110110
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
111111
with:
112-
python-version: "3.11"
112+
python-version: "3.15"
113113
- name: Building Python and running pyperformance
114114
run: |
115115
python workflow_bootstrap.py ${{ inputs.fork }} ${{ inputs.ref }} ${{ inputs.machine }} ${{ inputs.benchmarks || 'all' }} ${{ env.flags }} ${{ inputs.force && '--force' || '' }} ${{ inputs.pgo && '--pgo' || '' }} ${{ inputs.perf && '--perf' || '' }} --run_id ${{ github.run_id }}

‎bench_runner/templates/_find_failures.src.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup system Python
1616
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
1717
with:
18-
python-version: "3.11"
18+
python-version: "3.15"
1919
cache: pip
2020
- name: Install dependencies from PyPI
2121
run: python -m pip install -r requirements.txt

‎bench_runner/templates/_generate.src.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup system Python
4040
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
4141
with:
42-
python-version: "3.11"
42+
python-version: "3.15"
4343
cache: pip
4444
- name: Install dependencies from PyPI
4545
run: python -m pip install -r requirements.txt

‎bench_runner/templates/_notify.src.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup system Python
2828
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
2929
with:
30-
python-version: "3.11"
30+
python-version: "3.15"
3131
cache: pip
3232
- name: Install dependencies from PyPI
3333
run: |

‎bench_runner/templates/_pystats.src.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup system Python
5050
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
5151
with:
52-
python-version: "3.11"
52+
python-version: "3.15"
5353
- name: Build CPython and run pyperformance benchmarks
5454
run: |
5555
python workflow_bootstrap.py --pystats ${{ inputs.fork }} ${{ inputs.ref }} all ${{ inputs.benchmarks || 'all' }} ${{ env.flags }} --run_id ${{ github.run_id }}

‎bench_runner/templates/benchmark.src.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Setup system Python
5353
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
5454
with:
55-
python-version: "3.11"
55+
python-version: "3.15"
5656
cache: pip
5757
- name: Checkout CPython
5858
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎bench_runner/templates/ci.src.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1515
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
1616
with:
17-
python-version: "3.11"
17+
python-version: "3.15"
1818
cache: pip
1919
- name: Install dependencies
2020
run: |

0 commit comments

Comments
 (0)