mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/opa: fix test with go 1.24.5
Fix test error with runtime/metrics. ``` --- FAIL: TestJSONSerialization (0.01s) prometheus_test.go:189: unexpected extra metrics, expected 117, got 118 prometheus_test.go:200: unexpected metric: go_godebug_non_default_behavior_allowmultiplevcs_events_total (type: map[help:The number of non-default behaviors executed by the cmd/go package due to a non-default GODEBUG=allowmultiplevcs=... setting. Sourced from /godebug/non-default-behavior/allowmultiplevcs:events. metric:[map[counter:map[createdTimestamp:2025-07-10T02:11:01.527053306Z value:0]]] name:go_godebug_non_default_behavior_allowmultiplevcs_events_total type:COUNTER]) FAIL FAIL github.com/open-policy-agent/opa/internal/prometheus 0.017s ```
This commit is contained in:
parent
d124e114cb
commit
e56d1dbc5e
2 changed files with 13 additions and 0 deletions
|
@ -17,6 +17,7 @@ subpackages="
|
|||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/open-policy-agent/opa/archive/refs/tags/v$pkgver.tar.gz
|
||||
update-wasmtime-go.patch
|
||||
fix-prometheus-test.patch
|
||||
"
|
||||
options="net" # go mod vendor
|
||||
|
||||
|
@ -81,4 +82,5 @@ package() {
|
|||
sha512sums="
|
||||
e6b9857fe8892f296d8b93290b052e7ebf2c40fb7e2fc3d84779d72afada9be06ceb9f33167b05a67217990cb0ebd705df0f32b00c1ffd963920ca9789098a8c opa-1.4.2.tar.gz
|
||||
25d1faa62636109beb3e15eb97c39e580ba188147a2f3632791476ee638f82a0f6e3098ef82088dd8d52e505437b63a6e30775b01adf8c08ea04f3ca57e2755e update-wasmtime-go.patch
|
||||
8c187062f3b762ff1574c1640c40a3eca8fc844f65f1c3e5ce742e7fff8906b91d1181f0373712ee4d1398cbbf752f8933b17d415814b7d47b12544dea8bd4e2 fix-prometheus-test.patch
|
||||
"
|
||||
|
|
11
testing/opa/fix-prometheus-test.patch
Normal file
11
testing/opa/fix-prometheus-test.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff -ruN 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 2025-07-10 03:38:16.780000000 +0000
|
||||
@@ -117,6 +117,7 @@
|
||||
"go_cpu_classes_gc_total_cpu_seconds_total",
|
||||
"go_sync_mutex_wait_total_seconds_total",
|
||||
"go_cpu_classes_gc_pause_cpu_seconds_total",
|
||||
+ "go_godebug_non_default_behavior_allowmultiplevcs_events_total", // added in 1.24.5
|
||||
"go_godebug_non_default_behavior_execerrdot_events_total", // BEGIN added in 1.21
|
||||
"go_godebug_non_default_behavior_gocachehash_events_total",
|
||||
"go_godebug_non_default_behavior_gocachetest_events_total",
|
Loading…
Add table
Add a link
Reference in a new issue