You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python auto-instrumentation package is built and recommended on EL 9, whose system Python is unsupported #217
With #202, the shared OBS spec builds opentelemetry-python-autoinstrumentation for every RPM target, EL 9 included.
The opentelemetry metapackage also recommends it there unconditionally.
On EL 9, /usr/bin/python3 is Python 3.9, but the bundled payload supports only CPython 3.10 to 3.13.
Background
Until d128944 ("feat: enable python instrumentation package"), the branch deliberately left the Python package out of EL builds.
The removed comment in packaging/repo/rpm-obs-rebuild.sh said: "The Python package is not built for EL, whose interpreter does not match the bundled wheels."
The commit drops the RPM_REBUILD_SKIP switch from the Makefile and from rpm-obs-rebuild.sh, but adds no guard in the spec in its place.
The COPR spec still applies this exclusion with its with_python guard (pythonGuard in packaging/builder/spec.go).
Impact
The version gate in packaging/common/python/sitecustomize.py accepts only _SUPPORTED_PYTHON_MINORS = (10, 11, 12, 13,). dnf install opentelemetry on EL 9 pulls in the Python package through the metapackage's Recommends.
From then on, every Python 3.9 process the injector reaches deactivates itself and logs cannot auto-instrument Python process: unsupported Python version, instead of being instrumented.
That includes system tooling written in Python, not only user applications.
Applications that run on the AppStream python3.11 or python3.12 interpreters would still be instrumented.
So the package is not useless on EL 9, but installing it by default does more harm than good.
Options
Restore the exclusion: wrap the Python package (or its build) in %if 0%{?fedora} / %if 0%{?rhel} == 0, or disable it for the EL repositories in the OBS project meta.
Have the metapackage's Recommends on the Python package follow the same condition.
Keep building it for EL 9, but drop it from the metapackage's Recommends there, so users who run a newer AppStream interpreter can opt in.
Keep the current behavior, and document that the EL 9 system interpreter is not supported and the warning is expected.
Option 2 looks like the best balance, but this needs a decision from the maintainers.
Acceptance criteria
dnf install opentelemetry on EL 9 does not pull in a package that cannot instrument the default interpreter, or the docs state clearly that it does.
The behavior of the shared OBS spec and of the COPR spec (with_python) agree.
make integration-test-obs-rpm-rebuild RPM_REBUILD_IMAGE=docker.io/almalinux/9-base covers whichever behavior is chosen.
Activity