Skip to content

CI: install python3-dev explicitly in the Ubuntu container images - #81

Merged
mrogowski merged 1 commit into
masterfrom
fix-ci-ubuntu-python3-dev
Sep 6, 2026
Merged

CI: install python3-dev explicitly in the Ubuntu container images#81
mrogowski merged 1 commit into
masterfrom
fix-ci-ubuntu-python3-dev

Conversation

@mrogowski

Copy link
Copy Markdown
Contributor

The weekly containers workflow failed on 2026-09-06 (run 34023141569) in the oshmpi_ubuntu and sos_ubuntu jobs. pip install . dies while compiling the cffi module:

build/temp.linux-x86_64-cpython-314/shmem4py.api.c:55:14: fatal error: pyconfig.h: No such file or directory

None of the Ubuntu Dockerfiles install python3-dev. The headers used to arrive indirectly: on Ubuntu 26.04 (current ubuntu:latest) python3-pip only Recommends python3-dev, and apt honored that as long as the whole chain (python3-devpython3.14-devlibpython3.14-devzlib1g-devzlib1g (= same version)) could be added without touching packages already in the base image. On 2026-08-31 a zlib security update (CVE-2026-27171) was published, so zlib1g-dev now requires upgrading the preinstalled zlib1g. apt does not upgrade installed packages to satisfy a Recommends, so it silently drops python3-dev (the build log shows Recommended packages: python3-dev) and the extension no longer builds. The Aug 30 (green) and Sep 6 (red) runs used the same base image digest and the same Python packages; only zlib differs.

osss_ubuntu and oshmem_ubuntu still pass because libpmix-dev pulls python3-dev in as a hard dependency. The Fedora images already install python3-devel explicitly.

Fix: add python3-dev to the apt line in all four Ubuntu Dockerfiles. As a hard dependency it makes apt upgrade zlib1g when needed, so the headers get installed even when ubuntu:latest has not yet been rebuilt with the latest library updates.

@mrogowski mrogowski self-assigned this Sep 6, 2026
@mrogowski
mrogowski merged commit f02bb87 into master Sep 6, 2026
19 checks passed
@mrogowski
mrogowski deleted the fix-ci-ubuntu-python3-dev branch September 6, 2026 15:37
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