Skip to content

Share Python download cache by default in integration tests - #21632

Merged
charliermarsh merged 2 commits into
mainfrom
charlie/test-python-reuse
Sep 12, 2026
Merged

charliermarsh merged 2 commits into
mainfrom
charlie/test-python-reuse

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Share downloaded Python archives across integration tests by default, with opt-outs for tests of caching and download failures. Also combine the prerelease installation and discovery tests, avoiding two repeated Python installations.

The prerelease checks dropped from 56s to 37s median across three macOS CI runs per revision. We haven't measured the effect of making the shared cache the default.

@charliermarsh charliermarsh added the test:macos Enable macOS tests for a pull request label Sep 12, 2026
@astral-sh-bot

astral-sh-bot Bot commented Sep 12, 2026

Copy link
Copy Markdown

uv test inventory changes

This PR changes the tests when compared with the main base revision.

  • Added tests: 0
  • Removed tests: 1
  • Changed suites: 1
uv::python: +0 / -1

Added: none

Removed:

  • uv::python::python_install::python_find_prerelease

@charliermarsh
charliermarsh marked this pull request as ready for review September 12, 2026 03:06
@charliermarsh
charliermarsh marked this pull request as draft September 12, 2026 03:14
@zanieb

zanieb commented Sep 12, 2026

Copy link
Copy Markdown
Member

Yeah we should absolutely be using caching except in the few tests that disable the cache to test it.

@zanieb

zanieb commented Sep 12, 2026

Copy link
Copy Markdown
Member

I assume we should make this the default and have the others opt-out?

@charliermarsh charliermarsh changed the title Reuse Python installation setup in integration tests Share Python download cache by default in integration tests Sep 12, 2026
@charliermarsh
charliermarsh force-pushed the charlie/test-python-reuse branch from f03897c to 5387d30 Compare September 12, 2026 12:35
@charliermarsh
charliermarsh marked this pull request as ready for review September 12, 2026 12:35
@charliermarsh
charliermarsh merged commit 6142e13 into main Sep 12, 2026
61 checks passed
@charliermarsh
charliermarsh deleted the charlie/test-python-reuse branch September 12, 2026 14:32

This branch was previously deployed

1 inactive deployment
automations — 5387d30e Deployed Sep 12, 2026 by charliermarsh via review / security review #46522
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