Skip to content

[PR #12629/66cc7b68 backport][3.14] Install Python via astral-sh/setup-uv in test/autobahn jobs#12637

Merged
bdraco merged 1 commit into
3.14from
patchback/backports/3.14/66cc7b68aad1ca084d210a466d4970de9619f10e/pr-12629
May 18, 2026
Merged

[PR #12629/66cc7b68 backport][3.14] Install Python via astral-sh/setup-uv in test/autobahn jobs#12637
bdraco merged 1 commit into
3.14from
patchback/backports/3.14/66cc7b68aad1ca084d210a466d4970de9619f10e/pr-12629

Conversation

@patchback

@patchback patchback Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

This is a backport of PR #12629 as merged into master (66cc7b6).

What do these changes do?

Swap actions/setup-python@v6 for astral-sh/setup-uv@v8.1.0 in
the two CI matrix jobs that install a Python interpreter — test
and autobahn. activate-environment: true keeps python/pip
on PATH so the subsequent uv pip install ... invocations target
the seeded venv. enable-cache: true subsumes the previous
actions/cache pip-cache step, which is dropped.

Are there changes in behavior for the user?

No. This only affects CI runner provisioning. End-user-visible
behavior of aiohttp is unaffected.

The Codecov flag derived from
steps.python-install.outputs.python-version now reports the
matrix spec (3.14t) rather than the resolved patch
(3.14.5t); coarser, but easier to group across patch releases.

Is it a substantial burden for the maintainers to support this?

No. astral-sh/setup-uv is widely used across aio-libs and the
broader Python ecosystem; activate-environment: true reproduces
the behavior the existing pipeline already relies on, so the swap
is local to the action invocation.

This mirrors aio-libs/yarl#1704, which made the same swap.

Related issue number

N/A.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist — N/A (CI configuration)
  • Documentation reflects the changes — N/A (no user-visible change)
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt — already listed
  • Add a new news fragment into the CHANGES/ folder — to be added in a follow-up commit once the PR number is assigned
Agent run details (optional, for reviewers)

actions/setup-python downloads non-cached interpreter variants
from its release index, which takes ~40s on macos-latest and ~58s
on windows-latest for 3.14t (the free-threaded build is not in
the hosted-tool-cache). astral-sh/setup-uv pulls
python-build-standalone from a CDN, which is a few seconds across
all three OSes. Motivation transferred from the yarl PR's own
measurements.

Drafted with Claude Code (Opus 4.7); reviewed by @bdraco.

@patchback patchback Bot requested review from asvetlov and webknjaz as code owners May 18, 2026 22:31
@bdraco bdraco enabled auto-merge (squash) May 18, 2026 22:33
@codecov

codecov Bot commented May 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.20%. Comparing base (02558d3) to head (71e6eaa).
⚠️ Report is 7 commits behind head on 3.14.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.14   #12637   +/-   ##
=======================================
  Coverage   98.20%   98.20%           
=======================================
  Files         135      135           
  Lines       47253    47253           
  Branches     2536     2536           
=======================================
  Hits        46405    46405           
  Misses        671      671           
  Partials      177      177           
Flag Coverage Δ
CI-GHA 98.25% <ø> (-0.01%) ⬇️
OS-Linux 98.02% <ø> (ø)
OS-Windows 95.66% <ø> (ø)
OS-macOS 97.19% <ø> (-0.02%) ⬇️
Py-3.10 97.39% <ø> (?)
Py-3.10.11 ?
Py-3.10.20 ?
Py-3.11 97.67% <ø> (?)
Py-3.11.15 ?
Py-3.11.9 ?
Py-3.12 97.76% <ø> (?)
Py-3.12.10 ?
Py-3.12.13 ?
Py-3.13 97.74% <ø> (?)
Py-3.13.13 ?
Py-3.14 97.85% <ø> (?)
Py-3.14.4 ?
Py-3.14.5 ?
Py-3.14.5t ?
Py-3.14t 96.81% <ø> (?)
Py-pypy-3.11 96.66% <ø> (?)
Py-pypy3.11.15-7.3.22 ?
VM-macos 97.19% <ø> (-0.02%) ⬇️
VM-ubuntu 98.02% <ø> (ø)
VM-windows 95.66% <ø> (ø)
cython-coverage 38.02% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codspeed-hq

codspeed-hq Bot commented May 18, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 67 untouched benchmarks
⏩ 7 skipped benchmarks1


Comparing patchback/backports/3.14/66cc7b68aad1ca084d210a466d4970de9619f10e/pr-12629 (71e6eaa) with 3.14 (869fd3c)2

Open in CodSpeed

Footnotes

  1. 7 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on 3.14 (446f330) during the generation of this report, so 869fd3c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@bdraco bdraco merged commit fd037ee into 3.14 May 18, 2026
40 checks passed
@bdraco bdraco deleted the patchback/backports/3.14/66cc7b68aad1ca084d210a466d4970de9619f10e/pr-12629 branch May 18, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant