Repository navigation
ci: pin Python 3.11 by minor version for Ubuntu 26.04 runners - #1153
Conversation
posthog-python Compliance ReportDate: 2026-10-30T08:42:20.203196+00:00 ✅ All Tests Passed!121/121 tests passed Capture_V1 Tests✅ 95/95 tests passed View Details
Capture_Ai Tests✅ 5/5 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
Feature_Flags_Local_Evaluation Tests✅ 4/4 tests passed View Details
|
There was a problem hiding this comment.
Not approved — this change needs a human reviewer.
Re-adding the stamphog label gives the same result unless the changed files change.
stamphog won't auto-review this pull request. The deny-list gate matched the infra_cicd category because all three changed files are CI configuration: .github/actions/setup-python-dev/action.yml, .github/workflows/ci.yml, and .github/workflows/release.yml. The tier gate also classified it as T2-never (a CI-only change), a category that is never handled automatically, even though the diff is only 14 lines. The size and prerequisites gates passed, but they don't override these refusals.
Please ask a human maintainer to review it. Since the release workflow is touched, it's worth flagging that to them.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✗ | matches: infra_cicd |
| size | ✓ | 14L, 3F substantive — within ceiling |
| tier | ✗ | classified as T2-never: T2-never (14L, 3F, single-area, ci) |
| stamphog 2.6.1 | .stamphog/policy.yml @ unknown · reviewed head 209307a |
Problem
ubuntu-latestnow runs Ubuntu 26.04.actions/setup-pythonhas no Python 3.11.11 build for 26.04, so six jobs fail on main and on every PR (Mypy, Package build, Public API snapshot, Ruff format, Ruff lint, Strict type smoke):Fix
Pin Python
3.11by minor version instead of the exact3.11.11patch.setup-pythonthen picks the latest 3.11 patch that has a build for the runner image (3.11.18 for 26.04 today).The release workflow had the same
3.11.11pin in three jobs, so it is changed too. The changed places are:.github/actions/setup-python-dev/action.yml(default input).github/workflows/ci.yml(3 jobs).github/workflows/release.yml(3 jobs)This is a CI-only change, so there is no changeset. PostHog/posthog.com#21771 is a similar fix for an old Python pin.
🤖 Generated with Claude Code