Repository navigation
chore(deps): hold prometheus/common below v0.73.0 - #105
Merged
Merged
Conversation
v0.73.0 (prometheus/common#1008) takes the escaping scheme only from the matching Accept clause. expfmt negotiates only text 0.0.4, so the Prometheus 3.x default scrape gets escaping=underscores and /metrics serves underscored names instead of pure OTel names. Hold until prometheus/common#1035 lands.
Test CoverageTotal coverage: 83.1% |
gjed
commented
Nov 9, 2026
Owner
Author
There was a problem hiding this comment.
Copilot review overview
Reviewer is the PR author — review event submitted as COMMENT.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Adds a Renovate package rule holding github.com/prometheus/common below v0.73.0, whose Accept-header negotiation change makes /metrics serve underscore-escaped names (github_pr_count) to Prometheus 3.x scrapers, failing the Integration Test live-check on #82.
Changes:
- New
packageRulesentry:matchPackageNames: ["github.com/prometheus/common"],allowedVersions: "<0.73.0", with a description citing prometheus/common#1008 as the cause and prometheus/common#1035 as the removal condition.
| File | Description |
|---|---|
renovate.json |
Adds the prometheus/common version hold rule |
…metheus/common hold
|
🎉 This PR is included in version 0.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
gjed
added a commit
that referenced
this pull request
Nov 15, 2026
prometheus/common v0.74.0 ships text format 1.0.0 negotiation (prometheus/common#1035), so Prometheus 3.x's default scrape matches text/plain;version=1.0.0;escaping=allow-utf-8 and /metrics serves github.pr.count again instead of github_pr_count. Remove the allowedVersions <0.73.0 rule added in #105. Escaping is taken only from the matching Accept clause since v0.73.0 (prometheus/common#1008). /metrics does not serve OpenMetrics, so an OpenMetrics-only Accept matches no format and gets underscore names. The openmetrics live-check case now scrapes with the Prometheus v3.16.0 default header, which also offers text 1.0.0. go mod tidy adds github.com/pandatix/go-abnf v0.5.5 and raises go.yaml.in/yaml/v2 to v2.4.5, both required by common v0.74.0, and drops stale go.sum lines. Closes #109
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.


Holds
github.com/prometheus/commonbelow v0.73.0 so #82 can ship the otlp and yaml bumps.Root cause
v0.73.0 includes prometheus/common#1008:
NegotiateAcceptnow takes theescapingparameter only from the Accept clause that matched. expfmt negotiates only text format 0.0.4, so the Prometheus 3.x default scrape clausetext/plain;version=1.0.0;escaping=allow-utf-8never matches and the scrape falls back toescaping=underscores:/metricswould servegithub_pr_countinstead ofgithub.pr.count. That is what fails the Integration Test live-check on #82.Upstream fix: prometheus/common#1035 (text format 1.0.0 negotiation). Remove the hold once it is released.
Verification
renovate-config-validator renovate.json: OKorigin/mainwith otlp v1.11.1, yaml v3.0.6 and common v0.72.1:go test -tags integration ./tests/integration/...passes