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

[CI] refactor runbld post build action #21256

Merged
merged 6 commits into from
Sep 28, 2020

Conversation

v1v
Copy link
Member

@v1v v1v commented Sep 23, 2020

What does this PR do?

Refactor unrelated step from the beats-ci pipeline

Why is it important?

Simplify the pipeline and use a shared library step.

Issues

Requires elastic/apm-pipeline-library#728

Tests

build 5 got

20:31:37  runbld>>> Test output logs contained: Errors: 0 Failures: 5 Tests: 16850 Skipped: 1050

image

image

@v1v v1v self-assigned this Sep 23, 2020
@v1v v1v added the automation label Sep 23, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 23, 2020
Jenkinsfile Outdated Show resolved Hide resolved
@v1v v1v added ci Team:Automation Label for the Observability productivity team and removed needs_team Indicates that the issue/PR needs a Team:* label labels Sep 23, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Sep 24, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21256 updated]

  • Start Time: 2020-09-24T11:10:19.074+0000

  • Duration: 74 min 59 sec

Test stats 🧪

Test Results
Failed 1
Passed 20164
Skipped 1833
Total 21998

Test errors

Expand to view the tests failures

  • Name: Build and Test / Libbeat / Libbeat oss / TestClientPublishEventKerberosAware – elasticsearch

    • Age: 2
    • Duration: 3.05
    • Error Details: Failed

Steps errors

Expand to view the steps failures

  • Name: Mage build test

    • Description: mage build test

    • Duration: 23 min 12 sec

    • Start Time: 2020-09-24T11:34:06.116+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: script returned exit code 1

    • Duration: 0 min 1 sec

    • Start Time: 2020-09-24T11:57:29.727+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-24T12:23:43.404Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Lint-1600947140733
