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] Fix runbld when workspace does not exist #21350

Merged
merged 1 commit into from
Sep 29, 2020

Conversation

v1v
Copy link
Member

@v1v v1v commented Sep 28, 2020

What does this PR do?

Cloud stage reuses the top-level worker and the workspace gets deleted. Let's prepare the context to run runbld

Why is it important?

Fixes the runbld dependency to run within the git workspace context:

[2020-09-28T13:05:56.771Z] runbld>>> Error: The source clone was not found in /var/lib/jenkins/workspace/Beats_beats_master/src/github.com/elastic/beats.  The most common cause is that Jenkins and runbld are configured with different working directories (referred to as 'basedir' in JJB and 'cwd' in runbld config).
script returned exit code 1

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

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21350 opened]

  • Start Time: 2020-09-28T15:43:53.435+0000

  • Duration: 89 min 42 sec

Test stats 🧪

Test Results
Failed 0
Passed 20291
Skipped 1858
Total 22149

Steps errors

Expand to view the steps failures

  • Name: Archive the artifacts
    • Description: [2020-09-28T17:11:35.300Z] Archiving artifacts
      [2020-09-28T17:11:35.336Z] ‘build-reasons/*.md’

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-28T17:11:35.286+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-28T17:11:54.261Z] + tar -xpf source.tgz
[2020-09-28T17:12:06.870Z] + rm source.tgz
[2020-09-28T17:12:07.008Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats
[2020-09-28T17:12:07.039Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/uncategorized-1601309173118
[2020-09-28T17:12:07.133Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/libbeat-stress-tests-1601309462822
[2020-09-28T17:12:07.223Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/auditbeat-macos-macosx-1601309513547
[2020-09-28T17:12:07.317Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/winlogbeat-crosscompile-1601309540929
[2020-09-28T17:12:07.406Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-elastic-agent-build-1601309551865
[2020-09-28T17:12:07.497Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/heartbeat-macos-macosx-1601309561177
[2020-09-28T17:12:07.588Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/auditbeat-crosscompile-1601309581433
[2020-09-28T17:12:07.686Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-dockerlogbeat-build-1601309590581
[2020-09-28T17:12:07.779Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/generator-macos-beat-macosx-1601309598137
[2020-09-28T17:12:07.871Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/journalbeat-unitTest-1601309599114
[2020-09-28T17:12:07.963Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-functionbeat-build-1601309665517
[2020-09-28T17:12:08.059Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-macos-macosx-1601309733352
[2020-09-28T17:12:08.164Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/libbeat-crosscompile-1601309738471
[2020-09-28T17:12:08.256Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-auditbeat-macos-macosx-1601309752073
[2020-09-28T17:12:08.389Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-elastic-agent-macos-macosx-1601309755297
[2020-09-28T17:12:08.483Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/packetbeat-build-1601309775359
[2020-09-28T17:12:08.579Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-unitTest-1601309814614
[2020-09-28T17:12:08.674Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-elastic-agent-windows-windows-2019-1601309852798
[2020-09-28T17:12:08.769Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/packetbeat-macos-macosx-1601309860181
[2020-09-28T17:12:08.866Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/filebeat-macos-macosx-1601309866532
[2020-09-28T17:12:08.959Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/auditbeat-windows-windows-2019-1601309879025
[2020-09-28T17:12:09.052Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/heartbeat-build-1601309902495
[2020-09-28T17:12:09.150Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-auditbeat-windows-windows-2019-1601309911083
[2020-09-28T17:12:09.245Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/generator-macos-metricbeat-macosx-1601309920925
[2020-09-28T17:12:09.341Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-auditbeat-build-1601309935494
[2020-09-28T17:12:09.433Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/heartbeat-windows-windows-2019-1601309960994
[2020-09-28T17:12:09.524Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-filebeat-macos-macosx-1601309974601
[2020-09-28T17:12:09.614Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-winlogbeat-build-windows-2019-1601309981468
[2020-09-28T17:12:09.709Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-functionbeat-macos-macosx-1601309999490
[2020-09-28T17:12:09.798Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/auditbeat-build-1601310031371
[2020-09-28T17:12:09.889Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/winlogbeat-windows-windows-2019-1601310031622
[2020-09-28T17:12:09.979Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-macos-macosx-1601310076334
[2020-09-28T17:12:10.069Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/filebeat-windows-windows-2019-1601310096060
[2020-09-28T17:12:10.164Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/packetbeat-windows-windows-2019-1601310105342
[2020-09-28T17:12:10.259Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-functionbeat-windows-windows-2019-1601310109859
[2020-09-28T17:12:10.356Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-libbeat-build-1601310111050
[2020-09-28T17:12:10.449Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/generator-metricbeat-test-1601310111897
[2020-09-28T17:12:10.543Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-crosscompile-1601310141777
[2020-09-28T17:12:10.632Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/generator-beat-test-1601310145465
[2020-09-28T17:12:10.723Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-filebeat-windows-windows-2019-1601310188227
[2020-09-28T17:12:10.815Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-windows-windows-2019-1601310230153
[2020-09-28T17:12:10.908Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-windows-windows-2019-1601310277942
[2020-09-28T17:12:10.999Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/filebeat-build-1601310897780
[2020-09-28T17:12:11.091Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/libbeat-build-1601311190207
[2020-09-28T17:12:11.186Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-filebeat-build-1601311329597
[2020-09-28T17:12:11.280Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-goIntegTest-1601311373875
[2020-09-28T17:12:11.372Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-pythonIntegTest-1601311662287
[2020-09-28T17:12:11.467Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-build-1601312756692
[2020-09-28T17:12:11.879Z] + cat
[2020-09-28T17:12:11.879Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-09-28T17:12:11.879Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-28T17:12:18.503Z] runbld>>> runbld started
[2020-09-28T17:12:18.503Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-28T17:12:20.419Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-28T17:12:20.419Z] runbld>>> Matches in the system config:
[2020-09-28T17:12:20.419Z] runbld>>> - Matched ^elastic\+beats
[2020-09-28T17:12:20.419Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-28T17:12:21.822Z] runbld>>> Debug logging enabled.
[2020-09-28T17:12:21.822Z] runbld>>> Storing result
[2020-09-28T17:12:21.822Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-28T17:12:21.822Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200928171221-F076221A
[2020-09-28T17:12:21.822Z] runbld>>> Adding system facts.
[2020-09-28T17:12:23.213Z] runbld>>> Adding vcs info for the latest commit:  07f747298ace40bc7f977621a5561299aacca053
[2020-09-28T17:12:23.213Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-28T17:12:23.213Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-28T17:12:23.213Z] Processing JUnit reports with runbld...
[2020-09-28T17:12:23.213Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-28T17:12:23.476Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-28T17:12:23.476Z] runbld>>> DURATION: 28ms
[2020-09-28T17:12:23.476Z] runbld>>> STDOUT: 40 bytes
[2020-09-28T17:12:23.476Z] runbld>>> STDERR: 49 bytes
[2020-09-28T17:12:23.476Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-28T17:12:23.476Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21350
[2020-09-28T17:12:24.874Z] runbld>>> Storing build metadata: 
[2020-09-28T17:12:24.874Z] runbld>>> Adding test report.
[2020-09-28T17:12:24.874Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats
[2020-09-28T17:12:25.448Z] runbld>>> Found 142 test output files
[2020-09-28T17:12:26.859Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-build-1601312756692/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-28T17:12:26.859Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-build-1601312756692/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-28T17:12:26.859Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-build-1601312756692/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-28T17:12:26.859Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-build-1601312756692/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-28T17:12:26.859Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/x-pack-metricbeat-build-1601312756692/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-28T17:12:27.806Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-goIntegTest-1601311373875/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-28T17:12:27.806Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21350/src/github.com/elastic/beats/metricbeat-goIntegTest-1601311373875/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-28T17:12:29.196Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 22149 Skipped: 1564
[2020-09-28T17:12:29.196Z] runbld>>> Storing result
[2020-09-28T17:12:29.196Z] runbld>>> FAILURES: 0
[2020-09-28T17:12:29.457Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-28T17:12:29.457Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200928171221-F076221A
[2020-09-28T17:12:29.457Z] runbld>>> Email notification disabled by environment variable.
[2020-09-28T17:12:29.457Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-28T17:12:34.953Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21350
[2020-09-28T17:12:35.041Z] [INFO] getVaultSecret: Getting secrets
[2020-09-28T17:12:35.125Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-28T17:12:36.015Z] + chmod 755 generate-build-data.sh
[2020-09-28T17:12:36.015Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21350/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21350/runs/1 FAILURE 5322307
[2020-09-28T17:12:36.015Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21350/runs/1/steps/?limit=10000 -o steps-info.json

@v1v v1v marked this pull request as ready for review September 29, 2020 08:25
@v1v v1v requested a review from a team as a code owner September 29, 2020 08:25
@v1v v1v merged commit 4d18e78 into elastic:master Sep 29, 2020
@v1v v1v deleted the fix/runbld-post-build-workspace branch September 29, 2020 08:53
v1v added a commit to v1v/beats that referenced this pull request Sep 29, 2020
v1v added a commit to v1v/beats that referenced this pull request Sep 29, 2020
v1v added a commit to v1v/beats that referenced this pull request Sep 29, 2020
* upstream/master:
  feat: prepare release pipelines (elastic#21238)
  Add IP validation to Security module (elastic#21325)
  Fixes for new 7.10 rsa2elk datasets (elastic#21240)
  o365input: Restart after fatal error (elastic#21258)
  Fix panic in cgroups monitoring (elastic#21355)
  Handle multiple upstreams in ingress-controller (elastic#21215)
  [CI] Fix runbld when workspace does not exist (elastic#21350)
  [Filebeat] Fix checkpoint (elastic#21344)
  [CI] Archive build reasons (elastic#21347)
  Add dashboard for pubsub metricset in googlecloud module (elastic#21326)
  [Elastic Agent] Allow embedding of certificate (elastic#21179)
  Adds a default for failure_cache.min_ttl (elastic#21085)
  [libbeat] Disk queue implementation (elastic#21176)
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 bug ci Team:Automation Label for the Observability productivity team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants