mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 20:02:24 +01:00
Update patch to fix test error with runtime/metrics.
```
--- FAIL: TestJSONSerialization (0.00s)
prometheus_test.go:196: unexpected extra metrics, expected 124, got 125
prometheus_test.go:207: unexpected metric: go_godebug_non_default_behavior_urlmaxqueryparams_events_total (type: map[help:The number of non-default behaviors executed by the net/url package due to a non-default GODEBUG=urlmaxqueryparams=... setting. Sourced from /godebug/non-default-behavior/urlmaxqueryparams:events. metric:[map[counter:map[createdTimestamp:2026-01-17T06:15:49.520688040Z value:0]]] name:go_godebug_non_default_behavior_urlmaxqueryparams_events_total type:COUNTER])
FAIL
FAIL github.com/open-policy-agent/opa/internal/prometheus 0.031s
```
30 lines
1.5 KiB
Diff
30 lines
1.5 KiB
Diff
Ref: https://github.com/open-policy-agent/opa/commit/a938b9202eccbfae887ca110feca92cb2943e085
|
|
---
|
|
diff -rupN a/internal/prometheus/prometheus_test.go b/internal/prometheus/prometheus_test.go
|
|
--- a/internal/prometheus/prometheus_test.go 2025-06-30 08:57:36.000000000 +0000
|
|
+++ b/internal/prometheus/prometheus_test.go 2026-01-17 06:26:31.160000000 +0000
|
|
@@ -4,7 +4,7 @@
|
|
//
|
|
// NOTE: Different go runtime metrics in pretty much
|
|
// every Go version. Let's only test these on latest.
|
|
-//go:build go1.24
|
|
+//go:build go1.25
|
|
|
|
package prometheus
|
|
|
|
@@ -155,6 +155,14 @@ func TestJSONSerialization(t *testing.T)
|
|
"go_godebug_non_default_behavior_x509rsacrt_events_total",
|
|
"go_godebug_non_default_behavior_gotestjsonbuildtext_events_total",
|
|
"go_godebug_non_default_behavior_rsa1024min_events_total",
|
|
+ "go_godebug_non_default_behavior_allowmultiplevcs_events_total", // added in 1.24.6
|
|
+ "go_godebug_non_default_behavior_embedfollowsymlinks_events_total",
|
|
+ "go_godebug_non_default_behavior_containermaxprocs_events_total",
|
|
+ "go_godebug_non_default_behavior_updatemaxprocs_events_total",
|
|
+ "go_godebug_non_default_behavior_x509sha256skid_events_total",
|
|
+ "go_godebug_non_default_behavior_tlssha1_events_total", // here and above, added with 1.25.1
|
|
+ "go_godebug_non_default_behavior_httpcookiemaxnum_events_total", // go 1.25.2
|
|
+ "go_godebug_non_default_behavior_urlmaxqueryparams_events_total", // go 1.25.6
|
|
},
|
|
"SUMMARY": {
|
|
"go_gc_duration_seconds",
|