[2020-09-24T12:23:43.516Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X-1600947269559
[2020-09-24T12:23:43.610Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Winlogbeat-oss-1600947333895
[2020-09-24T12:23:43.698Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Heartbeat-Mac-OS-X-1600947336195
[2020-09-24T12:23:43.789Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Elastic-Agent-x-pack-1600947345392
[2020-09-24T12:23:43.880Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/dockerlogbeat-1600947375076
[2020-09-24T12:23:43.984Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X-1600947382773
[2020-09-24T12:23:44.083Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Auditbeat-crosscompile-1600947388518
[2020-09-24T12:23:44.170Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Journalbeat-1600947400373
[2020-09-24T12:23:44.258Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Generators-Metricbeat-Linux-1600947429792
[2020-09-24T12:23:44.344Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X-1600947451142
[2020-09-24T12:23:44.434Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Functionbeat-x-pack-1600947459578
[2020-09-24T12:23:44.524Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X-1600947493013
[2020-09-24T12:23:44.636Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Filebeat-Mac-OS-X-1600947516444
[2020-09-24T12:23:44.745Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Packetbeat-Linux-1600947559584
[2020-09-24T12:23:44.905Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Functionbeat-x-pack-1600947587166
[2020-09-24T12:23:45.001Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests-1600947634846
[2020-09-24T12:23:45.105Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows-1600947651581
[2020-09-24T12:23:45.208Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-Mac-OS-X-1600947669726
[2020-09-24T12:23:45.321Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack-1600947684485
[2020-09-24T12:23:45.434Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Packetbeat-Mac-OS-X-1600947718433
[2020-09-24T12:23:45.555Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Heartbeat-oss-1600947728473
[2020-09-24T12:23:45.661Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Auditbeat-x-pack-1600947739227
[2020-09-24T12:23:45.763Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Auditbeat-x-pack-Windows-1600947745456
[2020-09-24T12:23:45.876Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X-1600947751011
[2020-09-24T12:23:45.980Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack-1600947767379
[2020-09-24T12:23:46.079Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Auditbeat-oss-Windows-1600947775270
[2020-09-24T12:23:46.193Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Heartbeat-Windows-1600947815095
[2020-09-24T12:23:46.295Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Winlogbeat-Windows-1600947820581
[2020-09-24T12:23:46.396Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X-1600947858867
[2020-09-24T12:23:46.483Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Filebeat-x-pack-Windows-1600947865312
[2020-09-24T12:23:46.575Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Auditbeat-oss-Linux-1600947917405
[2020-09-24T12:23:46.672Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-crosscompile-1600947931412
[2020-09-24T12:23:46.768Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Libbeat-x-pack-1600947931167
[2020-09-24T12:23:46.868Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Packetbeat-Windows-1600947933926
[2020-09-24T12:23:46.965Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Filebeat-Windows-1600947944318
[2020-09-24T12:23:47.061Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-Windows-1600948080309
[2020-09-24T12:23:47.145Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Generators-Metricbeat-Linux-1600948118904
[2020-09-24T12:23:47.248Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Functionbeat-Windows-1600948148691
[2020-09-24T12:23:47.351Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-Windows-1600948164070
[2020-09-24T12:23:47.438Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X-1600948260389
[2020-09-24T12:23:47.543Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Generators-Beat-Linux-1600948370214
[2020-09-24T12:23:47.654Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Libbeat-oss-1600948644885
[2020-09-24T12:23:47.776Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Filebeat-oss-1600948825741
[2020-09-24T12:23:47.943Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Generators-Beat-Linux-1600949077027
[2020-09-24T12:23:48.051Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Filebeat-x-pack-1600949140067
[2020-09-24T12:23:48.169Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests-1600949372951
[2020-09-24T12:23:48.294Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests-1600949525669
[2020-09-24T12:23:48.396Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-1600950126888
[2020-09-24T12:23:48.833Z] + cat
[2020-09-24T12:23:48.833Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-09-24T12:23:48.833Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-24T12:23:55.419Z] runbld>>> runbld started
[2020-09-24T12:23:55.419Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-24T12:23:57.980Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-24T12:23:57.980Z] runbld>>> Matches in the system config:
[2020-09-24T12:23:57.980Z] runbld>>> - Matched ^elastic\+beats
[2020-09-24T12:23:57.980Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-24T12:23:58.920Z] runbld>>> Debug logging enabled.
[2020-09-24T12:23:58.920Z] runbld>>> Storing result
[2020-09-24T12:23:59.180Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-24T12:23:59.181Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200924122358-943C4C2D
[2020-09-24T12:23:59.181Z] runbld>>> Adding system facts.
[2020-09-24T12:24:00.131Z] runbld>>> Adding vcs info for the latest commit:  26df983f3336e7d0492119375fb17ccd6a5f004c
[2020-09-24T12:24:00.131Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-24T12:24:00.131Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-24T12:24:00.391Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-24T12:24:00.391Z] Processing JUnit reports with runbld...
[2020-09-24T12:24:00.651Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-24T12:24:00.651Z] runbld>>> DURATION: 49ms
[2020-09-24T12:24:00.651Z] runbld>>> STDOUT: 40 bytes
[2020-09-24T12:24:00.651Z] runbld>>> STDERR: 49 bytes
[2020-09-24T12:24:00.651Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-24T12:24:00.651Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21256
[2020-09-24T12:24:05.935Z] runbld>>> Storing build metadata: 
[2020-09-24T12:24:05.935Z] runbld>>> Adding test report.
[2020-09-24T12:24:05.935Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats
[2020-09-24T12:24:06.878Z] runbld>>> Found 141 test output files
[2020-09-24T12:24:09.420Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-1600950126888/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-24T12:24:09.420Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-1600950126888/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-24T12:24:09.420Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-1600950126888/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-24T12:24:09.420Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-1600950126888/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-24T12:24:09.420Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-x-pack-1600950126888/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-24T12:24:09.991Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests-1600949372951/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-24T12:24:09.991Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21256/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests-1600949372951/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-24T12:24:10.565Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 21998 Skipped: 1561
[2020-09-24T12:24:10.825Z] runbld>>> Storing result
[2020-09-24T12:24:10.825Z] runbld>>> FAILURES: 1
[2020-09-24T12:24:11.084Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-24T12:24:11.084Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200924122358-943C4C2D
[2020-09-24T12:24:11.344Z] runbld>>> Email notification disabled by environment variable.
[2020-09-24T12:24:11.344Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-24T12:24:17.285Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21256
[2020-09-24T12:24:17.554Z] [INFO] getVaultSecret: Getting secrets
[2020-09-24T12:24:17.645Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-24T12:24:18.454Z] + chmod 755 generate-build-data.sh
[2020-09-24T12:24:18.454Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21256/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21256/runs/4 FAILURE 4439119
[2020-09-24T12:24:18.454Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21256/runs/4/steps/?limit=10000 -o steps-info.json
[2020-09-24T12:24:22.577Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21256/runs/4/tests/?status=FAILED -o tests-errors.json
[2020-09-24T12:24:22.828Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21256/runs/4/log/ -o pipeline-log.txt

@v1v v1v marked this pull request as ready for review September 24, 2020 11:09
@v1v v1v requested a review from a team as a code owner September 24, 2020 11:09
@v1v
Copy link
Member Author

v1v commented Sep 24, 2020

On hold, since 2.0 pipeline is gonna be merged hopefully sooner than later and this particular PR should be done in another version of the Jenkinsfile

…-refactor

* upstream/master:
  [Ingest manager] Copy Action store on upgrade (elastic#21298)
  [CI] Pipeline 2.0 for monorepos (elastic#20104)
  Stop running agent container as root by default (elastic#21213)
  Stop running auditbeat container as root by default (elastic#21202)
  Fix autodiscover flaky tests (elastic#21242)
  [Ingest Manager] Enabled dev builds (elastic#21241)
  Fix librpm installation in auditbeat build (elastic#21239)
  Fix prometheus default config (elastic#21253)
  Fix dev guide test command (elastic#21254)
  Move aws lambda metricset to GA (elastic#21255)
  [Docs] Typo in table syntax (elastic#20227)
  [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
…o feature/ci-runbld-refactor

* 'feature/ci-runbld-refactor' of github.com:v1v/beats:
  Update Jenkinsfile
@v1v v1v merged commit 5b5c4cf into elastic:master Sep 28, 2020
@v1v v1v deleted the feature/ci-runbld-refactor branch September 28, 2020 10:23
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
* upstream/master:
  Skip flaky test TestClientPublishEventKerberosAware (elastic#21296)
  [CI] Enable macOS builds for branches/tags (elastic#21323)
  [CI] refactor runbld post build action (elastic#21256)
  [CI] cherry-pick elastic#20891 (elastic#21314)
v1v added a commit to v1v/beats that referenced this pull request Oct 19, 2020
v1v added a commit that referenced this pull request Oct 30, 2020
* cherry-pick aad07ad
* Add stages to Jenkins pipeline (#14484)
* ci: avoid to modify go.mod file (#16842)
* Ensure install scripts only install if needed (#20349)
* ci: fix warnings with wildcards and archive system-tests (#18695)
* ci: run test on Windows (#15570)
* [CI] fail if not possible to install python3 (#19164)
* [CI] lint stage doesn't produce test reports (#21888)
* [CI] Add stage name in the step (#21887)
* [CI] kind setup fails sometimes (#21857)
* [CI] refactor runbld post build action (#21256)
* [CI] Archive build reasons (#21347)
* [CI] Fix runbld when workspace does not exist (#21350)
* [CI] Send slack message with build status (#21428)
* [CI] Setup git config globally (#21562)
* [CI] fix 'no matches found within 10000' (#21466)
* [CI] Change notification channel (#21559)
* [CI] Support skip-ci label (#21377)
* [BUILD][CI] fetch dependencies with retry (#21614)
* Disable x-pack/metricbeat in linux since build is broken #21962
* Disable tests for windows in auditbeat. See #21958
* Disable integration testing for libbeat. See #21959
* Disable integration testing for metricbeat. See #21961
* Disable windows build for auditbeat. See #21958
* Disable build for libbeat. See #21959
* Disable build for metricbeat. See #21961
* Disable windows build for metricbeat. See #22257
* Disable build for x-pack/metricbeat. See #21962
* Disable windows build for x-pack/winlogbeat. See #22263
* Disable windows build for x-pack/filebeat. See #21963
* integration-tests-environment is not available for winlogbeat. see #22265
* integration-tests-environment is not available for packetbeat. see #22266
* Build not available for x-pack/metricbeats in 6.8. See #22269
* Cherry-pick 96c60d0
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation ci Team:Automation Label for the Observability productivity team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants