Skip to content

Bound Python installation concurrency in macOS CI - #21628

Open
charliermarsh wants to merge 3 commits into
mainfrom
charlie/test-scheduling
Open

charliermarsh wants to merge 3 commits into
mainfrom
charlie/test-scheduling

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Cap Python installation, upgrade, and discovery tests at four concurrent tests in macOS CI and start them early to reduce contention.

Across three macOS CI runs per configuration on the same source base (52bf402542cf), median test execution time fell from 203.1s to 185.1s (8.9% less time). Median time for the Cargo test step, including compilation, fell from 267s to 251s. All six runs passed the same 4,196 tests.

Sample Base test execution PR test execution
1 203.1s 185.1s
2 203.7s 184.9s
3 199.9s 189.9s

These runs use the same macOS runner profile and include the shared Python downloads and smaller tool fixtures. All PR samples use identical source trees. Samples are listed in execution order for each configuration and exclude queue time.

@charliermarsh charliermarsh added the test:macos Enable macOS tests for a pull request label Sep 12, 2026
@charliermarsh
charliermarsh force-pushed the charlie/test-scheduling branch from 88c51dd to 22d16a8 Compare September 15, 2026 13:45
@charliermarsh charliermarsh changed the title Bound Python installation concurrency in CI Bound Python installation concurrency in macOS CI Sep 18, 2026
@charliermarsh
charliermarsh force-pushed the charlie/test-scheduling branch from 1104544 to e29d9f2 Compare September 18, 2026 16:54
@charliermarsh
charliermarsh marked this pull request as ready for review September 18, 2026 17:16
@charliermarsh
charliermarsh force-pushed the charlie/test-scheduling branch from e29d9f2 to 96d0d9c Compare September 18, 2026 17:23

@zanieb zanieb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confidence intervals or else

Comment thread .config/nextest.toml
Comment on lines +53 to +57
[[profile.ci-macos.overrides]]
platform = 'cfg(target_os = "macos")'
filter = 'test(/^python_install::/) + test(/^python_upgrade::/) + test(/^python_find::/)'
test-group = 'python-install-macos'
priority = 1 # Start earlier so these can complete before the end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Extend the existing macOS managed-Python override

The override at lines 42–45 already selects exactly these three modules on macOS. Defining the same selection again with different syntax creates two places to update when the test modules change, allowing timeout and scheduling policies to drift unintentionally. Add test-group and priority to the existing override so this cohort is defined once.

This branch was previously deployed

1 inactive deployment
automations — 7e559a6f Deployed Oct 24, 2026 by charliermarsh via review / security review #52550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:macos Enable macOS tests for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants