Repository navigation
ci: test and support Python 3.15 - #1302
Conversation
There was a problem hiding this comment.
Not approved — this change needs a human reviewer.
Adding the stamphog label gives the same result unless the changed files change.
stamphog can't approve this pull request: the deny-list gate refused it because it touches uv.lock (dependency and toolchain files) and .github/workflows/ci.yml (CI/CD configuration). Changes to either path are always routed to a human reviewer, so the tier gate also placed it in the never-auto-approve tier. The size gate was fine, so splitting for size isn't needed, but the author could separate the ci.yml matrix and lockfile changes from the classifier edits in the two pyproject.toml files. Either way, the next step is to ask a maintainer to review the lockfile upgrades and workflow changes by hand.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✗ | matches: deps_toolchain in uv.lock; infra_cicd in .github/workflows/ci.yml |
| every_file_attested | ✓ | not a bot PR |
| size | ✓ | 10L, 3F substantive, 2607L/4F incl. docs/generated/snapshots — within ceiling |
| tier | ✗ | T2-never because the deny-list matched deps_toolchain, infra_cicd |
| stamphog 2.9.1 | .stamphog/policy.yml @ unknown · reviewed head 35b2a24 |
SDK performance: posthog-pythonBenchmarks completed. No changes flagged for review. Flags require at least a 5% change in the median and all six pairs agreeing on direction. This is a noise filter, not proof of a performance change or a CI gate. View all results
Values are medians of paired measurements. Not flagged does not mean unchanged. Unavailable means a measurement could not be provided, not zero. Estimated allocation measurements retain their instrumentation uncertainty. RSS measures the whole process, not just SDK allocations; observed peaks are sampled checkpoints. Paired ranges in the diagnostics describe variability, not confidence intervals. Each shard uses its own runner; compare Before PR against With PR within a row, not across shards. Compared 102 metric rows; 102 rows shown in all results. Omitted or shortened data remain in |
turnipdabeets
left a comment
There was a problem hiding this comment.
Checked the 3.15 jobs: Python 3.15 tests ran on CPython 3.15.2 with the same result as 3.14 (8402 passed, 26 skipped). The lockfile version changes match the table in the description, and none of the SDK's runtime dependencies moved.
[suggestion] Once this merges, we should add Python 3.15 tests and Python 3.15 import check to the required status checks in the main ruleset. Right now it only requires 3.10–3.14, so a PR that breaks 3.15 can still merge while that job is red.
# Conflicts: # uv.lock
💡 Motivation and Context
Python 3.15 has been stable since October 2026, but CI only tested up to 3.14 and the package metadata did not list 3.15. Users on 3.15 had no guarantee that the SDK installs and works.
Running the suite on 3.15 found two problems, both in test dependencies and not in the SDK itself:
uv sync --extra testfailed on 3.15. Several locked packages had no 3.15 wheels and could not be built from source. For example,ormsgpack1.12.2 uses a PyO3 version that refuses to build for 3.15.ImportError: cannot import name 'no_type_check_decorator' from 'typing'. Python 3.15 removed that name.beartype0.22.9 still imports it, and it is pulled in throughfastmcpandpy-key-value-aio. The failures were the FastMCP tests intest_unknown_tool.pyand two tests whoseassertWarnscheck walkssys.modulesand importsbeartype.💚 How did you test it?
All runs used uv 0.13.4, the same version as CI, and CPython 3.15.0.
posthog/testsuite on 3.15: 8358 passed. The only failures are three fork tests intest_metrics_autocapture.pythat fail on macOS onmaintoo, so I excluded them.tests-mcpjob on 3.15 (v1, v1-fastmcp2, v2 and v2-bare). All pass.pip install .on 3.15 and imported it with warnings turned into errors.📝 Checklist
If releasing new changes
sampo addto generate a changeset fileChanges
No changeset. Released
posthogandopenfeature-provider-posthogalready install and work on Python 3.15 becauserequires-pythonhas no upper bound and the wheels are pure Python. The new classifier ships with the next release.tests,import-checkandopenfeature-providerCI jobs also run on Python 3.15.tests-mcpjob now covers the oldest and newest supported Python versions, 3.10 and 3.15, instead of 3.10 and 3.14.posthogandopenfeature-provider-posthoglist theProgramming Language :: Python :: 3.15classifier.uv.lockupgrades only the packages that had no 3.15 wheel or failed on 3.15, usinguv lock --upgrade-package. All of them are test or dev dependencies. The SDK's own dependencies are unchanged.Some packages resolve to two versions because a newer release dropped support for an older Python version. uv picks the right one for each Python version.
pyyaml6.0.3 andzstandard0.25.0 have no 3.15 wheels yet, so CI builds them from source. Both built without problems locally.🤖 Agent context
Autonomy: Human-driven (agent-assisted)