Closed github-actions[bot] closed 1 month ago
=== RUN Test_Histograms
histogram_test.go:113: creating 7 resource(s)
=== RUN Test_Histograms/histogram_metrics_captured
histogram_test.go:260:
Error Trace: /home/runner/work/splunk-otel-collector-chart/splunk-otel-collector-chart/functional_tests/histogram_test.go:260
Error: Received unexpected error:
the following errors occurred:
- resource "map[host.name:kind-control-plane http.scheme:http k8s.cluster.name:sock k8s.namespace.name:kube-system k8s.node.name:kind-control-plane os.type:linux server.port:9153 service.name:coredns url.scheme:http]": missing expected scope: otelcol/prometheusreceiver
- resource "map[host.name:kind-control-plane http.scheme:http k8s.cluster.name:sock k8s.namespace.name:kube-system k8s.node.name:kind-control-plane os.type:linux server.port:9153 service.name:coredns url.scheme:http]": unexpected scope: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver
Test: Test_Histograms/histogram_metrics_captured
golden.go:44: Golden file successfully written to results/coredns_metrics.yaml.
golden.go:45: NOTE: The WriteMetrics call must be removed in order to pass the test.
histogram_test.go:368:
Error Trace: /home/runner/work/splunk-otel-collector-chart/splunk-otel-collector-chart/functional_tests/histogram_test.go:368
Error: Received unexpected error:
the following errors occurred:
- resource "map[host.name:kind-control-plane http.scheme:https k8s.cluster.name:sock k8s.namespace.name:kube-system k8s.node.name:kind-control-plane os.type:linux url.scheme:https]": missing expected scope: otelcol/prometheusreceiver
- resource "map[host.name:kind-control-plane http.scheme:https k8s.cluster.name:sock k8s.namespace.name:kube-system k8s.node.name:kind-control-plane os.type:linux url.scheme:https]": unexpected scope: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver
Test: Test_Histograms/histogram_metrics_captured
golden.go:44: Golden file successfully written to results/controller_manager_metrics.yaml.
golden.go:45: NOTE: The WriteMetrics call must be removed in order to pass the test.
--- FAIL: Test_Histograms (72.92s)
--- FAIL: Test_Histograms/histogram_metrics_captured (72.58s)
Looks like the histogram tests need to be updated to expect the right scope name. Scope names have been updated upstream recently, specifically in v0.107.0
to be consistent.
Description