Repository navigation
Test on Python 3.12-3.15, with 3.15 as the primary version - #22
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Expect the span's own trace flags in traceparent; OpenTelemetry now sets the random-trace-id flag (03). - Measure the Redis visibility-extension idle time from the extension, since rich tracebacks can make the error log after it slow. - Put the repo root on PYTHONPATH for the docs build so tests.settings imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22 +/- ##
==========================================
- Coverage 97.07% 96.83% -0.25%
==========================================
Files 27 27
Lines 1643 1643
==========================================
- Hits 1595 1591 -4
- Misses 48 52 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
pytest 9's importorskip only skips on ModuleNotFoundError. With OpenTelemetry uninstalled, google-cloud-pubsub and the leftover opentelemetry namespace raise a plain ImportError instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenTelemetry 0.17b0 imports pkg_resources, so the 0.17b0 jobs were silently skipping the instrumentation tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
maroux
marked this pull request as ready for review
November 12, 2026 03:02
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.
Runs CI on Python 3.12, 3.13, 3.14 and 3.15, and makes 3.15 the primary version.
Changes
requirements/dev-3.14.txtanddev-3.15.txt, compiled withscripts/pip-compile.shin thepython:3.14/python:3.15images, and removes the 3.9–3.11 files.blackis pinned to 25.1.0 indev.in(matching the Python Syntax workflow) so a black upgrade, and the reformatting it brings, can land separately.pkg_resources, which setuptools 81 removed, so on 3.12+ these jobs were skipping the instrumentation tests.scripts/test-setup.shinstallssetuptools<81for pre-1.0 versions. GCP tests still skip under 0.17b0, since currentgoogle-cloud-pubsubneeds a newer OpenTelemetry.GoogleMetadatafield docstrings as run, which costs about 0.25% now that 3.9–3.11 no longer upload.python_requiresis>=3.12, the classifiers list 3.12–3.15, and the README and docs say 3.12+.01. Current OpenTelemetry also sets the random-trace-id flag (03), so they now use the span's own flags.rich(viacoveralls→typer), which makes the error log after the extension take about a second. The test now measures idle time from the extension, so it still fails if the extension is a no-op.importorskipskip only onModuleNotFoundError. In the no-OpenTelemetry job,google-cloud-pubsub(which now importsopentelemetry) and the leftoveropentelemetrynamespace raise a plainImportError, so the optional-dependencyimportorskipcalls passexc_type=ImportError, matching pytest 8.SETTINGS_MODULE=tests.settings, which newersphinx-autodoc-typehintsimports.scripts/make-docs.shnow puts the repo root onPYTHONPATH.Verification
make test docsin Docker on 3.12, 3.14 and 3.15 (mypy, pytest including Redis, black, flake8, Sphinx) passes, as doesmake testfor every 3.15 isolated job (each backend, OpenTelemetry off, 0.17b0 and 1.30.0).🤖 Generated with Claude Code