elastic / elastic/beats

x-pack/metricbeat: multiple unit tests failures on macOS arm64

Open
#40,496 1 comment 0 reactions 0 assignees View on GitHub
flaky-test Team:Cloudnative-Monitoring Team:Obs-InfraObs
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 15m
Merged PRs (30d)
385

Description

## Failed Tests

* **Test Names:**
1. x-pack/metricbeat/module/cockroachdb/status TestEventMapping/cockroachdb-status.v19.1.1.plain
2. x-pack/metricbeat/module/cockroachdb/status TestEventMapping
3. x-pack/metricbeat/module/coredns/stats TestData/coredns_1.5.0.plain
4. x-pack/metricbeat/module/coredns/stats TestData/docs.plain
5. x-pack/metricbeat/module/coredns/stats TestData/prometheus_full_output.plain
6. x-pack/metricbeat/module/coredns/stats TestData/request_duration.plain
7. x-pack/metricbeat/module/coredns/stats TestData/request_size.plain
8. x-pack/metricbeat/module/coredns/stats TestData/response_size.plain
9. x-pack/metricbeat/module/coredns/stats TestData
10. x-pack/metricbeat/module/istio/citadel TestData/docs.plain
11. x-pack/metricbeat/module/istio/citadel TestData
12. x-pack/metricbeat/module/istio/galley TestData/docs.plain
13. x-pack/metricbeat/module/istio/galley TestData
14. x-pack/metricbeat/module/istio/mesh TestData/docs.plain
15. x-pack/metricbeat/module/istio/mesh TestData
16. x-pack/metricbeat/module/istio/proxy TestEventMapping/proxy.v1.7.1.plain
17. x-pack/metricbeat/module/istio/proxy TestEventMapping
18. x-pack/metricbeat/module/prometheus/collector TestPromHistogramToES/new_bucket_between_two_other_buckets_on_the_go
19. x-pack/metricbeat/module/prometheus/collector TestPromHistogramToES

* **Link:**
1. x-pack/metricbeat/module/cockroachdb/status TestEventMapping https://github.com/elastic/beats/blob/5e5f5d4f97803ca96effcfbb80ae68dbf5f8b2bf/x-pack/metricbeat/module/cockroachdb/status/status_test.go#L29-L33
2. x-pack/metricbeat/module/coredns/stats TestData https://github.com/elastic/beats/blob/5e5f5d4f97803ca96effcfbb80ae68dbf5f8b2bf/x-pack/metricbeat/module/coredns/stats/stats_test.go#L18-L20
3. x-pack/metricbeat/module/istio/citadel TestData https://github.com/elastic/beats/blob/5e5f5d4f97803ca96effcfbb80ae68dbf5f8b2bf/x-pack/metricbeat/module/istio/citadel/citadel_test.go#L18-L20
4. x-pack/metricbeat/module/istio/galley TestData https://github.com/elastic/beats/blob/5e5f5d4f97803ca96effcfbb80ae68dbf5f8b2bf/x-pack/metricbeat/module/istio/galley/galley_test.go#L18-L20
5. x-pack/metricbeat/module/istio/mesh TestData https://github.com/elastic/beats/blob/5e5f5d4f97803ca96effcfbb80ae68dbf5f8b2bf/x-pack/metricbeat/module/istio/mesh/mesh_test.go#L18-L20
6. x-pack/metricbeat/module/istio/proxy https://github.com/elastic/beats/blob/5e5f5d4f97803ca96effcfbb80ae68dbf5f8b2bf/x-pack/metricbeat/module/istio/proxy/proxy_test.go#L29-L33
7. x-pack/metricbeat/module/prometheus/collector TestPromHistogramToES https://github.com/elastic/beats/blob/5e5f5d4f97803ca96effcfbb80ae68dbf5f8b2bf/x-pack/metricbeat/module/prometheus/collector/histogram_test.go#L24-L466

* **Branch:** main
* **Artifact Link:** https://github.com/elastic/beats/actions/runs/14093954891/job/39477146447?pr=43526

* **Notes:** Additional details about the test. e.g. theory as to failure cause
For x-pack/metricbeat macOS arm64 tests (macosM1 stage) were disabled due to https://github.com/elastic/beats/issues/33036. After migration to GH Workflows unit tests still fail with same errors when running on macOS arm.
Tests will remain disabled as it was on Jenkins, while failures are not fixed.

Creating new issue, since https://github.com/elastic/beats/issues/33036 was Jenkins related.

Contributor guide

Open the contributing guide

Research direction

Start with the linked GitHub Actions macOS arm64 job and reproduce the failures listed in the issue. Read the referenced status_test.go, stats_test.go, citadel_test.go, galley_test.go, mesh_test.go, proxy_test.go, and histogram_test.go files, then identify the shared cause across the failing tests; done means the listed tests pass on macOS arm64 so the stage can be enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability-sre, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.