Repository navigation
Run the tests on the runner instead of an Ubuntu 24.04 container - #1231
Merged
Merged
Conversation
ubuntu-latest now resolves to the ubuntu-26.04 runner image. setup-python takes Python from the runner's tool cache, mounted into the container, so the pytest jobs ran a Python built for Ubuntu 26.04 on the libraries of the ubuntu:24.04 container, where its ssl module doesn't load: installing Poetry failed with "ssl-missing" before any test ran. The container was added by #721 so that the tests could reach an httpbin service container by its hostname. That service is gone and the tests run offline, so the job now runs on the runner like the lint workflow, where pipx is already installed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pytest workflow fails on every job since
ubuntu-latestmoved to the ubuntu-26.04 runner image: installing Poetry stops witherror: ssl-missing — The 'ssl' module is unavailable but required for HTTPS URLs, before any test runs. It blocks #1229 and #1230 (Dependabot), and would fail any PR or master push touching the tested paths.Cause
The job ran inside
container: ubuntu:24.04.actions/setup-pythondoesn't download Python there: it takes it from the runner's tool cache, mounted into the container at/__t. On the ubuntu-26.04 runner that's the Python built for Ubuntu 26.04, which then runs on the libraries of the 24.04 container (OpenSSL 3.0.13), where itssslmodule doesn't load.20261111.127.120261111.196.1openssl 3.0.13-0ubuntu3.16The lint, docs and build workflows run directly on the same 26.04 runners and pass.
Fix
The container came with #721, so that the tests could reach an
httpbinservice container by its hostname. That service andHTTPSTATUS_SERVICEare gone and the tests run offline, so the container no longer serves a purpose. The job now runs on the runner, with the same Poetry setup aspython-lint.yaml(pipx is preinstalled on the hosted runners): the container, theapt install pipxstep and thePATHstep are removed.Pinning
runs-on: ubuntu-24.04would also work, but only until that image is retired.After the merge,
@dependabot rebaseon #1229 and #1230 should make them green.🤖 Generated with Claude Code