Skip to content

Run the tests on the runner instead of an Ubuntu 24.04 container - #1231

Merged
LeMyst merged 1 commit into
masterfrom
pytest-no-container
Nov 18, 2026
Merged

LeMyst merged 1 commit into
masterfrom
pytest-no-container

Conversation

@LeMyst

@LeMyst LeMyst commented Nov 18, 2026

Copy link
Copy Markdown
Owner

The pytest workflow fails on every job since ubuntu-latest moved to the ubuntu-26.04 runner image: installing Poetry stops with error: 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-python doesn'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 its ssl module doesn't load.

Last green master run (2026-11-15) #1229 / #1230 (2026-11-18)
Runner image ubuntu-24.04 20261111.127.1 ubuntu-26.04 20261111.196.1
CPython 3.13.18 3.13.18
apt packages installed in the container 28, incl. openssl 3.0.13-0ubuntu3.16 the same 28

The 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 httpbin service container by its hostname. That service and HTTPSTATUS_SERVICE are 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 as python-lint.yaml (pipx is preinstalled on the hosted runners): the container, the apt install pipx step and the PATH step are removed.

Pinning runs-on: ubuntu-24.04 would also work, but only until that image is retired.

After the merge, @dependabot rebase on #1229 and #1230 should make them green.

🤖 Generated with Claude Code

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>
@LeMyst LeMyst added the github_actions Pull requests that update Github_actions code label Nov 18, 2026
@LeMyst
LeMyst merged commit 9e5e504 into master Nov 18, 2026
15 checks passed
@LeMyst
LeMyst deleted the pytest-no-container branch November 18, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant