Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore parser errors from unsupported metrics types on Prometheus client and continue parsing until EOF is reached. #37357

Closed
wants to merge 3 commits into from

Conversation

gsantoro
Copy link
Contributor

@gsantoro gsantoro commented Dec 8, 2023

Proposed commit message

Ignore parser errors from unsupported metrics types on Prometheus client and continue parsing until EOF is reached.

For example Prometheus client with default text/plain format doesn't support info metrics and it will generate an error at https://github.com/prometheus/prometheus/blob/965e603fa792bca0900ac76eb45ae84c81af1cdf/model/textparse/promparse.go#L319.

Currently that error breaks the parsing and it ignores any remaining metrics in the list. With this change instead we will correctly parse all the supported metrics types and ignore the unsupported ones.

Metrics of type info are correctly supported by OpenMetrics format. KSM supports OpenMetrics text format as well but in Beats the helper is hardcoded to use only plain text format at

const acceptHeader = `text/plain;version=0.0.4;q=0.5,*/*;q=0.1`
.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

See related issue #37198 on how to test these changes

Related issues

Use cases

Screenshots

Logs

@gsantoro gsantoro added the bug label Dec 8, 2023
@gsantoro gsantoro self-assigned this Dec 8, 2023
@gsantoro gsantoro requested a review from a team as a code owner December 8, 2023 13:33
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 8, 2023
Copy link
Contributor

mergify bot commented Dec 8, 2023

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @gsantoro? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@gsantoro gsantoro added the Team:obs-ds-hosted-services Label for the Observability Hosted Services team label Dec 8, 2023
@elasticmachine
Copy link
Collaborator

Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Dec 8, 2023
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Start Time: 2023-12-08T13:34:07.227+0000

  • Duration: 6 min 42 sec

Steps errors 1

Expand to view the steps failures

Error signal
  • Took 0 min 0 sec . View more details here
  • Description: tar: step failed with error null

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

// any `info` metrics are not supported, and then there will be ignored here.
// if acceptHeader in the prometheus client `Accept: application/openmetrics-text; version=0.0.1`
// any `info` metrics are supported, and then there will be parsed here.
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a debug log for such cases as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually I would agree with you but logging in that class would be a non-trivial change. You would need to pass the prometheus logger to this method if you didn't want to create a new logger.

I'm not sure about it

@gsantoro gsantoro added the backport-v8.11.0 Automated backport with mergify label Dec 8, 2023
@pierrehilbert pierrehilbert added the Team:Elastic-Agent Label for the Agent team label Dec 8, 2023
@elasticmachine
Copy link
Collaborator

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Duration: 70 min 23 sec

Pipeline error 1

This error is likely related to the pipeline itself. Click here
and then you will see the error (either incorrect syntax or an invalid configuration).

❕ Flaky test report

No test was executed to be analysed.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@gsantoro gsantoro enabled auto-merge (squash) December 11, 2023 11:30
Copy link
Contributor

@tetianakravchenko tetianakravchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the CHANGELOG record

@elasticmachine
Copy link
Collaborator

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-12-11T11:30:43.198+0000

  • Duration: 61 min 43 sec

Test stats 🧪

Test Results
Failed 15
Passed 4872
Skipped 397
Total 5284

Test errors 15

Expand to view the tests failures

> Show only the first 10 test failures

