File: 0002-Skip-non-compliant-Prometheus-metric-name-test.patch

package info (click to toggle)
golang-github-uber-go-tally 4.1.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,236 kB
  • sloc: makefile: 89; sh: 13
file content (25 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Mon, 18 Aug 2025 13:53:20 +0200
Subject: Skip non-compliant Prometheus metric name test

Forwarded: not-needed

The prometheus/common v0.62.0 package introduced more lenient metric
and label name validation, which allows previously "bad" metrics to be
registered.
---
 prometheus/reporter_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/prometheus/reporter_test.go b/prometheus/reporter_test.go
index 1ec171d..b38d7f5 100644
--- a/prometheus/reporter_test.go
+++ b/prometheus/reporter_test.go
@@ -337,6 +337,7 @@ func TestHistogramBucketValues(t *testing.T) {
 }
 
 func TestOnRegisterError(t *testing.T) {
+	t.Skip("Skip test since \"bad\" metric names are now permitted by prometheus/common v0.62.0+")
 	var captured []error
 
 	registry := prom.NewRegistry()