elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.18k stars 4.92k forks source link

Extended / x-pack/metricbeat-macosM1-orka && darwin && aarch64 / TestData – github.com/elastic/beats/v7/x-pack/metricbeat/module/* #33036

Open v1v opened 2 years ago

v1v commented 2 years ago

Flaky Test

image

Stack Trace

10:42:59            Test:           TestPromHistogramToES/new_bucket_between_two_other_buckets_on_the_go
10:42:59      histogram_test.go:402: #1: {SampleCount:0x14000438bf0 SampleSum:0x14000438bf8 Bucket:[cumulative_count:1 upper_bound:0.09  cumulative_count:2 upper_bound:0.49  cumulative_count:13 upper_bound:0.99 ] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
10:42:59      histogram_test.go:404: 
10:42:59            Error Trace:    histogram_test.go:404
10:42:59            Error:          Not equal: 
10:42:59                            expected: {"counts":[1,0,1],"values":[0.045,0.29000000000000004,0.74]}
10:42:59                            actual  : {"counts":[0,0,1],"values":[0.045,0.29000000000000004,0.74]}
10:42:59                            
10:42:59                            Diff:
10:42:59                            --- Expected
10:42:59                            +++ Actual
10:42:59                            @@ -2,3 +2,3 @@
10:42:59                              (string) (len=6) "counts": ([]uint64) (len=3) {
10:42:59                            -  (uint64) 1,
10:42:59                            +  (uint64) 0,
10:42:59                               (uint64) 0,
10:42:59            Test:           TestPromHistogramToES/new_bucket_between_two_other_buckets_on_the_go
10:42:59      histogram_test.go:402: #2: {SampleCount:0x14000438c30 SampleSum:0x14000438c38 Bucket:[cumulative_count:2 upper_bound:0.09  cumulative_count:4 upper_bound:0.49  cumulative_count:16 upper_bound:0.99 ] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
10:42:59      histogram_test.go:402: #3: {SampleCount:0x14000438c70 SampleSum:0x14000438c78 Bucket:[cumulative_count:3 upper_bound:0.09  cumulative_count:5 upper_bound:0.49  cumulative_count:18 upper_bound:0.99 ] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
10:42:59      --- FAIL: TestPromHistogramToES/new_bucket_between_two_other_buckets_on_the_go (0.00s)
10:42:59  
10:42:59  === FAIL: x-pack/metricbeat/module/prometheus/collector TestPromHistogramToES (0.00s)
10:42:59  
10:42:59  DONE 408 tests, 7 skipped, 19 failures in 152.867s
10:42:59  Error: failed to execute go: exit status 1

See logs -> https://beats-ci.elastic.co/job/Beats/job/beats/job/PR-32173/5/execution/node/5333/log/

botelastic[bot] commented 2 years ago

This issue doesn't have a Team:<team> label.

v1v commented 2 years ago

To unblock the task to enable the Orka M1 validations in the CI on a weekly basis -> https://github.com/elastic/beats/pull/32173

I just disabled the Orka M1 stage for x-pack/metricbeat with https://github.com/elastic/beats/pull/32173/commits/c47ccc51eb3fd3811336ecc2ce0c90a0ced8e545

Hence if https://github.com/elastic/beats/pull/32173 gets merged, you can enable back the support for MacOS m1 for x-pack/metricbeat by uncommenting out the code in x-pack/metricbeat/Jenkinsfile.yml and attach the github label macos-m1 , if it's not started the stage, please run the build again with /test