Skip to content

ci: bump Python for the OpenMetrics check to 3.15 - #3169

Merged
bwplotka merged 1 commit into
mainfrom
krajo/ci-openmetrics-python-3.15
Oct 29, 2026
Merged

bwplotka merged 1 commit into
mainfrom
krajo/ci-openmetrics-python-3.15

Conversation

@krajorama

Copy link
Copy Markdown
Member

Summary

  • ubuntu-latest now resolves to Ubuntu 26.04, and actions/setup-python has no Python 3.12.3 build for it (3.12.3 is only published up to Ubuntu 24.04). The check-abnf job therefore fails in the "Set up Python" step for any PR that touches docs/specs/om/open_metrics_spec_2_0.md, for example om2: OpenMetrics 2.0.0-rc1 #3167.
  • Bump python-version to "3.15", which is available on Ubuntu 26.04. The minor version is used instead of an exact patch so the job keeps working when runner images change.

Test plan

  • Ran the workflow's commands in a python:3.15.2 container: abnf installs from the pinned requirements, the grammar parses, all 47 examples in the spec parse (check_openmetrics_spec.py), and the version bump check passes (check_openmetrics_spec_version.py).
  • Checked the actions/python-versions manifest: 3.15.2 is published for Ubuntu 26.04.
  • The OpenMetrics workflow only runs on PRs touching the spec, so it will not run on this PR; it should turn green on om2: OpenMetrics 2.0.0-rc1 #3167 once this is merged and main is merged into om2-rc1.

ubuntu-latest now resolves to Ubuntu 26.04, for which actions/setup-python
has no Python 3.12.3 build, so the check-abnf job fails during setup.
Python 3.15 is available there. Use the minor version instead of an exact
patch release so the job keeps working across runner image updates.

The ABNF and version checks were verified to pass on Python 3.15.2.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

@bwplotka bwplotka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@bwplotka
bwplotka merged commit 529a03b into main Oct 29, 2026
7 checks passed
@bwplotka
bwplotka deleted the krajo/ci-openmetrics-python-3.15 branch October 29, 2026 12:51
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.

2 participants