Skip to content

Add regex tests to prometheus collector tests#21228

Closed
dagwieers wants to merge 2 commits intoelastic:masterfrom
dagwieers:prometheus-collector-regex-tests
Closed

Add regex tests to prometheus collector tests#21228
dagwieers wants to merge 2 commits intoelastic:masterfrom
dagwieers:prometheus-collector-regex-tests

Conversation

@dagwieers
Copy link
Copy Markdown

  • Enhancement

What does this PR do?

It adds missing regex-based tests for the prometheus collector module.

Why is it important?

This relates to #16568 (comment)

We have issues with excluding based on regex and this validates that it is working in the code as it should.
We don't know why the metricbeat RPM packages from Elastic are failing to work as documented, but at least here it works :-)

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.

How to test this PR locally

go test

Related issues

Use cases

N/A

Screenshots

N/A

Logs

N/A

@elasticmachine
Copy link
Copy Markdown
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

1 similar comment
@elasticmachine
Copy link
Copy Markdown
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 22, 2020
@cla-checker-service
Copy link
Copy Markdown

cla-checker-service Bot commented Sep 22, 2020

❌ Author of the following commits did not sign a Contributor Agreement:
c25f7fd, 9439ec2

Please, read and sign the above mentioned agreement if you want to contribute to this project

@elasticmachine
Copy link
Copy Markdown
Contributor

❕ Build Aborted

The PR is not allowed to run in the CI yet

Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21228 opened]

  • Reason: The PR is not allowed to run in the CI yet

  • Start Time: 2020-09-22T16:29:17.328+0000

  • Duration: 4 min 47 sec

  • Commit: c25f7fd

Steps errors

