Skip to content

Commit d68f94e

Browse files
authored
Merge pull request #411 from faster-cpython/dont-have-toplevel-weekly-array
Dont have toplevel weekly array
2 parents e7edc22 + ac71a29 commit d68f94e

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ specifying the runners to run on.
7474
For example:
7575

7676
```toml
77-
[[weekly]]
78-
7977
[weekly.default]
8078
flags = []
8179
runners = ["linux", "darwin", "windows"]
@@ -84,3 +82,15 @@ runners = ["linux", "darwin", "windows"]
8482
flags = ["TAILCALL"]
8583
runners = ["linux_clang", "darwin", "windows_clang"]
8684
```
85+
86+
## v1.8.0
87+
88+
### bench_runner.toml change
89+
90+
The configuration no longer expects a top-level, single element `runners` array.
91+
92+
You should remove the following line from your `bench_runners.toml`:
93+
94+
```toml
95+
[[runners]]
96+
```

bench_runner/runners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def display_name(self) -> str:
4848

4949
@functools.cache
5050
def get_runners() -> list[Runner]:
51-
conf = config.get_bench_runner_config().get("runners", [{}])[0]
51+
conf = config.get_bench_runner_config().get("runners", {})
5252
runners = []
5353
for nickname, section in conf.items():
5454
runners.append(

bench_runner/scripts/install.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,9 @@ def generate__notify(dst: Any) -> Any:
229229
def generate__weekly(dst: Any) -> Any:
230230
cfg = config.get_bench_runner_config()
231231

232-
weekly = cfg.get("weekly", {})
232+
weekly = cfg.get("weekly", None)
233233
if not weekly:
234-
weekly = [{"default": {"flags": [], "runners": cfg.get("runners", {}).keys()}}]
235-
weekly = weekly[0]
234+
weekly = {"default": {"flags": [], "runners": cfg.get("runners", {}).keys()}}
236235

237236
all_jobs = []
238237

bench_runner/templates/bench_runner.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ notification_issue = 182
4242
# --enable-optimizations and --with-lto=full.
4343
# BUILD_DEST: (windows only) where to make build.bat install. This is
4444
# required for the Windows build to succeed.
45-
[[runners]]
4645

4746
[runners.linux]
4847
os = "linux"

tests/data/bench_runner.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
versions = ["base2", "base4"]
33
compare_to_default = ["NOGIL"]
44

5-
[[runners]]
65
[runners.linux]
76
os = "linux"
87
arch = "x86_64"

0 commit comments

Comments
 (0)