Skip to content

Switch the test job to astral-sh/setup-uv#1715

Merged
bdraco merged 5 commits into
aio-libs:masterfrom
bdraco:switch-test-runner-to-uv
May 19, 2026
Merged

Switch the test job to astral-sh/setup-uv#1715
bdraco merged 5 commits into
aio-libs:masterfrom
bdraco:switch-test-runner-to-uv

Conversation

@bdraco

@bdraco bdraco commented May 19, 2026

Copy link
Copy Markdown
Member

What do these changes do?

Switches the CI test job in .github/workflows/ci-cd.yml
from actions/setup-python plus pip to
astral-sh/setup-uv plus uv pip install.
UV_PYTHON_PREFERENCE: only-managed is scoped to the
setup-uv step (matching aio-libs/aiohttp#12629). Pre-release
interpreters (alpha, beta, rc, -dev, or ~-pinned latest)
skip the wheel cache so each run resolves freshly against the
current snapshot.

The CodSpeed benchmark workflow (reusable-codspeed.yml) is
left on actions/setup-python; an earlier revision of this PR
swapped it too, and the CodSpeed runner reported missing
profiling data on the resulting uv-managed interpreter, so that
change was reverted.

Are there changes in behavior for the user?

No. CI-only change; end-user-visible behavior of yarl is
unaffected.

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

No.

Related issue number

N/A; follow-up to #1711.

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)
  • Add a new news fragment into the CHANGES/ folder
Agent run details (optional, for reviewers)

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

Local verification:

  • pre-commit run --files .github/workflows/ci-cd.yml CHANGES/1715.contrib.rst passes (yamllint, actionlint,
    GHA workflow validators, codespell, timeout-minutes check).
  • make doc-spelling produces only the seven pre-existing
    misspellings already on master; the new
    CHANGES/1715.contrib.rst fragment is clean.

Scope intentionally narrow:

  • Only the test job in ci-cd.yml moves to uv. The
    cibuildwheel job and the tox-driven jobs added in Integrate tox-dev/workflow's reusable-tox.yml #1711
    are untouched.
  • reusable-codspeed.yml was rolled back after a previous
    revision lost CodSpeed profiling data on the uv-managed
    interpreter.

Mirrors aio-libs/propcache#243, which routed the ``test`` and
CodSpeed benchmark jobs through ``astral-sh/setup-uv`` with
``uv pip install``. The same change was omitted from the
companion yarl PR (aio-libs#1711); this picks it up.
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label May 19, 2026
@codspeed-hq

codspeed-hq Bot commented May 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 97 untouched benchmarks


Comparing bdraco:switch-test-runner-to-uv (b05706a) with master (3c2d90f)

Open in CodSpeed

bdraco added 3 commits May 18, 2026 17:52
The codspeed runner reported missing profiling data with uv's
managed Python; restore actions/setup-python on the benchmark
path and limit this PR to the test job.
@bdraco bdraco changed the title Switch test and benchmark jobs to astral-sh/setup-uv Switch the test job to astral-sh/setup-uv May 19, 2026
@bdraco bdraco marked this pull request as ready for review May 19, 2026 01:12
@bdraco bdraco merged commit bad9465 into aio-libs:master May 19, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant