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 #18552 to 7.x: [libbeat] Remove global loggers from plugin and mock #19203

Merged
merged 1 commit into from
Jun 16, 2020
Merged

Cherry-pick #18552 to 7.x: [libbeat] Remove global loggers from plugin and mock #19203

merged 1 commit into from
Jun 16, 2020

Conversation

kaiyan-sheng
Copy link
Contributor

@kaiyan-sheng kaiyan-sheng commented Jun 15, 2020

Cherry-pick of PR #18552 to 7.x branch. Original message:

This PR is to remove global loggers for libbeat/plugin/cli.
Please see #15699 for the meta-issue and more details.

* [libbeat] Remove global loggers from plugin/cli

(cherry picked from commit 9a1b1d0)
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 15, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 15, 2020
@kaiyan-sheng kaiyan-sheng self-assigned this Jun 15, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 15, 2020

❕ Build Aborted

Either there was a build timeout or someone aborted the build.'}

Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Start Time: 2020-06-15T22:35:52.269+0000

  • Duration: 123 min 59 sec

Test stats 🧪

Test Results
Failed 0
Passed 5703
Skipped 1020
Total 6723

Steps errors

Expand to view the steps failures

  • Name: Install docker-compose 1.21.0

    • Description: .ci/scripts/install-docker-compose.sh

    • Duration: 1 min 57 sec

    • Start Time: 2020-06-15T23:00:09.005+0000

    • log

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-06-15T23:28:31.607+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-06-16T00:38:23.135Z] + DIRECTORY=x-pack/metricbeat
[2020-06-16T00:38:23.135Z] + FAILED=0
[2020-06-16T00:38:23.135Z] ++ find x-pack/metricbeat -name terraform.tfstate
[2020-06-16T00:38:23.135Z] + exit 0
[2020-06-16T00:38:23.596Z] + curl -sSLo codecov https://codecov.io/bash
[2020-06-16T00:38:23.859Z] + FILE=auditbeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-06-16T00:38:23.859Z] + FILE=filebeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-06-16T00:38:23.859Z] + FILE=heartbeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-06-16T00:38:23.859Z] + FILE=libbeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-06-16T00:38:23.859Z] + FILE=metricbeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-06-16T00:38:23.859Z] + FILE=packetbeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-06-16T00:38:23.859Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-06-16T00:38:23.859Z] + FILE=journalbeat/build/coverage/full.cov
[2020-06-16T00:38:23.859Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-06-16T00:38:24.452Z] Failed in branch Metricbeat x-pack
[2020-06-16T00:38:24.625Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats
[2020-06-16T00:38:24.956Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-06-16T00:38:24.969Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Lint
[2020-06-16T00:38:25.060Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-06-16T00:38:25.216Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Journalbeat-oss
[2020-06-16T00:38:25.508Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-06-16T00:38:25.611Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-06-16T00:38:25.720Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-Windows
[2020-06-16T00:38:25.818Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Winlogbeat-oss
[2020-06-16T00:38:25.910Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-06-16T00:38:26.016Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Dockerlogbeat
[2020-06-16T00:38:26.119Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-06-16T00:38:26.206Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-06-16T00:38:26.282Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-06-16T00:38:26.356Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Heartbeat-oss
[2020-06-16T00:38:26.439Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-06-16T00:38:26.521Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Filebeat-Windows
[2020-06-16T00:38:26.611Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-06-16T00:38:26.749Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-06-16T00:38:26.866Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-06-16T00:38:26.984Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-06-16T00:38:27.076Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-06-16T00:38:27.177Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-06-16T00:38:27.286Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Libbeat-x-pack
[2020-06-16T00:38:27.400Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-06-16T00:38:27.509Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Packetbeat-oss
[2020-06-16T00:38:27.608Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Filebeat-x-pack
[2020-06-16T00:38:27.712Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-06-16T00:38:27.809Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Filebeat-oss
[2020-06-16T00:38:27.910Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Libbeat-oss
[2020-06-16T00:38:27.992Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-06-16T00:38:28.082Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-06-16T00:38:28.174Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-06-16T00:38:28.551Z] + cat
[2020-06-16T00:38:28.551Z] + /usr/local/bin/runbld ./runbld-script
[2020-06-16T00:38:28.551Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-06-16T00:38:35.154Z] runbld>>> runbld started
[2020-06-16T00:38:35.154Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-06-16T00:38:37.723Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-19203' in order of occurrence in the config (last value wins).
[2020-06-16T00:38:38.668Z] runbld>>> Debug logging enabled.
[2020-06-16T00:38:38.668Z] runbld>>> Storing result
[2020-06-16T00:38:38.668Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-06-16T00:38:38.668Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200616003838-94AE883E
[2020-06-16T00:38:38.668Z] runbld>>> Adding system facts.
[2020-06-16T00:38:39.615Z] runbld>>> Adding vcs info for the latest commit:  58f75214107b4e86cff7dfad63e5f170a460c21f
[2020-06-16T00:38:39.875Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-06-16T00:38:39.875Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-06-16T00:38:39.875Z] + echo 'Processing JUnit reports with runbld...'
[2020-06-16T00:38:39.875Z] Processing JUnit reports with runbld...
[2020-06-16T00:38:40.136Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-06-16T00:38:40.136Z] runbld>>> DURATION: 12ms
[2020-06-16T00:38:40.136Z] runbld>>> STDOUT: 40 bytes
[2020-06-16T00:38:40.136Z] runbld>>> STDERR: 49 bytes
[2020-06-16T00:38:40.136Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-06-16T00:38:40.136Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats
[2020-06-16T00:38:42.162Z] runbld>>> Storing build metadata: 
[2020-06-16T00:38:42.162Z] runbld>>> Adding test report.
[2020-06-16T00:38:42.162Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats
[2020-06-16T00:38:43.150Z] runbld>>> Found 70 test output files
[2020-06-16T00:38:44.133Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-06-16T00:38:44.133Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-06-16T00:38:44.394Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 6573 Skipped: 834
[2020-06-16T00:38:44.654Z] runbld>>> Storing result
[2020-06-16T00:38:44.654Z] runbld>>> FAILURES: 0
[2020-06-16T00:38:44.918Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-06-16T00:38:44.918Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200616003838-94AE883E
[2020-06-16T00:38:44.918Z] runbld>>> Email notification disabled by environment variable.
[2020-06-16T00:38:44.918Z] runbld>>> Slack notification disabled by environment variable.
[2020-06-16T00:38:48.981Z] Body did not finish within grace period; terminating with extreme prejudice
[2020-06-16T00:38:49.198Z] ERROR: runbld post build action failed.
[2020-06-16T00:38:49.199Z] Timeout has been exceeded
[2020-06-16T00:38:49.764Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19203
[2020-06-16T00:38:49.873Z] [INFO] getVaultSecret: Getting secrets
[2020-06-16T00:38:49.950Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-06-16T00:38:51.126Z] + chmod 755 generate-build-data.sh
[2020-06-16T00:38:51.126Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19203/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19203/runs/2 ABORTED 7378584
[2020-06-16T00:38:51.126Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19203/runs/2/steps/?limit=10000 -o steps-info.json
[2020-06-16T00:38:52.989Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19203/runs/2/tests/?status=FAILED -o tests-errors.json

@kaiyan-sheng kaiyan-sheng merged commit a62897e into elastic:7.x Jun 16, 2020
@kaiyan-sheng kaiyan-sheng deleted the backport_18552_7.x branch June 16, 2020 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Integrations Label for the Integrations team [zube]: Done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants