Skip to content

Prioritize Windows Python upgrade tests - #946

Draft
zaniebot wants to merge 2 commits into
mainfrom
zb/ci-windows-python-upgrade-scheduling
Draft

zaniebot wants to merge 2 commits into
mainfrom
zb/ci-windows-python-upgrade-scheduling

Conversation

@zaniebot

@zaniebot zaniebot commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

The Windows test-priority override selects python_update::, but interpreter upgrade tests live under python_upgrade::. Give the actual upgrade tests elevated priority without adding them to the single-threaded installation group. This starts upgrade downloads earlier while leaving the installation queue, native-auth serialization, and overall worker count unchanged.

The actual production test.yml was invoked at bf041f9245952ba7c9e3c29aebe0a8acc2bc983d and 99d65b6e30fef3affe3c68d402310217749af39e. Five paired, exact-cache-hit Windows pipelines per variant (3 → 3 shards) covered the same 3,523 tests. Ratios are candidate/control geometric means with paired log-ratio Student-t 90% confidence intervals. The prespecified primary elapsed metric includes runner admission; secondary intervals are not multiplicity-adjusted. All rows use current → candidate medians.

Metric Median Ratio (90% CI)
Windows pipeline elapsed 4m45s → 5m16s 1.1096 (1.0001–1.2311)
Execution span 4m05s → 4m42s 1.1049 (0.9859–1.2383)
Slowest nextest shard 1m14s → 1m23s 1.0414 (0.9791–1.1078)
Summed runner time 11m33s → 12m04s 1.0311 (0.9520–1.1167)
Modeled VM unit-minutes (prepaid USD) 480 ($0.480) → 480 ($0.480) 1.0262 (0.9921–1.0613)

The primary estimate is slower, with the 90% lower bound only just above one; the retained 95% interval includes one. This does not support shipping the change for speed. Modeled cost uses the unchanged 16x32 shape and Namespace's VM-lifetime billing rules. The public conversion is $0.001 per unit-minute prepaid or $0.0015 in overage, not Astral's invoice pricing.

During nextest execution, median per-shard CPU utilization was 74.5% → 75.3%; peak whole-job RAM was 8.20 → 8.24 GiB. The Windows traces do not expose disk-I/O wait, so they do not directly establish an I/O-contention change. Every accepted sample used cargo-nextest 0.9.143 (60fa45f63 2026-08-04) and Rust 1.98.0 x86_64-pc-windows-msvc 88d9e12ae178fab0fb5cc050a94da85685d449ea.

The first five eligible pairs used 30 distinct Namespace VMs; 1 cache-ineligible pair was retained outside the warm estimate. Control run and candidate run retain the cache logs and per-shard JUnit results.

@astral-automations-bot astral-automations-bot Bot added internal A refactor or improvement that is not user-facing internal:testing Internal testing of behavior labels Sep 1, 2026
@zaniebot zaniebot changed the title Schedule Windows Python upgrade tests with interpreter installs Prioritize Windows Python upgrade tests Sep 1, 2026
@zaniebot zaniebot added priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:1 Small: one localized behavior with straightforward tests or documentation checks. labels Sep 9, 2026
@zaniebot zaniebot added the risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. label Sep 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal:testing Internal testing of behavior internal A refactor or improvement that is not user-facing priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. size:1 Small: one localized behavior with straightforward tests or documentation checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant