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

Cherry-pick #17938 to 7.x: Instrument beat pipeline #18171

Merged
merged 3 commits into from
May 5, 2020

Conversation

jalvz
Copy link
Contributor

@jalvz jalvz commented May 4, 2020

Backports the following commits to 7.x:

This allows beat users to instrument the publishing pipeline by setting ELASTIC_APM_ACTIVE=true in the environment.

Co-authored-by: Gil Raphaelli <gil@elastic.co>
Co-authored-by: Andrew Wilkins <axwalk@gmail.com>
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 4, 2020
@jalvz jalvz added the backport label May 4, 2020
@jalvz jalvz changed the title [7.x] [APM] Instrument beat pipeline (#17938) Cherry-pick #17938 to 7.x: Instrument beat pipeline May 4, 2020
@jalvz jalvz added Team:apm APM Server team issues/PRs Team:Integrations Label for the Integrations team and removed needs_team Indicates that the issue/PR needs a Team:* label labels May 4, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@jalvz jalvz added release-note:dev_docs Contains a Dev Docs section [zube]: In Review labels May 4, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 4, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview stats

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 0
Passed 5668
Skipped 854
Total 6522

Steps errors

Expand to view the steps failures

  • Name: Make -C generator/_templates/metricbeat test
    • Description: make -C generator/_templates/metricbeat test

    • Result: FAILURE

    • Duration: 1 min 13 sec<

    • Start Time: 2020-05-04T14:05:52.604+0000

Log output

Expand to view the last 100 lines of log output

[2020-05-04T15:01:19.340Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-05-04T15:01:19.340Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-05-04T15:01:19.340Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-05-04T15:01:19.340Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-05-04T15:01:19.340Z] 	at java.lang.Thread.run(Thread.java:748)
[2020-05-04T15:01:19.341Z] No artifacts found that match the file pattern "**/build/TEST*.out". Configuration error?
[2020-05-04T15:01:19.836Z] + curl -sSLo codecov https://codecov.io/bash
[2020-05-04T15:01:20.121Z] + FILE=auditbeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-05-04T15:01:20.121Z] + FILE=filebeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-05-04T15:01:20.121Z] + FILE=heartbeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-05-04T15:01:20.121Z] + FILE=libbeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-05-04T15:01:20.121Z] + FILE=metricbeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-05-04T15:01:20.121Z] + FILE=packetbeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-05-04T15:01:20.121Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-05-04T15:01:20.121Z] + FILE=journalbeat/build/coverage/full.cov
[2020-05-04T15:01:20.121Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-05-04T15:01:21.990Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats
[2020-05-04T15:01:22.357Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-04T15:01:22.381Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Lint
[2020-05-04T15:01:22.732Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-05-04T15:01:22.946Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Winlogbeat-oss
[2020-05-04T15:01:23.202Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Journalbeat-oss
[2020-05-04T15:01:23.520Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-05-04T15:01:23.766Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Dockerlogbeat
[2020-05-04T15:01:23.914Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-05-04T15:01:24.061Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Heartbeat-oss
[2020-05-04T15:01:24.210Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-05-04T15:01:24.338Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-05-04T15:01:24.514Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-05-04T15:01:24.694Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-05-04T15:01:24.819Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Libbeat-x-pack
[2020-05-04T15:01:25.008Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-05-04T15:01:25.200Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Auditbeat-Linux
[2020-05-04T15:01:25.398Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Filebeat-Windows
[2020-05-04T15:01:25.602Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Packetbeat-oss
[2020-05-04T15:01:25.722Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-05-04T15:01:25.867Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-Windows
[2020-05-04T15:01:25.991Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-05-04T15:01:26.104Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Filebeat-x-pack
[2020-05-04T15:01:26.247Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Heartbeat-Windows
[2020-05-04T15:01:26.417Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Functionbeat-Windows
[2020-05-04T15:01:26.559Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Filebeat-oss
[2020-05-04T15:01:26.689Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Libbeat-oss
[2020-05-04T15:01:26.860Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-05-04T15:01:27.057Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-05-04T15:01:27.185Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-05-04T15:01:27.346Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-05-04T15:01:27.489Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Auditbeat-Windows
[2020-05-04T15:01:27.652Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-05-04T15:01:28.128Z] + cat
[2020-05-04T15:01:28.128Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-04T15:01:28.128Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-04T15:01:36.322Z] runbld>>> runbld started
[2020-05-04T15:01:36.322Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-04T15:01:36.898Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18171' in order of occurrence in the config (last value wins).
[2020-05-04T15:01:38.299Z] runbld>>> Debug logging enabled.
[2020-05-04T15:01:38.299Z] runbld>>> Storing result
[2020-05-04T15:01:38.561Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-04T15:01:38.561Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200504150138-0067C742
[2020-05-04T15:01:38.561Z] runbld>>> Adding system facts.
[2020-05-04T15:01:39.512Z] runbld>>> Adding vcs info for the latest commit:  d0e1e7916427d12a4ab8a9973a3f8d757bcf8bd7
[2020-05-04T15:01:39.773Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-04T15:01:39.773Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-04T15:01:39.773Z] Processing JUnit reports with runbld...
[2020-05-04T15:01:39.773Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-04T15:01:40.035Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-04T15:01:40.035Z] runbld>>> DURATION: 15ms
[2020-05-04T15:01:40.035Z] runbld>>> STDOUT: 40 bytes
[2020-05-04T15:01:40.035Z] runbld>>> STDERR: 49 bytes
[2020-05-04T15:01:40.035Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-04T15:01:40.035Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats
[2020-05-04T15:01:41.426Z] runbld>>> Storing build metadata: 
[2020-05-04T15:01:41.426Z] runbld>>> Adding test report.
[2020-05-04T15:01:41.426Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats
[2020-05-04T15:01:42.814Z] runbld>>> Found 78 test output files
[2020-05-04T15:01:43.076Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-05-04T15:01:43.076Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-05-04T15:01:43.076Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-05-04T15:01:44.480Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 6372 Skipped: 701
[2020-05-04T15:01:44.480Z] runbld>>> Storing result
[2020-05-04T15:01:44.480Z] runbld>>> FAILURES: 0
[2020-05-04T15:01:44.744Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-04T15:01:44.744Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200504150138-0067C742
[2020-05-04T15:01:44.744Z] runbld>>> Email notification disabled by environment variable.
[2020-05-04T15:01:44.744Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-04T15:01:51.354Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18171
[2020-05-04T15:01:52.067Z] [INFO] getVaultSecret: Getting secrets
[2020-05-04T15:01:52.360Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-04T15:01:53.744Z] + chmod 755 generate-build-data.sh
[2020-05-04T15:01:53.744Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18171/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18171/runs/3 FAILURE 5634190
[2020-05-04T15:01:54.655Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18171/runs/3/steps/?limit=10000 -o steps-info.json
[2020-05-04T15:01:55.998Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18171/runs/3/tests/?status=FAILED -o tests-errors.json
[2020-05-04T15:01:59.227Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18171/runs/3/log/ -o pipeline-log.txt

@jalvz jalvz requested a review from ycombinator May 4, 2020 13:10
Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

Backport LGTM.

@jalvz jalvz merged commit 76db4c0 into elastic:7.x May 5, 2020
@jalvz
Copy link
Contributor Author

jalvz commented May 5, 2020

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-note:dev_docs Contains a Dev Docs section Team:apm APM Server team issues/PRs Team:Integrations Label for the Integrations team [zube]: Done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants