File: 0004-Fix-collector-metrics-test-for-Go-1.24.patch

package info (click to toggle)
golang-github-prometheus-client-golang 1.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,192 kB
  • sloc: makefile: 68; ansic: 46; sh: 21
file content (48 lines) | stat: -rw-r--r-- 2,600 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Sat, 16 Aug 2025 21:21:07 +0200
Subject: Fix collector metrics test for Go 1.24

Forwarded: not-needed
---
 prometheus/collectors/go_collector_go124_test.go | 2 --
 prometheus/go_collector_metrics_go124_test.go    | 3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/prometheus/collectors/go_collector_go124_test.go b/prometheus/collectors/go_collector_go124_test.go
index 3933de4..02b6b2f 100644
--- a/prometheus/collectors/go_collector_go124_test.go
+++ b/prometheus/collectors/go_collector_go124_test.go
@@ -52,7 +52,6 @@ func withAllMetrics() []string {
 		"go_gc_scan_stack_bytes",
 		"go_gc_scan_total_bytes",
 		"go_gc_stack_starting_size_bytes",
-		"go_godebug_non_default_behavior_allowmultiplevcs_events_total",
 		"go_godebug_non_default_behavior_asynctimerchan_events_total",
 		"go_godebug_non_default_behavior_execerrdot_events_total",
 		"go_godebug_non_default_behavior_gocachehash_events_total",
@@ -173,7 +172,6 @@ func withSchedulerMetrics() []string {
 
 func withDebugMetrics() []string {
 	return withBaseMetrics([]string{
-		"go_godebug_non_default_behavior_allowmultiplevcs_events_total",
 		"go_godebug_non_default_behavior_asynctimerchan_events_total",
 		"go_godebug_non_default_behavior_execerrdot_events_total",
 		"go_godebug_non_default_behavior_gocachehash_events_total",
diff --git a/prometheus/go_collector_metrics_go124_test.go b/prometheus/go_collector_metrics_go124_test.go
index 6c5d124..5785050 100644
--- a/prometheus/go_collector_metrics_go124_test.go
+++ b/prometheus/go_collector_metrics_go124_test.go
@@ -42,7 +42,6 @@ var (
 		"/gc/scan/stack:bytes":                                             "go_gc_scan_stack_bytes",
 		"/gc/scan/total:bytes":                                             "go_gc_scan_total_bytes",
 		"/gc/stack/starting-size:bytes":                                    "go_gc_stack_starting_size_bytes",
-		"/godebug/non-default-behavior/allowmultiplevcs:events":            "go_godebug_non_default_behavior_allowmultiplevcs_events_total",
 		"/godebug/non-default-behavior/asynctimerchan:events":              "go_godebug_non_default_behavior_asynctimerchan_events_total",
 		"/godebug/non-default-behavior/execerrdot:events":                  "go_godebug_non_default_behavior_execerrdot_events_total",
 		"/godebug/non-default-behavior/gocachehash:events":                 "go_godebug_non_default_behavior_gocachehash_events_total",
@@ -109,4 +108,4 @@ var (
 	}
 )
 
-const expectedRuntimeMetricsCardinality = 172
+const expectedRuntimeMetricsCardinality = 171