Build&Test / metricbeat-unitTest / TestOpenMetrics – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestOpenMetrics
    === RUN   TestOpenMetrics/Simple_field_map
    	github.com/elastic/beats/v7/metricbeat/helper/openmetrics	coverage: 10.8% of statements
    panic: test timed out after 10m0s
    running tests:
    	TestOpenMetrics (10m0s)
    	TestOpenMetrics/Simple_field_map (10m0s)
    
    goroutine 35 [running]:
    testing.(*M).startAlarm.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc0003144e0, {0x10cbf80?, 0x8e8805?}, 0x112a8c8)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x175f480?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc0003144e0, 0xc0002efc80)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc00026b540?, {0x16fba40, 0x2, 0x2}, {0xc00025c888?, 0x100c0002efd08?, 0x175e820?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc00026b540)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:80 +0x1c5
    
    goroutine 19 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000314680, {0x10ccba6?, 0x10c3df5?}, 0xc000326228)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics(0xc000314680?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:573 +0x4831
    testing.tRunner(0xc000314680, 0x112a8c8)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 20 [runnable]:
    github.com/pkg/errors.callers()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/stack.go:167 +0x56
    github.com/pkg/errors.New(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/errors.go:105
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc00024f6c0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9eb
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc000360000?, 0xc00015fb80?, 0x175e820?}, {0x10d8466, 0x1c}, {0xc000074478?, 0x7c3fc9?, 0x175e820?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc0003260a8)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x71b
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetProcessedMetrics(0x0?, 0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:250 +0x65
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).ReportProcessedMetrics(0x171ed40?, 0xc000325950, {0x11f84f8, 0xc000325c80})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:264 +0x7e
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics.func1(0xc000314680?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:575 +0x76
    testing.tRunner(0xc0003149c0, 0xc000326228)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
     
    

Build&Test / metricbeat-unitTest / TestOpenMetrics/Simple_field_map – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestOpenMetrics/Simple_field_map
    	github.com/elastic/beats/v7/metricbeat/helper/openmetrics	coverage: 10.8% of statements
    panic: test timed out after 10m0s
    running tests:
    	TestOpenMetrics (10m0s)
    	TestOpenMetrics/Simple_field_map (10m0s)
    
    goroutine 35 [running]:
    testing.(*M).startAlarm.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc0003144e0, {0x10cbf80?, 0x8e8805?}, 0x112a8c8)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x175f480?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc0003144e0, 0xc0002efc80)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc00026b540?, {0x16fba40, 0x2, 0x2}, {0xc00025c888?, 0x100c0002efd08?, 0x175e820?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc00026b540)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:80 +0x1c5
    
    goroutine 19 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000314680, {0x10ccba6?, 0x10c3df5?}, 0xc000326228)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics(0xc000314680?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:573 +0x4831
    testing.tRunner(0xc000314680, 0x112a8c8)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 20 [runnable]:
    github.com/pkg/errors.callers()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/stack.go:167 +0x56
    github.com/pkg/errors.New(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/errors.go:105
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc00024f6c0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9eb
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc000360000?, 0xc00015fb80?, 0x175e820?}, {0x10d8466, 0x1c}, {0xc000074478?, 0x7c3fc9?, 0x175e820?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc0003260a8)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x71b
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetProcessedMetrics(0x0?, 0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:250 +0x65
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).ReportProcessedMetrics(0x171ed40?, 0xc000325950, {0x11f84f8, 0xc000325c80})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:264 +0x7e
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics.func1(0xc000314680?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:575 +0x76
    testing.tRunner(0xc0003149c0, 0xc000326228)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
     
    

Build&Test / metricbeat-unitTest / TestAll/openmetrics.collector – github.com/elastic/beats/v7/metricbeat/mb/testing/data
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAll/openmetrics.collector
     
    

Build&Test / metricbeat-unitTest / TestAll/openmetrics.collector/docs.plain – github.com/elastic/beats/v7/metricbeat/mb/testing/data
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAll/openmetrics.collector/docs.plain
        testdata.go:238: Testing ../../../module/openmetrics/collector/_meta/testdata/docs.plain file
    coverage: [no statements]
    panic: test timed out after 10m0s
    running tests:
    	TestAll (10m0s)
    	TestAll/openmetrics.collector (8m52s)
    	TestAll/openmetrics.collector/docs.plain (8m52s)
    
    goroutine 1161 [running]:
    testing.(*M).startAlarm.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 10 minutes]:
    testing.(*T).Run(0xc000491520, {0x3a7751a?, 0x14ff4e5?}, 0x3c032f0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x5684500?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc000491520, 0xc0005bfc80)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc000194d20?, {0x55b9d90, 0x1, 0x1}, {0xc000503408?, 0x100c000503380?, 0x5682ea0?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc000194d20)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:78 +0x1c5
    
    goroutine 35 [chan receive]:
    k8s.io/klog/v2.(*loggingT).flushDaemon(0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/k8s.io/klog/[email protected]/klog.go:1181 +0x6a
    created by k8s.io/klog/v2.init.0
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/k8s.io/klog/[email protected]/klog.go:420 +0xf6
    
    goroutine 20 [chan receive, 8 minutes]:
    testing.(*T).Run(0xc0004916c0, {0xc004387ba8?, 0xc0000a2f40?}, 0xc00438a4b0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/mb/testing/data.TestAll(0xa?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/data/data_test.go:44 +0x95
    testing.tRunner(0xc0004916c0, 0x3c032f0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 1431 [chan receive, 8 minutes]:
    testing.(*T).Run(0xc000197a00, {0xc0012cb5b5?, 0x0?}, 0xc002058d00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig(0xc000197a00, {0xc000551a10, 0xb}, {0xc000551a1c, 0x9}, {{0x3a88c2c, 0xe}, {0x3a88c2c, 0xe}, {0x3a73d04, ...}, ...}, ...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:197 +0x656
    github.com/elastic/beats/v7/metricbeat/mb/testing/data.TestAll.func1(0x18b6101?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/data/data_test.go:51 +0x10d
    testing.tRunner(0xc000197a00, 0xc00438a4b0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 1432 [runnable]:
    github.com/pkg/errors.callers()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/stack.go:167 +0x56
    github.com/pkg/errors.New(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/errors.go:105
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc0003b0000)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9eb
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc000652000?, 0xc002a194c0?, 0x5682ea0?}, {0x3abf75a, 0x1c}, {0x0?, 0x1?, 0x5682ea0?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc0043ee738)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x60d
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.(*MetricSet).Fetch(0xc000207980, {0x3fefcf8, 0xc004e0cb40})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector.go:139 +0x8b
    github.com/elastic/beats/v7/metricbeat/mb/testing.ReportingFetchV2Error({0x7f09042442c0, 0xc000207980})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/modules.go:237 +0x53
    github.com/elastic/beats/v7/metricbeat/mb/testing.runTest(0xc000197d40, {0xc0012cb580, 0x3f}, {0xc000551a10, 0xb}, {0xc000551a1c, 0x9}, {{0xc0012cb4c0, 0x34}, {0xc0012cb480, ...}, ...})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:256 +0x665
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig.func1(0x18b6101?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:198 +0x7e
    testing.tRunner(0xc000197d40, 0xc002058d00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 1433 [IO wait, 8 minutes]:
    internal/poll.runtime_pollWait(0x7f090c2c43b0, 0x72)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/runtime/netpoll.go:306 +0x89
    internal/poll.(*pollDesc).wait(0xc001321900?, 0x138c185?, 0x0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:84 +0x32
    internal/poll.(*pollDesc).waitRead(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:89
    internal/poll.(*FD).Accept(0xc001321900)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_unix.go:614 +0x2bd
    net.(*netFD).accept(0xc001321900)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/fd_unix.go:172 +0x35
    net.(*TCPListener).accept(0xc0043ee2d0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock_posix.go:148 +0x25
    net.(*TCPListener).Accept(0xc0043ee2d0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock.go:297 +0x3d
    net/http.(*Server).Serve(0xc0030441e0, {0x4004eb0, 0xc0043ee2d0})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/server.go:3059 +0x385
    net/http/httptest.(*Server).goServe.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:310 +0x6a
    created by net/http/httptest.(*Server).goServe
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:308 +0x6a
     
    

Build&Test / metricbeat-unitTest / TestAll – github.com/elastic/beats/v7/metricbeat/mb/testing/data
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAll
    === RUN   TestAll/apache.status
    --- PASS: TestAll/apache.status (0.79s)
    === RUN   TestAll/apache.status/docs.plain
        testdata.go:238: Testing ../../../module/apache/status/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/apache/status/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/apache.status/docs.plain (0.79s)
    === RUN   TestAll/ceph.mgr_cluster_disk
    --- PASS: TestAll/ceph.mgr_cluster_disk (1.53s)
    === RUN   TestAll/ceph.mgr_cluster_disk/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_cluster_disk/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_cluster_disk/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_cluster_disk/failed.json (0.88s)
    === RUN   TestAll/ceph.mgr_cluster_disk/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_cluster_disk/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_cluster_disk/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_cluster_disk/sample.json (0.66s)
    === RUN   TestAll/ceph.mgr_osd_perf
    --- PASS: TestAll/ceph.mgr_osd_perf (1.56s)
    === RUN   TestAll/ceph.mgr_osd_perf/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_perf/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_perf/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_perf/failed.json (0.76s)
    === RUN   TestAll/ceph.mgr_osd_perf/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_perf/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_perf/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_perf/sample.json (0.81s)
    === RUN   TestAll/ceph.mgr_osd_pool_stats
    --- PASS: TestAll/ceph.mgr_osd_pool_stats (1.64s)
    === RUN   TestAll/ceph.mgr_osd_pool_stats/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_pool_stats/failed.json (0.80s)
    === RUN   TestAll/ceph.mgr_osd_pool_stats/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_pool_stats/sample.json (0.83s)
    === RUN   TestAll/ceph.mgr_osd_tree
    --- PASS: TestAll/ceph.mgr_osd_tree (1.72s)
    === RUN   TestAll/ceph.mgr_osd_tree/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_tree/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_tree/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_tree/failed.json (0.80s)
    === RUN   TestAll/ceph.mgr_osd_tree/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_tree/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_tree/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_tree/sample.json (0.92s)
    === RUN   TestAll/ceph.mgr_pool_disk
    --- PASS: TestAll/ceph.mgr_pool_disk (1.53s)
    === RUN   TestAll/ceph.mgr_pool_disk/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_pool_disk/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_pool_disk/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_pool_disk/failed.json (0.77s)
    === RUN   TestAll/ceph.mgr_pool_disk/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_pool_disk/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_pool_disk/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_pool_disk/sample.json (0.76s)
    === RUN   TestAll/ceph.monitor_health
    --- PASS: TestAll/ceph.monitor_health (0.59s)
    === RUN   TestAll/ceph.monitor_health/docs.json
        testdata.go:238: Testing ../../../module/ceph/monitor_health/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/ceph/monitor_health/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/ceph.monitor_health/docs.json (0.59s)
    === RUN   TestAll/couchbase.cluster
    --- PASS: TestAll/couchbase.cluster (1.32s)
    === RUN   TestAll/couchbase.cluster/4.5.1.json
        testdata.go:238: Testing ../../../module/couchbase/cluster/_meta/testdata/4.5.1.json file
        testdata.go:307: Expected ../../../module/couchbase/cluster/_meta/testdata/4.5.1.json-expected.json file
    --- PASS: TestAll/couchbase.cluster/4.5.1.json (0.64s)
    === RUN   TestAll/couchbase.cluster/docs.json
        testdata.go:238: Testing ../../../module/couchbase/cluster/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/couchbase/cluster/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/couchbase.cluster/docs.json (0.68s)
    === RUN   TestAll/couchbase.node
    --- PASS: TestAll/couchbase.node (1.29s)
    === RUN   TestAll/couchbase.node/4.5.1.json
        testdata.go:238: Testing ../../../module/couchbase/node/_meta/testdata/4.5.1.json file
        testdata.go:307: Expected ../../../module/couchbase/node/_meta/testdata/4.5.1.json-expected.json file
    --- PASS: TestAll/couchbase.node/4.5.1.json (0.63s)
    === RUN   TestAll/couchbase.node/docs.json
        testdata.go:238: Testing ../../../module/couchbase/node/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/couchbase/node/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/couchbase.node/docs.json (0.66s)
    === RUN   TestAll/dropwizard.collector
    --- PASS: TestAll/dropwizard.collector (0.64s)
    === RUN   TestAll/dropwizard.collector/docs.json
        testdata.go:238: Testing ../../../module/dropwizard/collector/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/dropwizard/collector/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/dropwizard.collector/docs.json (0.64s)
    === RUN   TestAll/etcd.metrics
    --- PASS: TestAll/etcd.metrics (0.57s)
    === RUN   TestAll/etcd.metrics/metrics.plain
        testdata.go:238: Testing ../../../module/etcd/metrics/_meta/testdata/metrics.plain file
        testdata.go:307: Expected ../../../module/etcd/metrics/_meta/testdata/metrics.plain-expected.json file
    --- PASS: TestAll/etcd.metrics/metrics.plain (0.57s)
    === RUN   TestAll/http.json
    --- PASS: TestAll/http.json (0.54s)
    === RUN   TestAll/http.json/docs.json
        testdata.go:238: Testing ../../../module/http/json/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/http/json/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/http.json/docs.json (0.54s)
    === RUN   TestAll/kibana.status
    --- PASS: TestAll/kibana.status (1.30s)
    === RUN   TestAll/kibana.status/7.0.0.json
        testdata.go:238: Testing ../../../module/kibana/status/_meta/testdata/7.0.0.json file
        testdata.go:307: Expected ../../../module/kibana/status/_meta/testdata/7.0.0.json-expected.json file
    --- PASS: TestAll/kibana.status/7.0.0.json (0.63s)
    === RUN   TestAll/kibana.status/docs.json
        testdata.go:238: Testing ../../../module/kibana/status/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/kibana/status/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/kibana.status/docs.json (0.67s)
    === RUN   TestAll/kubernetes.apiserver
    --- PASS: TestAll/kubernetes.apiserver (1.75s)
    === RUN   TestAll/kubernetes.apiserver/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/apiserver/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/apiserver/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.apiserver/docs.plain (1.75s)
    === RUN   TestAll/kubernetes.controllermanager
    --- PASS: TestAll/kubernetes.controllermanager (1.00s)
    === RUN   TestAll/kubernetes.controllermanager/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/controllermanager/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/controllermanager/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.controllermanager/docs.plain (1.00s)
    === RUN   TestAll/kubernetes.proxy
    --- PASS: TestAll/kubernetes.proxy (0.86s)
    === RUN   TestAll/kubernetes.proxy/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/proxy/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/proxy/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.proxy/docs.plain (0.86s)
    === RUN   TestAll/kubernetes.scheduler
    --- PASS: TestAll/kubernetes.scheduler (0.89s)
    === RUN   TestAll/kubernetes.scheduler/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/scheduler/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/scheduler/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.scheduler/docs.plain (0.89s)
    === RUN   TestAll/kubernetes.state_container
    --- PASS: TestAll/kubernetes.state_container (3.44s)
    === RUN   TestAll/kubernetes.state_container/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/docs.plain (0.95s)
    === RUN   TestAll/kubernetes.state_container/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/ksm.v2.10.0.plain (0.94s)
    === RUN   TestAll/kubernetes.state_container/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/ksm.v2.8.2.plain (0.83s)
    === RUN   TestAll/kubernetes.state_container/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/ksm.v2.9.2.plain (0.71s)
    === RUN   TestAll/kubernetes.state_cronjob
    --- PASS: TestAll/kubernetes.state_cronjob (3.00s)
    === RUN   TestAll/kubernetes.state_cronjob/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/docs.plain (0.81s)
    === RUN   TestAll/kubernetes.state_cronjob/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/ksm.v2.10.0.plain (0.88s)
    === RUN   TestAll/kubernetes.state_cronjob/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/ksm.v2.8.2.plain (0.72s)
    === RUN   TestAll/kubernetes.state_cronjob/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/ksm.v2.9.2.plain (0.60s)
    === RUN   TestAll/kubernetes.state_daemonset
    --- PASS: TestAll/kubernetes.state_daemonset (2.74s)
    === RUN   TestAll/kubernetes.state_daemonset/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/docs.plain (0.65s)
    === RUN   TestAll/kubernetes.state_daemonset/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/ksm.v2.10.0.plain (0.60s)
    === RUN   TestAll/kubernetes.state_daemonset/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/ksm.v2.8.2.plain (0.71s)
    === RUN   TestAll/kubernetes.state_daemonset/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/ksm.v2.9.2.plain (0.77s)
    === RUN   TestAll/kubernetes.state_deployment
    --- PASS: TestAll/kubernetes.state_deployment (2.99s)
    === RUN   TestAll/kubernetes.state_deployment/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/docs.plain (0.85s)
    === RUN   TestAll/kubernetes.state_deployment/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/ksm.v2.10.0.plain (0.79s)
    === RUN   TestAll/kubernetes.state_deployment/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/ksm.v2.8.2.plain (0.69s)
    === RUN   TestAll/kubernetes.state_deployment/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/ksm.v2.9.2.plain (0.65s)
    === RUN   TestAll/kubernetes.state_job
    --- PASS: TestAll/kubernetes.state_job (3.10s)
    === RUN   TestAll/kubernetes.state_job/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/docs.plain (0.64s)
    === RUN   TestAll/kubernetes.state_job/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/ksm.v2.10.0.plain (0.84s)
    === RUN   TestAll/kubernetes.state_job/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/ksm.v2.8.2.plain (0.77s)
    === RUN   TestAll/kubernetes.state_job/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/ksm.v2.9.2.plain (0.85s)
    === RUN   TestAll/kubernetes.state_namespace
    --- PASS: TestAll/kubernetes.state_namespace (3.53s)
    === RUN   TestAll/kubernetes.state_namespace/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/docs.plain (0.85s)
    === RUN   TestAll/kubernetes.state_namespace/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/ksm.v2.10.0.plain (0.81s)
    === RUN   TestAll/kubernetes.state_namespace/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/ksm.v2.8.2.plain (0.94s)
    === RUN   TestAll/kubernetes.state_namespace/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/ksm.v2.9.2.plain (0.93s)
    === RUN   TestAll/kubernetes.state_node
    --- PASS: TestAll/kubernetes.state_node (3.32s)
    === RUN   TestAll/kubernetes.state_node/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/docs.plain (0.90s)
    === RUN   TestAll/kubernetes.state_node/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/ksm.v2.10.0.plain (0.84s)
    === RUN   TestAll/kubernetes.state_node/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/ksm.v2.8.2.plain (0.80s)
    === RUN   TestAll/kubernetes.state_node/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/ksm.v2.9.2.plain (0.77s)
    === RUN   TestAll/kubernetes.state_persistentvolume
    --- PASS: TestAll/kubernetes.state_persistentvolume (3.46s)
    === RUN   TestAll/kubernetes.state_persistentvolume/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/docs.plain (0.75s)
    === RUN   TestAll/kubernetes.state_persistentvolume/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/ksm.v2.10.0.plain (0.84s)
    === RUN   TestAll/kubernetes.state_persistentvolume/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/ksm.v2.8.2.plain (0.85s)
    === RUN   TestAll/kubernetes.state_persistentvolume/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/ksm.v2.9.2.plain (1.02s)
    === RUN   TestAll/kubernetes.state_persistentvolumeclaim
    --- PASS: TestAll/kubernetes.state_persistentvolumeclaim (3.32s)
    === RUN   TestAll/kubernetes.state_persistentvolumeclaim/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolumeclaim/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolumeclaim/docs.plain (0.95s)
    === RUN   TestAll/kubernetes.state_persistentvolumeclaim/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolumeclaim/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolumeclaim/ksm.v2.10.0.plain (0.82s)
    === RUN   TestAll/kubernetes.state_persistentvolumeclaim/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolumeclaim/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolumeclaim/ksm.v2.8.2.plain (0.75s)
    === RUN   TestAll/kubernetes.state_persistentvolumeclaim/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolumeclaim/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolumeclaim/ksm.v2.9.2.plain (0.80s)
    === RUN   TestAll/kubernetes.state_pod
    --- PASS: TestAll/kubernetes.state_pod (3.22s)
    === RUN   TestAll/kubernetes.state_pod/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_pod/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_pod/docs.plain (0.81s)
    === RUN   TestAll/kubernetes.state_pod/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_pod/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_pod/ksm.v2.10.0.plain (0.84s)
    === RUN   TestAll/kubernetes.state_pod/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_pod/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_pod/ksm.v2.8.2.plain (0.76s)
    === RUN   TestAll/kubernetes.state_pod/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_pod/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_pod/ksm.v2.9.2.plain (0.81s)
    === RUN   TestAll/kubernetes.state_replicaset
    --- PASS: TestAll/kubernetes.state_replicaset (3.52s)
    === RUN   TestAll/kubernetes.state_replicaset/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_replicaset/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_replicaset/docs.plain (0.87s)
    === RUN   TestAll/kubernetes.state_replicaset/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_replicaset/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_replicaset/ksm.v2.10.0.plain (0.95s)
    === RUN   TestAll/kubernetes.state_replicaset/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_replicaset/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_replicaset/ksm.v2.8.2.plain (0.86s)
    === RUN   TestAll/kubernetes.state_replicaset/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_replicaset/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_replicaset/ksm.v2.9.2.plain (0.84s)
    === RUN   TestAll/kubernetes.state_resourcequota
    --- PASS: TestAll/kubernetes.state_resourcequota (3.16s)
    === RUN   TestAll/kubernetes.state_resourcequota/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_resourcequota/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_resourcequota/docs.plain (0.74s)
    === RUN   TestAll/kubernetes.state_resourcequota/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_resourcequota/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_resourcequota/ksm.v2.10.0.plain (0.82s)
    === RUN   TestAll/kubernetes.state_resourcequota/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_resourcequota/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_resourcequota/ksm.v2.8.2.plain (0.81s)
    === RUN   TestAll/kubernetes.state_resourcequota/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_resourcequota/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_resourcequota/ksm.v2.9.2.plain (0.79s)
    === RUN   TestAll/kubernetes.state_service
    --- PASS: TestAll/kubernetes.state_service (3.56s)
    === RUN   TestAll/kubernetes.state_service/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_service/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_service/docs.plain (0.98s)
    === RUN   TestAll/kubernetes.state_service/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_service/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_service/ksm.v2.10.0.plain (0.77s)
    === RUN   TestAll/kubernetes.state_service/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_service/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_service/ksm.v2.8.2.plain (0.87s)
    === RUN   TestAll/kubernetes.state_service/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_service/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_service/ksm.v2.9.2.plain (0.93s)
    === RUN   TestAll/kubernetes.state_statefulset
    --- PASS: TestAll/kubernetes.state_statefulset (3.15s)
    === RUN   TestAll/kubernetes.state_statefulset/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_statefulset/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_statefulset/docs.plain (0.78s)
    === RUN   TestAll/kubernetes.state_statefulset/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_statefulset/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_statefulset/ksm.v2.10.0.plain (0.76s)
    === RUN   TestAll/kubernetes.state_statefulset/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_statefulset/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_statefulset/ksm.v2.8.2.plain (0.91s)
    === RUN   TestAll/kubernetes.state_statefulset/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_statefulset/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_statefulset/ksm.v2.9.2.plain (0.71s)
    === RUN   TestAll/kubernetes.state_storageclass
    --- PASS: TestAll/kubernetes.state_storageclass (2.90s)
    === RUN   TestAll/kubernetes.state_storageclass/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_storageclass/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_storageclass/docs.plain (0.76s)
    === RUN   TestAll/kubernetes.state_storageclass/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_storageclass/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_storageclass/ksm.v2.10.0.plain (0.69s)
    === RUN   TestAll/kubernetes.state_storageclass/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_storageclass/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_storageclass/ksm.v2.8.2.plain (0.74s)
    === RUN   TestAll/kubernetes.state_storageclass/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_storageclass/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_storageclass/ksm.v2.9.2.plain (0.70s)
    === RUN   TestAll/openmetrics.collector
    === RUN   TestAll/openmetrics.collector/docs.plain
        testdata.go:238: Testing ../../../module/openmetrics/collector/_meta/testdata/docs.plain file
    coverage: [no statements]
    panic: test timed out after 10m0s
    running tests:
    	TestAll (10m0s)
    	TestAll/openmetrics.collector (8m52s)
    	TestAll/openmetrics.collector/docs.plain (8m52s)
    
    goroutine 1161 [running]:
    testing.(*M).startAlarm.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 10 minutes]:
    testing.(*T).Run(0xc000491520, {0x3a7751a?, 0x14ff4e5?}, 0x3c032f0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x5684500?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc000491520, 0xc0005bfc80)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc000194d20?, {0x55b9d90, 0x1, 0x1}, {0xc000503408?, 0x100c000503380?, 0x5682ea0?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc000194d20)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:78 +0x1c5
    
    goroutine 35 [chan receive]:
    k8s.io/klog/v2.(*loggingT).flushDaemon(0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/k8s.io/klog/[email protected]/klog.go:1181 +0x6a
    created by k8s.io/klog/v2.init.0
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/k8s.io/klog/[email protected]/klog.go:420 +0xf6
    
    goroutine 20 [chan receive, 8 minutes]:
    testing.(*T).Run(0xc0004916c0, {0xc004387ba8?, 0xc0000a2f40?}, 0xc00438a4b0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/mb/testing/data.TestAll(0xa?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/data/data_test.go:44 +0x95
    testing.tRunner(0xc0004916c0, 0x3c032f0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 1431 [chan receive, 8 minutes]:
    testing.(*T).Run(0xc000197a00, {0xc0012cb5b5?, 0x0?}, 0xc002058d00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig(0xc000197a00, {0xc000551a10, 0xb}, {0xc000551a1c, 0x9}, {{0x3a88c2c, 0xe}, {0x3a88c2c, 0xe}, {0x3a73d04, ...}, ...}, ...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:197 +0x656
    github.com/elastic/beats/v7/metricbeat/mb/testing/data.TestAll.func1(0x18b6101?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/data/data_test.go:51 +0x10d
    testing.tRunner(0xc000197a00, 0xc00438a4b0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 1432 [runnable]:
    github.com/pkg/errors.callers()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/stack.go:167 +0x56
    github.com/pkg/errors.New(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/errors.go:105
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc0003b0000)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9eb
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc000652000?, 0xc002a194c0?, 0x5682ea0?}, {0x3abf75a, 0x1c}, {0x0?, 0x1?, 0x5682ea0?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc0043ee738)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x60d
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.(*MetricSet).Fetch(0xc000207980, {0x3fefcf8, 0xc004e0cb40})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector.go:139 +0x8b
    github.com/elastic/beats/v7/metricbeat/mb/testing.ReportingFetchV2Error({0x7f09042442c0, 0xc000207980})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/modules.go:237 +0x53
    github.com/elastic/beats/v7/metricbeat/mb/testing.runTest(0xc000197d40, {0xc0012cb580, 0x3f}, {0xc000551a10, 0xb}, {0xc000551a1c, 0x9}, {{0xc0012cb4c0, 0x34}, {0xc0012cb480, ...}, ...})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:256 +0x665
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig.func1(0x18b6101?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:198 +0x7e
    testing.tRunner(0xc000197d40, 0xc002058d00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 1433 [IO wait, 8 minutes]:
    internal/poll.runtime_pollWait(0x7f090c2c43b0, 0x72)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/runtime/netpoll.go:306 +0x89
    internal/poll.(*pollDesc).wait(0xc001321900?, 0x138c185?, 0x0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:84 +0x32
    internal/poll.(*pollDesc).waitRead(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:89
    internal/poll.(*FD).Accept(0xc001321900)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_unix.go:614 +0x2bd
    net.(*netFD).accept(0xc001321900)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/fd_unix.go:172 +0x35
    net.(*TCPListener).accept(0xc0043ee2d0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock_posix.go:148 +0x25
    net.(*TCPListener).Accept(0xc0043ee2d0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock.go:297 +0x3d
    net/http.(*Server).Serve(0xc0030441e0, {0x4004eb0, 0xc0043ee2d0})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/server.go:3059 +0x385
    net/http/httptest.(*Server).goServe.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:310 +0x6a
    created by net/http/httptest.(*Server).goServe
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:308 +0x6a
     
    

Build&Test / metricbeat-unitTest / TestData – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
    === RUN   TestData/docs.plain
        testdata.go:238: Testing _meta/testdata/docs.plain file
    	github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector	coverage: 13.1% of statements
    panic: test timed out after 10m0s
    running tests:
    	TestData (10m0s)
    	TestData/docs.plain (10m0s)
    
    goroutine 51 [running]:
    testing.(*M).startAlarm.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000314680, {0x11532f6?, 0x908ee5?}, 0x11b8388)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x1829560?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc000314680, 0xc0002efc80)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc00026d4a0?, {0x17c9740, 0x4, 0x4}, {0xc00025c968?, 0x100c0002efd08?, 0x1828900?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc00026d4a0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:84 +0x1c5
    
    goroutine 19 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000314820, {0xc00014f36f?, 0x0?}, 0xc000312e00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig(0xc000314820, {0x1156568, 0xb}, {0x115444e, 0x9}, {{0x1158605, 0xe}, {0x1158605, 0xe}, {0x114f9de, ...}, ...}, ...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:197 +0x656
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFiles(0xc000314820, {0x1156568, 0xb}, {0x115444e, 0x9})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:157 +0xf2
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.TestData(0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector_test.go:41 +0x31
    testing.tRunner(0xc000314820, 0x11b8388)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 20 [runnable]:
    github.com/pkg/errors.callers()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/stack.go:167 +0x56
    github.com/pkg/errors.New(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/errors.go:105
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc00034c410)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9eb
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc00032a600?, 0xc0001bdb40?, 0x1828900?}, {0x1165b0d, 0x1c}, {0x0?, 0x1?, 0x1828900?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc0003266c0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x60d
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.(*MetricSet).Fetch(0xc00019ca80, {0x128d6d8, 0xc00034f470})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector.go:139 +0xe5
    github.com/elastic/beats/v7/metricbeat/mb/testing.ReportingFetchV2Error({0x7f7e06ad27e8, 0xc00019ca80})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/modules.go:237 +0x53
    github.com/elastic/beats/v7/metricbeat/mb/testing.runTest(0xc000314b60, {0xc00014f360, 0x19}, {0x1156568, 0xb}, {0x115444e, 0x9}, {{0x1158605, 0xe}, {0x1158605, ...}, ...})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:256 +0x665
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig.func1(0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:198 +0x7e
    testing.tRunner(0xc000314b60, 0xc000312e00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 21 [IO wait, 9 minutes]:
    internal/poll.runtime_pollWait(0x7f7e06ab9b18, 0x72)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/runtime/netpoll.go:306 +0x89
    internal/poll.(*pollDesc).wait(0xc00026f080?, 0x8?, 0x0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:84 +0x32
    internal/poll.(*pollDesc).waitRead(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:89
    internal/poll.(*FD).Accept(0xc00026f080)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_unix.go:614 +0x2bd
    net.(*netFD).accept(0xc00026f080)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/fd_unix.go:172 +0x35
    net.(*TCPListener).accept(0xc000326150)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock_posix.go:148 +0x25
    net.(*TCPListener).Accept(0xc000326150)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock.go:297 +0x3d
    net/http.(*Server).Serve(0xc0002581e0, {0x1290c40, 0xc000326150})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/server.go:3059 +0x385
    net/http/httptest.(*Server).goServe.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:310 +0x6a
    created by net/http/httptest.(*Server).goServe
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:308 +0x6a
     
    

Build&Test / metricbeat-unitTest / TestData/docs.plain – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData/docs.plain
        testdata.go:238: Testing _meta/testdata/docs.plain file
    	github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector	coverage: 13.1% of statements
    panic: test timed out after 10m0s
    running tests:
    	TestData (10m0s)
    	TestData/docs.plain (10m0s)
    
    goroutine 51 [running]:
    testing.(*M).startAlarm.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000314680, {0x11532f6?, 0x908ee5?}, 0x11b8388)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x1829560?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc000314680, 0xc0002efc80)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc00026d4a0?, {0x17c9740, 0x4, 0x4}, {0xc00025c968?, 0x100c0002efd08?, 0x1828900?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc00026d4a0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:84 +0x1c5
    
    goroutine 19 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000314820, {0xc00014f36f?, 0x0?}, 0xc000312e00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig(0xc000314820, {0x1156568, 0xb}, {0x115444e, 0x9}, {{0x1158605, 0xe}, {0x1158605, 0xe}, {0x114f9de, ...}, ...}, ...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:197 +0x656
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFiles(0xc000314820, {0x1156568, 0xb}, {0x115444e, 0x9})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:157 +0xf2
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.TestData(0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector_test.go:41 +0x31
    testing.tRunner(0xc000314820, 0x11b8388)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 20 [runnable]:
    github.com/pkg/errors.callers()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/stack.go:167 +0x56
    github.com/pkg/errors.New(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/pkg/[email protected]/errors.go:105
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc00034c410)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9eb
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc00032a600?, 0xc0001bdb40?, 0x1828900?}, {0x1165b0d, 0x1c}, {0x0?, 0x1?, 0x1828900?})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc0003266c0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x60d
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.(*MetricSet).Fetch(0xc00019ca80, {0x128d6d8, 0xc00034f470})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector.go:139 +0xe5
    github.com/elastic/beats/v7/metricbeat/mb/testing.ReportingFetchV2Error({0x7f7e06ad27e8, 0xc00019ca80})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/modules.go:237 +0x53
    github.com/elastic/beats/v7/metricbeat/mb/testing.runTest(0xc000314b60, {0xc00014f360, 0x19}, {0x1156568, 0xb}, {0x115444e, 0x9}, {{0x1158605, 0xe}, {0x1158605, ...}, ...})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:256 +0x665
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig.func1(0x0?)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:198 +0x7e
    testing.tRunner(0xc000314b60, 0xc000312e00)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 21 [IO wait, 9 minutes]:
    internal/poll.runtime_pollWait(0x7f7e06ab9b18, 0x72)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/runtime/netpoll.go:306 +0x89
    internal/poll.(*pollDesc).wait(0xc00026f080?, 0x8?, 0x0)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:84 +0x32
    internal/poll.(*pollDesc).waitRead(...)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_poll_runtime.go:89
    internal/poll.(*FD).Accept(0xc00026f080)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/internal/poll/fd_unix.go:614 +0x2bd
    net.(*netFD).accept(0xc00026f080)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/fd_unix.go:172 +0x35
    net.(*TCPListener).accept(0xc000326150)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock_posix.go:148 +0x25
    net.(*TCPListener).Accept(0xc000326150)
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/tcpsock.go:297 +0x3d
    net/http.(*Server).Serve(0xc0002581e0, {0x1290c40, 0xc000326150})
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/server.go:3059 +0x385
    net/http/httptest.(*Server).goServe.func1()
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:310 +0x6a
    created by net/http/httptest.(*Server).goServe
    	/var/lib/jenkins/workspace/PR-37357-3-2006b868-5d78-4b34-8fd1-5e01834254c6/.gvm/versions/go1.20.11.linux.amd64/src/net/http/httptest/server.go:308 +0x6a
     
    

Build&Test / metricbeat-windows-2016-windows-2016 / TestOpenMetrics – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestOpenMetrics
    === RUN   TestOpenMetrics/Simple_field_map
    	github.com/elastic/beats/v7/metricbeat/helper/openmetrics	coverage: 10.8% of statements
    panic: test timed out after 10m0s
    running tests:
    	TestOpenMetrics (10m0s)
    	TestOpenMetrics/Simple_field_map (10m0s)
    
    goroutine 50 [running]:
    testing.(*M).startAlarm.func1()
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc0002409c0, {0x1972bde?, 0x11f14f3?}, 0x19cdc48)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x1f20320?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc0002409c0, 0xc0002dfc80)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc0002199a0?, {0x1f0b2e0, 0x2, 0x2}, {0x20?, 0x100c0002e0628?, 0x1f1f8a0?})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc0002199a0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:80 +0x1c5
    
    goroutine 6 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000240b60, {0x197391e?, 0x196ad6d?}, 0xc0002383c0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics(0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:573 +0x4831
    testing.tRunner(0xc000240b60, 0x19cdc48)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 7 [runnable]:
    github.com/pkg/errors.New(...)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/pkg/mod/github.com/pkg/[email protected]/errors.go:103
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc00021d450)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9ff
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc0000b6800?, 0xc0000d9b80?, 0x1f1f8a0?}, {0x197f4a7, 0x1c}, {0x0?, 0xc000083c78?, 0x1f1f8a0?})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc000238240)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x71b
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetProcessedMetrics(0x0?, 0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:250 +0x65
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).ReportProcessedMetrics(0x1ecf540?, 0xc0002ea090, {0x1a8a930, 0xc0002ea3c0})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:264 +0x7e
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics.func1(0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:575 +0x76
    testing.tRunner(0xc000240ea0, 0xc0002383c0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1629 +0x3ea
     
    

Build&Test / metricbeat-windows-2016-windows-2016 / TestOpenMetrics/Simple_field_map – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestOpenMetrics/Simple_field_map
    	github.com/elastic/beats/v7/metricbeat/helper/openmetrics	coverage: 10.8% of statements
    panic: test timed out after 10m0s
    running tests:
    	TestOpenMetrics (10m0s)
    	TestOpenMetrics/Simple_field_map (10m0s)
    
    goroutine 50 [running]:
    testing.(*M).startAlarm.func1()
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc0002409c0, {0x1972bde?, 0x11f14f3?}, 0x19cdc48)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x1f20320?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc0002409c0, 0xc0002dfc80)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc0002199a0?, {0x1f0b2e0, 0x2, 0x2}, {0x20?, 0x100c0002e0628?, 0x1f1f8a0?})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc0002199a0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:80 +0x1c5
    
    goroutine 6 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000240b60, {0x197391e?, 0x196ad6d?}, 0xc0002383c0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics(0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:573 +0x4831
    testing.tRunner(0xc000240b60, 0x19cdc48)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 7 [runnable]:
    github.com/pkg/errors.New(...)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/pkg/mod/github.com/pkg/[email protected]/errors.go:103
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc00021d450)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9ff
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc0000b6800?, 0xc0000d9b80?, 0x1f1f8a0?}, {0x197f4a7, 0x1c}, {0x0?, 0xc000083c78?, 0x1f1f8a0?})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc000238240)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x71b
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetProcessedMetrics(0x0?, 0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:250 +0x65
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).ReportProcessedMetrics(0x1ecf540?, 0xc0002ea090, {0x1a8a930, 0xc0002ea3c0})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:264 +0x7e
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.TestOpenMetrics.func1(0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics_test.go:575 +0x76
    testing.tRunner(0xc000240ea0, 0xc0002383c0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1629 +0x3ea
     
    

Build&Test / metricbeat-windows-2016-windows-2016 / TestData/docs.plain – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData/docs.plain
        testdata.go:238: Testing _meta\testdata\docs.plain file
    	github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector	coverage: 13.1% of statements
    panic: test timed out after 10m0s
    running tests:
    	TestData (10m0s)
    	TestData/docs.plain (10m0s)
    
    goroutine 21 [running]:
    testing.(*M).startAlarm.func1()
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2241 +0x3c5
    created by time.goFunc
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/time/sleep.go:176 +0x32
    
    goroutine 1 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc0002389c0, {0xa6c203?, 0x231533?}, 0xacfd98)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1630 +0x405
    testing.runTests.func1(0x1092940?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2036 +0x45
    testing.tRunner(0xc0002389c0, 0xc0002dfc80)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    testing.runTests(0xc00021b860?, {0x10818c0, 0x4, 0x4}, {0xc00025d460?, 0x100c0002dfd08?, 0x1091da0?})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:2034 +0x489
    testing.(*M).Run(0xc00021b860)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1906 +0x63a
    main.main()
    	_testmain.go:84 +0x1c5
    
    goroutine 6 [chan receive, 9 minutes]:
    testing.(*T).Run(0xc000238b60, {0xc00003724f?, 0x0?}, 0xc0002e2500)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1630 +0x405
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig(0xc000238b60, {0xa6f24d, 0xb}, {0xa6d2bb, 0x9}, {{0xa71556, 0xe}, {0xa71556, 0xe}, {0xa68d83, ...}, ...}, ...)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:197 +0x665
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFiles(0xc000238b60, {0xa6f24d, 0xb}, {0xa6d2bb, 0x9})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:157 +0xf2
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.TestData(0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector_test.go:41 +0x31
    testing.tRunner(0xc000238b60, 0xacfd98)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 7 [runnable]:
    github.com/pkg/errors.callers()
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/pkg/mod/github.com/pkg/[email protected]/stack.go:167 +0x56
    github.com/pkg/errors.New(...)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/pkg/mod/github.com/pkg/[email protected]/errors.go:105
    github.com/prometheus/prometheus/pkg/textparse.(*OpenMetricsParser).Next(0xc0001120d0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/pkg/mod/github.com/prometheus/[email protected]/pkg/textparse/openmetricsparse.go:242 +0x9eb
    github.com/elastic/beats/v7/metricbeat/helper/prometheus.ParseMetricFamilies({0xc00041c000?, 0xc00040a040?, 0x1091da0?}, {0xa7f1a4, 0x1c}, {0x0?, 0x1?, 0x1091da0?})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/prometheus/textparse.go:499 +0x2c3
    github.com/elastic/beats/v7/metricbeat/helper/openmetrics.(*openmetrics).GetFamilies(0xc00023a8a0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/helper/openmetrics/openmetrics.go:110 +0x60d
    github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector.(*MetricSet).Fetch(0xc000002a80, {0xb9b710, 0xc0002f3b60})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/module/openmetrics/collector/collector.go:139 +0xe5
    github.com/elastic/beats/v7/metricbeat/mb/testing.ReportingFetchV2Error({0x1f74a933b28, 0xc000002a80})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/mb/testing/modules.go:237 +0x53
    github.com/elastic/beats/v7/metricbeat/mb/testing.runTest(0xc000238ea0, {0xc000037240, 0x19}, {0xa6f24d, 0xb}, {0xa6d2bb, 0x9}, {{0xa71556, 0xe}, {0xa71556, ...}, ...})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:256 +0x665
    github.com/elastic/beats/v7/metricbeat/mb/testing.TestDataFilesWithConfig.func1(0x0?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/src/github.com/elastic/beats/metricbeat/mb/testing/testdata.go:198 +0x7e
    testing.tRunner(0xc000238ea0, 0xc0002e2500)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/testing/testing.go:1629 +0x3ea
    
    goroutine 8 [IO wait, 9 minutes]:
    internal/poll.runtime_pollWait(0x1f74a931d58, 0x72)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/runtime/netpoll.go:306 +0x89
    internal/poll.(*pollDesc).wait(0x1e88c0?, 0x10aa520?, 0x0)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/internal/poll/fd_poll_runtime.go:84 +0x32
    internal/poll.execIO(0xc0002ec518, 0xc000089c00)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/internal/poll/fd_windows.go:175 +0xf7
    internal/poll.(*FD).acceptOne(0xc0002ec500, 0x1f0, {0xc000314000?, 0x400000?, 0xc000089c90?}, 0x1e2a45?)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/internal/poll/fd_windows.go:936 +0x6d
    internal/poll.(*FD).Accept(0xc0002ec500, 0xc000089dd8)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/internal/poll/fd_windows.go:970 +0x1d6
    net.(*netFD).accept(0xc0002ec500)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/net/fd_windows.go:139 +0x65
    net.(*TCPListener).accept(0xc00023a2e8)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/net/tcpsock_posix.go:148 +0x25
    net.(*TCPListener).Accept(0xc00023a2e8)
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/net/tcpsock.go:297 +0x3d
    net/http.(*Server).Serve(0xc0002161e0, {0xb9e350, 0xc00023a2e8})
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/net/http/server.go:3059 +0x385
    net/http/httptest.(*Server).goServe.func1()
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/net/http/httptest/server.go:310 +0x6a
    created by net/http/httptest.(*Server).goServe
    	C:/Users/jenkins/workspace/PR-37357-3-cf956b1f-d8ec-4bfe-ad08-51552e1e8a25/.gvm/versions/go1.20.11.windows.amd64/src/net/http/httptest/server.go:308 +0x6a
     
    

Steps errors 10

Expand to view the steps failures

metricbeat-unitTest - mage build unitTest
  • Took 15 min 41 sec . View more details here
  • Description: mage build unitTest
metricbeat-unitTest - mage build unitTest
  • Took 12 min 9 sec . View more details here
  • Description: mage build unitTest
metricbeat-unitTest - mage build unitTest
  • Took 12 min 3 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 16 min 0 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 12 min 20 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 12 min 49 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2016-windows-2016 - mage build unitTest
  • Took 15 min 15 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2016-windows-2016 - mage build unitTest
  • Took 12 min 36 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2016-windows-2016 - mage build unitTest
  • Took 12 min 36 sec . View more details here
  • Description: mage build unitTest
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 15

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Build&Test / metricbeat-unitTest / TestOpenMetrics – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
  • Name: Build&Test / metricbeat-unitTest / TestOpenMetrics/Simple_field_map – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
  • Name: Build&Test / metricbeat-unitTest / TestAll/openmetrics.collector – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestAll/openmetrics.collector/docs.plain – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestAll – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestData – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
  • Name: Build&Test / metricbeat-unitTest / TestData/docs.plain – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
  • Name: Build&Test / metricbeat-windows-2016-windows-2016 / TestOpenMetrics – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
  • Name: Build&Test / metricbeat-windows-2016-windows-2016 / TestOpenMetrics/Simple_field_map – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
  • Name: Build&Test / metricbeat-windows-2016-windows-2016 / TestData/docs.plain – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
  • Name: Build&Test / metricbeat-windows-2016-windows-2016 / TestData – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
  • Name: Build&Test / metricbeat-windows-2022-windows-2022 / TestOpenMetrics – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
  • Name: Build&Test / metricbeat-windows-2022-windows-2022 / TestOpenMetrics/Simple_field_map – github.com/elastic/beats/v7/metricbeat/helper/openmetrics
  • Name: Build&Test / metricbeat-windows-2022-windows-2022 / TestData – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector
  • Name: Build&Test / metricbeat-windows-2022-windows-2022 / TestData/docs.plain – github.com/elastic/beats/v7/metricbeat/module/openmetrics/collector

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@gsantoro gsantoro disabled auto-merge December 11, 2023 14:30
@gsantoro
Copy link
Contributor Author

gsantoro commented Dec 11, 2023

I'm sorry I created this PR to merge directly from a feature branch in elastic/beats instead of from my fork.

Closed in favour of #37383

@gsantoro gsantoro closed this Dec 11, 2023
@gsantoro gsantoro deleted the feature/ksm-custom-resource branch December 11, 2023 14:31
@gsantoro gsantoro mentioned this pull request Dec 11, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.11.0 Automated backport with mergify bug Team:Elastic-Agent Label for the Agent team Team:obs-ds-hosted-services Label for the Observability Hosted Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing datasets that are relying on kube-state-metrics in case custom resource state metrics are enabled
4 participants