Expand to view the steps failures

  • Name: Error signal
    • Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permission

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T16:32:50.641+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-22T16:32:55.181Z] Stage "Filebeat x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:55.199Z] Stage "Filebeat Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.220Z] Stage "Filebeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.238Z] Stage "Filebeat Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.257Z] Stage "Filebeat x-pack Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.280Z] Stage "Heartbeat oss" skipped due to earlier failure(s)
[2020-09-22T16:32:55.301Z] Stage "Heartbeat Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.328Z] Stage "Heartbeat Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.349Z] Stage "Auditbeat oss Linux" skipped due to earlier failure(s)
[2020-09-22T16:32:55.373Z] Stage "Auditbeat crosscompile" skipped due to earlier failure(s)
[2020-09-22T16:32:55.394Z] Stage "Auditbeat oss Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.417Z] Stage "Auditbeat oss Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.440Z] Stage "Auditbeat x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:55.462Z] Stage "Auditbeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.484Z] Stage "Auditbeat x-pack Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.504Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-09-22T16:32:55.516Z] Stage "Libbeat x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:55.535Z] Stage "Metricbeat OSS Unit tests" skipped due to earlier failure(s)
[2020-09-22T16:32:55.556Z] Stage "Metricbeat OSS Go Integration tests" skipped due to earlier failure(s)
[2020-09-22T16:32:55.577Z] Stage "Metricbeat OSS Python Integration tests" skipped due to earlier failure(s)
[2020-09-22T16:32:55.596Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:55.608Z] Stage "Metricbeat crosscompile" skipped due to earlier failure(s)
[2020-09-22T16:32:55.629Z] Stage "Metricbeat Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.649Z] Stage "Metricbeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.669Z] Stage "Metricbeat Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.691Z] Stage "Metricbeat x-pack Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.716Z] Stage "Packetbeat Linux" skipped due to earlier failure(s)
[2020-09-22T16:32:55.737Z] Stage "Packetbeat Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.757Z] Stage "Packetbeat Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.779Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-09-22T16:32:55.799Z] Stage "Winlogbeat oss" skipped due to earlier failure(s)
[2020-09-22T16:32:55.818Z] Stage "Winlogbeat Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.839Z] Stage "Winlogbeat Windows x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:55.859Z] Stage "Functionbeat x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:55.879Z] Stage "Functionbeat Mac OS X x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:55.901Z] Stage "Functionbeat Windows" skipped due to earlier failure(s)
[2020-09-22T16:32:55.921Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-09-22T16:32:55.942Z] Stage "Generators" skipped due to earlier failure(s)
[2020-09-22T16:32:55.955Z] Stage "Generators Metricbeat Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.976Z] Stage "Generators Beat Mac OS X" skipped due to earlier failure(s)
[2020-09-22T16:32:55.994Z] Stage "Kubernetes" skipped due to earlier failure(s)
[2020-09-22T16:32:56.170Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-09-22T16:32:56.186Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:56.201Z] Stage "Generators" skipped due to earlier failure(s)
[2020-09-22T16:32:58.397Z] Failed in branch Elastic Agent x-pack
[2020-09-22T16:32:58.412Z] Failed in branch Elastic Agent x-pack Windows
[2020-09-22T16:32:58.425Z] Failed in branch Elastic Agent Mac OS X
[2020-09-22T16:32:58.440Z] Failed in branch Filebeat oss
[2020-09-22T16:32:58.456Z] Failed in branch Filebeat x-pack
[2020-09-22T16:32:58.472Z] Failed in branch Filebeat Mac OS X
[2020-09-22T16:32:58.487Z] Failed in branch Filebeat x-pack Mac OS X
[2020-09-22T16:32:58.501Z] Failed in branch Filebeat Windows
[2020-09-22T16:32:58.514Z] Failed in branch Filebeat x-pack Windows
[2020-09-22T16:32:58.526Z] Failed in branch Heartbeat oss
[2020-09-22T16:32:58.539Z] Failed in branch Heartbeat Mac OS X
[2020-09-22T16:32:58.554Z] Failed in branch Heartbeat Windows
[2020-09-22T16:32:58.568Z] Failed in branch Auditbeat oss Linux
[2020-09-22T16:32:58.585Z] Failed in branch Auditbeat crosscompile
[2020-09-22T16:32:58.599Z] Failed in branch Auditbeat oss Mac OS X
[2020-09-22T16:32:58.616Z] Failed in branch Auditbeat oss Windows
[2020-09-22T16:32:58.636Z] Failed in branch Auditbeat x-pack
[2020-09-22T16:32:58.654Z] Failed in branch Auditbeat x-pack Mac OS X
[2020-09-22T16:32:58.672Z] Failed in branch Auditbeat x-pack Windows
[2020-09-22T16:32:58.690Z] Failed in branch Libbeat x-pack
[2020-09-22T16:32:58.705Z] Failed in branch Metricbeat OSS Unit tests
[2020-09-22T16:32:58.721Z] Failed in branch Metricbeat OSS Go Integration tests
[2020-09-22T16:32:58.736Z] Failed in branch Metricbeat OSS Python Integration tests
[2020-09-22T16:32:58.753Z] Failed in branch Metricbeat crosscompile
[2020-09-22T16:32:58.768Z] Failed in branch Metricbeat Mac OS X
[2020-09-22T16:32:58.783Z] Failed in branch Metricbeat x-pack Mac OS X
[2020-09-22T16:32:58.800Z] Failed in branch Metricbeat Windows
[2020-09-22T16:32:58.817Z] Failed in branch Metricbeat x-pack Windows
[2020-09-22T16:32:58.837Z] Failed in branch Packetbeat Linux
[2020-09-22T16:32:58.863Z] Failed in branch Packetbeat Mac OS X
[2020-09-22T16:32:58.882Z] Failed in branch Packetbeat Windows
[2020-09-22T16:32:58.906Z] Failed in branch dockerlogbeat
[2020-09-22T16:32:58.924Z] Failed in branch Winlogbeat oss
[2020-09-22T16:32:58.940Z] Failed in branch Winlogbeat Windows
[2020-09-22T16:32:58.958Z] Failed in branch Winlogbeat Windows x-pack
[2020-09-22T16:32:58.973Z] Failed in branch Functionbeat x-pack
[2020-09-22T16:32:58.988Z] Failed in branch Functionbeat Mac OS X x-pack
[2020-09-22T16:32:59.002Z] Failed in branch Functionbeat Windows
[2020-09-22T16:32:59.018Z] Failed in branch Journalbeat
[2020-09-22T16:32:59.034Z] Failed in branch Generators Metricbeat Mac OS X
[2020-09-22T16:32:59.050Z] Failed in branch Generators Beat Mac OS X
[2020-09-22T16:32:59.066Z] Failed in branch Kubernetes
[2020-09-22T16:32:59.398Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-09-22T16:32:59.417Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-09-22T16:32:59.431Z] Stage "Generators" skipped due to earlier failure(s)
[2020-09-22T16:33:00.377Z] Failed in branch Metricbeat x-pack
[2020-09-22T16:33:00.394Z] Failed in branch Generators
[2020-09-22T16:33:00.457Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-09-22T16:33:00.715Z] Failed in branch Libbeat
[2020-09-22T16:33:03.526Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21228
[2020-09-22T16:33:03.749Z] [INFO] getVaultSecret: Getting secrets
[2020-09-22T16:33:03.851Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-22T16:33:05.009Z] + chmod 755 generate-build-data.sh
[2020-09-22T16:33:05.010Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21228/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21228/runs/1 ABORTED 227404
[2020-09-22T16:33:05.010Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21228/runs/1/steps/?limit=10000 -o steps-info.json
[2020-09-22T16:33:05.561Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21228/runs/1/tests/?status=FAILED -o tests-errors.json

@andresrc andresrc added the Team:Platforms Label for the Integrations - Platforms team label Sep 22, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 22, 2020
@dagwieers dagwieers closed this Sep 22, 2020
@dagwieers dagwieers reopened this Oct 12, 2020
@dagwieers dagwieers closed this Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Platforms Label for the Integrations - Platforms team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants