Skip to content

Use Namespace runners for macOS - #27097

Merged
zanieb merged 3 commits into
astral-sh:mainfrom
zaniebot:zb/use-namespace-macos-runners
Jul 22, 2026
Merged

zanieb merged 3 commits into
astral-sh:mainfrom
zaniebot:zb/use-namespace-macos-runners

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Move Ruff's macOS test and binary-build jobs to the namespace-profile-macos-15 runner already used by uv. Keep the existing Rust-cache behavior and GitHub-hosted fallbacks for forks, and leave the infrequent typeshed-sync job on GitHub-hosted macOS since it requires contents: write.

Three sequential Namespace samples were compared with the three most recent main test runs on depot-macos-15 and the three most recent production releases on macos-15:

Job / metric Baseline mean, n=3 Namespace mean, n=3 Improvement
macOS tests, whole job 5:26 2:31 54% faster
macOS tests, test step 4:34 2:13 51% faster
x86_64 release, whole job 9:54 3:05 69% faster
x86_64 release, build step 9:13 2:44 70% faster
aarch64 release, whole job 9:13 3:14 65% faster
aarch64 release, build step 8:52 2:54 67% faster

All nine Namespace jobs were admitted on distinct runners within 19-29 seconds, with all three macOS jobs running concurrently in each sample:

Namespace job Queue median (range), n=3
macOS tests 0:21 (0:20-0:29)
x86_64 release 0:22 (0:22-0:22)
aarch64 release 0:21 (0:19-0:22)

The Namespace test runs were cold Rust-cache misses: the image's preinstalled stable toolchain differs from Depot's and produces a different Swatinem/rust-cache key. main will populate the new key after the transition. This is an effective configured-runner comparison, not an apples-to-apples provider comparison: the Namespace profile runs on M4 Pro with 12 vCPU and 28 GB RAM, depot-macos-15 runs on M2 with 8 CPU and 24 GB RAM, and macos-15 uses a smaller GitHub-hosted runner.

@astral-sh-bot

astral-sh-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@zanieb
zanieb marked this pull request as ready for review July 22, 2026 17:49
@zanieb

zanieb commented Jul 22, 2026

Copy link
Copy Markdown
Member

I'd like to continue evaluating these runners and ya'll have higher usage than uv — this is the next place to expand.

The runtime changes seem nice :)

@ntBre ntBre added the ci Related to internal CI tooling label Jul 22, 2026
@zanieb
zanieb merged commit 920db1a into astral-sh:main Jul 22, 2026
72 checks passed
zanieb added a commit that referenced this pull request Jul 23, 2026
This continues expanding use of Namespace runners as we assess their
viability for our projects.

They appear to provide significant performance benefits over the Depot
runners at the same size.

It's worth noting they do not use a warm pool and the queue times
consequently include machine boot and are expected to be higher than
Depot on average.

Follows #27097 and astral-sh/uv#19751

--------

Move Ruff's Windows test and binary-build jobs to the
`namespace-profile-windows-2022-x86-64-16x32` runner already used by uv.

At the configured runner sizes, five sequential warm Namespace samples
were compared with 20 recent Depot Windows test runs and the ten most
recent production releases on `windows-latest`.

| Test metric | Depot mean, n=20 (95% CI) | Namespace mean, n=5 (95% CI)
| Difference (95% CI) |
| --- | ---: | ---: | ---: |
| Whole test job | 5:36 (5:18–5:55) | 3:26 (2:49–4:03) | −2:10 / −38.8%
(−2:47 to −1:34) |
| Compile and test | 2:54 (2:43–3:06) | 2:43 (2:20–3:06) | −11s / −6.5%
(−35s to +12s) |

| Test metric | Depot median | Namespace median | Difference |
| --- | ---: | ---: | ---: |
| Whole test job | 5:20 | 3:11 | −2:09 / −40.3% |
| Compile and test | 2:41 | 2:33 | −8s / −5.0% |

| Release job | GitHub mean, n=10 (95% CI) | Namespace mean, n=5 (95%
CI) | Difference (95% CI) |
| --- | ---: | ---: | ---: |
| x86_64 release | 12:37 (11:46–13:29) | 5:14 (4:14–6:14) | −7:23 /
−58.5% (−8:32 to −6:14) |
| i686 release | 13:21 (12:37–14:05) | 4:59 (4:28–5:30) | −8:22 / −62.7%
(−9:10 to −7:33) |
| aarch64 release | 12:49 (12:04–13:33) | 5:25 (4:31–6:20) | −7:24 /
−57.7% (−8:25 to −6:22) |

| Release job | GitHub median | Namespace median | Difference |
| --- | ---: | ---: | ---: |
| x86_64 release | 12:47 | 5:11 | −7:36 / −59.5% |
| i686 release | 13:16 | 4:55 | −8:21 / −62.9% |
| aarch64 release | 12:39 | 5:35 | −7:04 / −55.8% |

Runner queue time is separate from execution:

| Job | Baseline median (range) | Namespace median (range) |
| --- | ---: | ---: |
| Windows tests | 0:02 (0:01–0:03), n=20 | 0:28 (0:05–0:43), n=5 |
| x86_64 release | 0:04 (0:03–0:56), n=9 | 0:45 (0:18–1:04), n=5 |
| i686 release | 0:04 (0:03–0:40), n=9 | 0:31 (0:19–0:48), n=5 |
| aarch64 release | 0:05 (0:03–1:06), n=9 | 0:20 (0:20–0:46), n=5 |

The Namespace profile provides 16 vCPU and 32 GB RAM, matching Depot.

---------

Co-authored-by: Zanie Blue <[email protected]>
Co-authored-by: zaniebot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Related to internal CI tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants