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 'no matches found within 10000' #21466

Merged
merged 7 commits into from
Oct 5, 2020

Conversation

v1v
Copy link
Member

@v1v v1v commented Oct 2, 2020

What does this PR do?

Tar the build folder rather than archiving the giving list of files.
Delete cached folder that are causing the stacktrace reported in JENKINS-58421

[2020-10-05T11:59:25.997Z] + echo libbeat-build
[2020-10-05T11:59:25.998Z] libbeat-build
[2020-10-05T11:59:25.998Z] + ls -ltrah
[2020-10-05T11:59:25.998Z] total 20K
[2020-10-05T11:59:25.998Z] drwxr-xr-x 258 jenkins jenkins 4.0K Oct  5 11:51 docker-gocache
[2020-10-05T11:59:25.998Z] drwxr-xr-x   3 jenkins jenkins 4.0K Oct  5 11:56 ve
[2020-10-05T11:59:25.998Z] drwxr-xr-x   3 jenkins jenkins 4.0K Oct  5 11:59 libbeat
[2020-10-05T11:59:25.998Z] drwxr-xr-x   5 jenkins jenkins 4.0K Oct  5 11:59 .
[2020-10-05T11:59:25.998Z] drwxr-xr-x  26 jenkins jenkins 4.0K Oct  5 11:59 ..
[2020-10-05T11:59:25.998Z] + find . -name build -ls
[2020-10-05T11:59:25.998Z]   5167709      4 drwxr-xr-x   3 jenkins  jenkins      4096 Oct  5 11:59 ./libbeat/build
[2020-10-05T11:59:25.998Z]   5430897      4 drwxr-xr-x   3 jenkins  jenkins      4096 Oct  5 11:57 ./ve/docker/lib/python3.7/site-packages/pip/_internal/operations/build

[2020-10-05T11:31:15.738Z] + ls -ltrah
[2020-10-05T11:31:15.738Z] total 32K
[2020-10-05T11:31:15.738Z] drwxr-xr-x  3 jenkins jenkins 4.0K Oct  5 11:31 metricbeat
[2020-10-05T11:31:15.738Z] drwxr-xr-x  7 jenkins jenkins 4.0K Oct  5 11:31 x-pack
[2020-10-05T11:31:15.738Z] drwxr-xr-x  3 jenkins jenkins 4.0K Oct  5 11:31 winlogbeat
[2020-10-05T11:31:15.738Z] drwxr-xr-x  3 jenkins jenkins 4.0K Oct  5 11:31 filebeat
[2020-10-05T11:31:15.738Z] drwxr-xr-x  3 jenkins jenkins 4.0K Oct  5 11:31 auditbeat
[2020-10-05T11:31:15.738Z] drwxr-xr-x  3 jenkins jenkins 4.0K Oct  5 11:31 packetbeat
[2020-10-05T11:31:15.738Z] drwxr-xr-x  8 jenkins jenkins 4.0K Oct  5 11:31 .
[2020-10-05T11:31:15.738Z] drwxr-xr-x 24 jenkins jenkins 4.0K Oct  5 11:31 ..
[2020-10-05T11:31:15.738Z] + find . -name build -ls
[2020-10-05T11:31:15.738Z]   4946598      4 drwxr-xr-x   5 jenkins  jenkins      4096 Oct  5 11:31 ./metricbeat/build
[2020-10-05T11:31:15.738Z]   4946735      4 drwxr-xr-x   4 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/metricbeat/build
[2020-10-05T11:31:15.738Z]   5947239      4 drwxr-xr-x   4 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/functionbeat/provider/gcp/build
[2020-10-05T11:31:15.738Z]   7236175      4 drwxr-xr-x   2 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/functionbeat/provider/gcp/build/storage/vendor/golang.org/x/text/collate/build
[2020-10-05T11:31:15.738Z]   8778707      4 drwxr-xr-x   2 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/functionbeat/provider/gcp/build/storage/vendor/github.com/docker/docker/api/server/router/build
[2020-10-05T11:31:15.738Z]   8778732      4 drwxr-xr-x   2 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/functionbeat/provider/gcp/build/storage/vendor/github.com/docker/docker/api/server/backend/build
[2020-10-05T11:31:15.738Z]   6972341      4 drwxr-xr-x   2 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/functionbeat/provider/gcp/build/pubsub/vendor/golang.org/x/text/collate/build
[2020-10-05T11:31:15.738Z]   9032210      4 drwxr-xr-x   2 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/functionbeat/provider/gcp/build/pubsub/vendor/github.com/docker/docker/api/server/router/build
[2020-10-05T11:31:15.738Z]   9032235      4 drwxr-xr-x   2 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/functionbeat/provider/gcp/build/pubsub/vendor/github.com/docker/docker/api/server/backend/build
[2020-10-05T11:31:15.738Z]   5948129      4 drwxr-xr-x   4 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/winlogbeat/build
[2020-10-05T11:31:15.738Z]   5948147      4 drwxr-xr-x   4 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/filebeat/build
[2020-10-05T11:31:15.738Z]   5948297      4 drwxr-xr-x   3 jenkins  jenkins      4096 Oct  5 11:31 ./x-pack/auditbeat/build
[2020-10-05T11:31:15.738Z]   4946918      4 drwxr-xr-x   4 jenkins  jenkins      4096 Oct  5 11:31 ./winlogbeat/build
[2020-10-05T11:31:15.738Z]   4946927      4 drwxr-xr-x   5 jenkins  jenkins      4096 Oct  5 11:31 ./filebeat/build
[2020-10-05T11:31:15.738Z]   5430239      4 drwxr-xr-x   4 jenkins  jenkins      4096 Oct  5 11:31 ./auditbeat/build
[2020-10-05T11:31:15.738Z]   5430251      4 drwxr-xr-x   3 jenkins  jenkins      4096 Oct  5 11:31 ./packetbeat/build

Why is it important?

Avoid corruption in the builds.

Issues

#18695 was the initial approach to reduce those stacktrace errors, but there were 3 cases that were not fixed though!

Tests

image

$ curl -s https://beats-ci.elastic.co/job/Beats/job/beats/job/PR-21466/5/consoleText | grep -i 'Caused: java.lang.InterruptedException'        

$ curl -s https://beats-ci.elastic.co/job/Beats/job/beats/job/master/481/consoleText | grep -i 'Caused: java.lang.InterruptedException'        
[2020-10-05T11:20:22.990Z] Caused: java.lang.InterruptedException: java.lang.InterruptedException: no matches found within 10000
[2020-10-05T11:59:19.766Z] Caused: java.lang.InterruptedException: java.lang.InterruptedException: no matches found within 10000

@v1v v1v added automation ci Team:Automation Label for the Observability productivity team labels Oct 2, 2020
@v1v v1v self-assigned this Oct 2, 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 Oct 2, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Oct 2, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21466 updated]

  • Start Time: 2020-10-05T12:29:50.719+0000

  • Duration: 85 min 50 sec

Test stats 🧪

Test Results
Failed 12
Passed 16231
Skipped 1340
Total 17583

Test errors

Expand to view the tests failures

  • Name: Build&Test / libbeat-build / test_dev_tool_export_dashboard_by_id – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.197
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1
  • Name: Build&Test / libbeat-build / test_dev_tool_export_dashboard_by_id_from_space – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.012
    • Error Details: requests.exceptions.ConnectionError: HTTPConnectionPool(host='kibana', port=5601): Max retries exceeded with url: /api/status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc4642074a8>: Failed to establish a new connection: [Errno -2] Name or service not known'))
  • Name: Build&Test / libbeat-build / test_dev_tool_export_dashboard_from_yml – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.165
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1
  • Name: Build&Test / libbeat-build / test_export_dashboard_cmd_export_dashboard_by_id – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.09
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1
  • Name: Build&Test / libbeat-build / test_export_dashboard_cmd_export_dashboard_by_id_and_decoding – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.083
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1
  • Name: Build&Test / libbeat-build / test_export_dashboard_cmd_export_dashboard_by_id_unknown_id – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.113
    • Error Details: AssertionError: assert False + where False = <bound method TestCase.log_contains of <test_dashboard.Test testMethod=test_export_dashboard_cmd_export_dashboard_by_id_unknown_id>>(re.compile('error exporting dashboard:.*not found', re.IGNORECASE)) + where <bound method TestCase.log_contains of <test_dashboard.Test testMethod=test_export_dashboard_cmd_export_dashboard_by_id_unknown_id>> = <test_dashboard.Test testMethod=test_export_dashboard_cmd_export_dashboard_by_id_unknown_id>.log_contains
  • Name: Build&Test / libbeat-build / test_export_dashboard_cmd_export_dashboard_from_not_existent_yml – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.079
    • Error Details: AssertionError: assert False + where False = <bound method TestCase.log_contains of <test_dashboard.Test testMethod=test_export_dashboard_cmd_export_dashboard_from_not_existent_yml>>('Error exporting dashboards from yml') + where <bound method TestCase.log_contains of <test_dashboard.Test testMethod=test_export_dashboard_cmd_export_dashboard_from_not_existent_yml>> = <test_dashboard.Test testMethod=test_export_dashboard_cmd_export_dashboard_from_not_existent_yml>.log_contains
  • Name: Build&Test / libbeat-build / test_export_dashboard_cmd_export_dashboard_from_yml – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.228
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1
  • Name: Build&Test / libbeat-build / test_load_dashboard – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.078
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1
  • Name: Build&Test / libbeat-build / test_load_dashboard_into_space – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.01
    • Error Details: requests.exceptions.ConnectionError: HTTPConnectionPool(host='kibana', port=5601): Max retries exceeded with url: /api/status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc46403f358>: Failed to establish a new connection: [Errno -2] Name or service not known'))
  • Name: Build&Test / libbeat-build / test_load_only_index_patterns – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.109
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1
  • Name: Build&Test / libbeat-build / test_load_without_dashboard – libbeat.tests.system.test_dashboard.Test

    • Age: 1
    • Duration: 0.097
    • Error Details: AssertionError: Expected exit code to be 0, but it was 1

Steps errors

Expand to view the steps failures

  • Name: mage build test

    • Description: mage build test

    • Duration: 6 min 14 sec

    • Start Time: 2020-10-05T12:55:44.372+0000

    • log

  • Name: mage build test

    • Description: mage build test

    • Duration: 23 min 6 sec

    • Start Time: 2020-10-05T12:55:50.564+0000

    • log

  • Name: mage build test

    • Description: mage build test

    • Duration: 7 min 38 sec

    • Start Time: 2020-10-05T12:55:54.796+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-05T13:53:44.679Z]   Version:          1.0.0-rc10
[2020-10-05T13:53:44.679Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-10-05T13:53:44.679Z]  docker-init:
[2020-10-05T13:53:44.679Z]   Version:          0.18.0
[2020-10-05T13:53:44.679Z]   GitCommit:        fec3683
[2020-10-05T13:53:51.909Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-10-05T13:53:51.920Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-10-05T13:53:51.968Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21466-5/source/source.tgz
[2020-10-05T13:53:51.986Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21466-5/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21466/source.tgz
[2020-10-05T13:54:03.482Z] + tar --version
[2020-10-05T13:54:03.782Z] + tar -xpf source.tgz
[2020-10-05T13:54:14.107Z] + rm source.tgz
[2020-10-05T13:54:14.168Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats
[2020-10-05T13:54:14.177Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/lint-1601902331847
[2020-10-05T13:54:14.211Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/libbeat-stress-tests-1601902559186
[2020-10-05T13:54:14.242Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/winlogbeat-crosscompile-1601902630180
[2020-10-05T13:54:14.273Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-elastic-agent-build-1601902636883
[2020-10-05T13:54:14.309Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/auditbeat-crosscompile-1601902670303
[2020-10-05T13:54:14.348Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/journalbeat-unitTest-1601902673986
[2020-10-05T13:54:14.382Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-dockerlogbeat-build-1601902682926
[2020-10-05T13:54:14.414Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-functionbeat-build-1601902742083
[2020-10-05T13:54:14.447Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/libbeat-crosscompile-1601902858466
[2020-10-05T13:54:14.478Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/packetbeat-build-1601902872196
[2020-10-05T13:54:14.511Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/auditbeat-build-1601902924460
[2020-10-05T13:54:14.544Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/metricbeat-unitTest-1601902933489
[2020-10-05T13:54:14.588Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-elastic-agent-windows-windows-2019-1601902947924
[2020-10-05T13:54:14.629Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-libbeat-build-1601902958870
[2020-10-05T13:54:14.667Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/auditbeat-windows-windows-2019-1601902997033
[2020-10-05T13:54:14.705Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/heartbeat-build-1601903025625
[2020-10-05T13:54:14.738Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/heartbeat-windows-windows-2019-1601903033714
[2020-10-05T13:54:14.771Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-auditbeat-build-1601903045837
[2020-10-05T13:54:14.804Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-auditbeat-windows-windows-2019-1601903080885
[2020-10-05T13:54:14.843Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/winlogbeat-windows-windows-2019-1601903088936
[2020-10-05T13:54:14.887Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-winlogbeat-build-windows-2019-1601903160582
[2020-10-05T13:54:14.919Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-filebeat-windows-windows-2019-1601903190287
[2020-10-05T13:54:14.958Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/metricbeat-crosscompile-1601903205119
[2020-10-05T13:54:14.990Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/filebeat-windows-windows-2019-1601903214396
[2020-10-05T13:54:15.028Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-functionbeat-windows-windows-2019-1601903232436
[2020-10-05T13:54:15.065Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/packetbeat-windows-windows-2019-1601903238515
[2020-10-05T13:54:15.100Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/generator-metricbeat-test-1601903291293
[2020-10-05T13:54:15.130Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/generator-beat-test-1601903295662
[2020-10-05T13:54:15.170Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/metricbeat-windows-windows-2019-1601903365331
[2020-10-05T13:54:15.205Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-metricbeat-windows-windows-2019-1601903402939
[2020-10-05T13:54:15.241Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/filebeat-build-1601903900305
[2020-10-05T13:54:15.277Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/libbeat-build-1601903942976
[2020-10-05T13:54:15.323Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/metricbeat-goIntegTest-1601904409657
[2020-10-05T13:54:15.366Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-filebeat-build-1601904449226
[2020-10-05T13:54:15.404Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/metricbeat-pythonIntegTest-1601904838086
[2020-10-05T13:54:15.437Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-metricbeat-build-1601905657371
[2020-10-05T13:54:15.777Z] + cat
[2020-10-05T13:54:15.777Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-10-05T13:54:15.777Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-10-05T13:54:22.391Z] runbld>>> runbld started
[2020-10-05T13:54:22.391Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-10-05T13:54:24.311Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-10-05T13:54:24.311Z] runbld>>> Matches in the system config:
[2020-10-05T13:54:24.311Z] runbld>>> - Matched ^elastic\+beats
[2020-10-05T13:54:24.311Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-10-05T13:54:25.256Z] runbld>>> Debug logging enabled.
[2020-10-05T13:54:25.256Z] runbld>>> Storing result
[2020-10-05T13:54:25.518Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-10-05T13:54:25.518Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005135425-B480BC1B
[2020-10-05T13:54:25.518Z] runbld>>> Adding system facts.
[2020-10-05T13:54:26.911Z] runbld>>> Adding vcs info for the latest commit:  0684a38b477281ea14b176c434908b44d329d6df
[2020-10-05T13:54:26.911Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-10-05T13:54:26.911Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-10-05T13:54:26.911Z] + echo 'Processing JUnit reports with runbld...'
[2020-10-05T13:54:26.911Z] Processing JUnit reports with runbld...
[2020-10-05T13:54:27.174Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-10-05T13:54:27.174Z] runbld>>> DURATION: 56ms
[2020-10-05T13:54:27.174Z] runbld>>> STDOUT: 40 bytes
[2020-10-05T13:54:27.174Z] runbld>>> STDERR: 49 bytes
[2020-10-05T13:54:27.174Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-10-05T13:54:27.174Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21466
[2020-10-05T13:54:28.123Z] runbld>>> Storing build metadata: 
[2020-10-05T13:54:28.123Z] runbld>>> Adding test report.
[2020-10-05T13:54:28.123Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats
[2020-10-05T13:54:29.070Z] runbld>>> Found 121 test output files
[2020-10-05T13:54:29.648Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-metricbeat-build-1601905657371/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-10-05T13:54:29.648Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-metricbeat-build-1601905657371/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-10-05T13:54:29.648Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-metricbeat-build-1601905657371/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-10-05T13:54:29.648Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-metricbeat-build-1601905657371/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-10-05T13:54:29.648Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/x-pack-metricbeat-build-1601905657371/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-10-05T13:54:31.569Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/metricbeat-goIntegTest-1601904409657/metricbeat/build/TEST-go-integration-graphite.xml
[2020-10-05T13:54:31.569Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21466/src/github.com/elastic/beats/metricbeat-goIntegTest-1601904409657/metricbeat/build/TEST-go-integration-windows.xml
[2020-10-05T13:54:32.141Z] runbld>>> Test output logs contained: Errors: 0 Failures: 12 Tests: 17583 Skipped: 1074
[2020-10-05T13:54:32.403Z] runbld>>> Storing result
[2020-10-05T13:54:32.403Z] runbld>>> FAILURES: 12
[2020-10-05T13:54:34.950Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-10-05T13:54:34.950Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005135425-B480BC1B
[2020-10-05T13:54:35.211Z] runbld>>> Email notification disabled by environment variable.
[2020-10-05T13:54:35.211Z] runbld>>> Slack notification disabled by environment variable.
[2020-10-05T13:54:40.689Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21466
[2020-10-05T13:54:40.718Z] [INFO] getVaultSecret: Getting secrets
[2020-10-05T13:54:40.796Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-05T13:54:41.378Z] + chmod 755 generate-build-data.sh
[2020-10-05T13:54:41.378Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21466/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21466/runs/5 FAILURE 5090399
[2020-10-05T13:54:41.378Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21466/runs/5/steps/?limit=10000 -o steps-info.json
[2020-10-05T13:54:45.501Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21466/runs/5/tests/?status=FAILED -o tests-errors.json
[2020-10-05T13:54:46.412Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21466/runs/5/log/ -o pipeline-log.txt

…-matches-found

* upstream/master: (21 commits)
  Skip filestream flaky tests (elastic#21490)
  Ignore unsupported metrics in the azure module (elastic#21486)
  Do not run symlink tests on Windows (elastic#21472)
  Map `cloud.account.id` to azure sub id (elastic#21483)
  Add support for app_state metricset (elastic#20639)
  Include original error when metricbeat fails to connect with Kafka (elastic#21484)
  Prompt only when agent is already enrolled (elastic#21473)
  Fix leftover delpoyment example (elastic#21474)
  Bump version to ECS 1.6 in modules without ECS updates (elastic#21455)
  Clarify input type configuration options (elastic#19284)
  Increase index pattern size check to 10MiB (elastic#21487)
  Migrate S3 Input to Filebeat Input V2 (elastic#20005)
  [libbeat] Add configurable exponential backoff for disk queue write errors (elastic#21493)
  Revert "Revert "[JJBB] Set shallow cloning to 10 (elastic#21409)" (elastic#21447)" (elastic#21467)
  Fix format of debug messages in tlscommon (elastic#21482)
  [CI] Change x-pack/auditbeat build events (comments, labels) (elastic#21463)
  [CI] changeset from elastic#20603 was not added to CI2.0 (elastic#21464)
  Add new log file reader for filestream input (elastic#21450)
  [CI] Send slack message with build status (elastic#21428)
  Remove duplicated sources url in dependencies report (elastic#21462)
  ...
Comment on lines +348 to +352
if (isUnix()) {
cmd(label: 'Delete folders that are causing exceptions (See JENKINS-58421)',
returnStatus: true,
script: 'rm -rf ve || true; find . -type d -name vendor -exec rm -r {} \\;')
} else { log(level: 'INFO', text: 'Delete folders that are causing exceptions (See JENKINS-58421) is disabled for Windows.') }
Copy link
Member Author

Choose a reason for hiding this comment

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

Clean the build artifacts when the folder is too big!

if (isUnix()) {
cmd(label: 'Delete folders that are causing exceptions (See JENKINS-58421)',
returnStatus: true,
script: 'rm -rf ve || true; find . -type d -name vendor -exec rm -r {} \\;')
Copy link
Member Author

Choose a reason for hiding this comment

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

I've no clue where the ve folder is defined, but it's there for the libbeat

[2020-10-05T11:59:25.997Z] + echo libbeat-build
[2020-10-05T11:59:25.998Z] libbeat-build
[2020-10-05T11:59:25.998Z] + ls -ltrah
[2020-10-05T11:59:25.998Z] total 20K
[2020-10-05T11:59:25.998Z] drwxr-xr-x 258 jenkins jenkins 4.0K Oct  5 11:51 docker-gocache
[2020-10-05T11:59:25.998Z] drwxr-xr-x   3 jenkins jenkins 4.0K Oct  5 11:56 ve
[2020-10-05T11:59:25.998Z] drwxr-xr-x   3 jenkins jenkins 4.0K Oct  5 11:59 libbeat
[2020-10-05T11:59:25.998Z] drwxr-xr-x   5 jenkins jenkins 4.0K Oct  5 11:59 .
[2020-10-05T11:59:25.998Z] drwxr-xr-x  26 jenkins jenkins 4.0K Oct  5 11:59 ..
[2020-10-05T11:59:25.998Z] + find . -name build -ls
[2020-10-05T11:59:25.998Z]   5167709      4 drwxr-xr-x   3 jenkins  jenkins      4096 Oct  5 11:59 ./libbeat/build
[2020-10-05T11:59:25.998Z]   5430897      4 drwxr-xr-x   3 jenkins  jenkins      4096 Oct  5 11:57 ./ve/docker/lib/python3.7/site-packages/pip/_internal/operations/build
``

Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC it's created for the integration tests and is created by a Makefile target. It's a Python virtual environment. Should be safe to delete.

junitAndStore(allowEmptyResults: true, keepLongStdio: true, testResults: args.testResults, stashedTestReports: stashedTestReports, id: args.id)
archiveArtifacts(allowEmptyArchive: true, artifacts: args.artifacts)
tar(file: "test-build-artifacts-${args.id}.tgz", dir: '.', archive: true, allowMissing: true)
Copy link
Member Author

Choose a reason for hiding this comment

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

This might help us to avoid the interruption error even when the cleanup defined above happened:

[2020-10-05T12:09:17.924Z] drwxr-xr-x  26 jenkins jenkins 4.0K Oct  5 12:09 ..
[2020-10-05T12:09:17.924Z] + find . -name build -ls
[2020-10-05T12:09:17.924Z]   5170689      4 drwxr-xr-x   4 jenkins  jenkins      4096 Oct  5 12:09 ./metricbeat/build
[2020-10-05T12:09:17.924Z]   5168179      4 drwxr-xr-x   3 jenkins  jenkins      4096 Oct  5 11:39 ./ve/docker/lib/python3.7/site-packages/pip/_internal/operations/build
[2020-10-05T12:09:17.934Z] [Pipeline] isUnix
[2020-10-05T12:09:17.937Z] [Pipeline] sh
[2020-10-05T12:09:18.224Z] + rm -rf ve
[2020-10-05T12:09:18.224Z] + find . -type d -name vendor -exec rm -r {} ;
[2020-10-05T12:09:18.239Z] [Pipeline] junit
[2020-10-05T12:09:18.239Z] WARNING: Unknown parameter(s) found for class type 'hudson.tasks.junit.pipeline.JUnitResultsStep': id,stashedTestReports
[2020-10-05T12:09:18.242Z] Recording test results
[2020-10-05T12:09:19.975Z] [Pipeline] stash
[2020-10-05T12:09:20.208Z] Stashed 1 file(s)
[2020-10-05T12:09:20.213Z] [Pipeline] archiveArtifacts
[2020-10-05T12:09:20.219Z] Archiving artifacts
[2020-10-05T12:09:20.450Z] java.lang.InterruptedException: no matches found within 10000
[2020-10-05T12:09:20.450Z] 	at hudson.FilePath$ValidateAntFileMask.hasMatch(FilePath.java:2865)
[2020-10-05T12:09:20.450Z] 	at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2744)
[2020-10-05T12:09:20.450Z] 	at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2725)
[2020-10-05T12:09:20.450Z] 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3112)
[2020-10-05T12:09:20.450Z] Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from beats-ci-immutable-ubuntu-1804-1601897573326600637.c.elastic-ci-prod.internal/10.224.1.213:57106

@v1v v1v changed the title [CI] debug what stage causes 'no matches found within 10000' [CI] fix 'no matches found within 10000' Oct 5, 2020
@v1v v1v requested a review from a team October 5, 2020 14:52
@v1v v1v marked this pull request as ready for review October 5, 2020 14:52
Copy link
Contributor

@cachedout cachedout left a comment

Choose a reason for hiding this comment

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

This looks like a good fix. 👍

if (isUnix()) {
cmd(label: 'Delete folders that are causing exceptions (See JENKINS-58421)',
returnStatus: true,
script: 'rm -rf ve || true; find . -type d -name vendor -exec rm -r {} \\;')
Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC it's created for the integration tests and is created by a Makefile target. It's a Python virtual environment. Should be safe to delete.

@v1v v1v merged commit 527ce19 into elastic:master Oct 5, 2020
@v1v v1v deleted the feature/ci-fix-no-matches-found branch October 5, 2020 16:03
v1v added a commit to v1v/beats that referenced this pull request Oct 5, 2020
v1v added a commit to v1v/beats that referenced this pull request Oct 5, 2020
v1v added a commit to v1v/beats that referenced this pull request Oct 6, 2020
* upstream/master:
  [CI] Setup git config globally (elastic#21562)
  docs: update generate_fields_docs.py (elastic#21359)
  Add support for additional fields from V2 ALB logs (elastic#21540)
  Move Prometheus query & remote_write to GA (elastic#21507)
  feat: add a new step to run the e2e tests for certain parts of Beats (elastic#21100)
  [Elastic Agent] Add elastic agent ID and version to events from filebeat and metricbeat. (elastic#21543)
  Release cloudfoundry input and processor as GA (elastic#21525)
  [Packetbeat] New SIP protocol (elastic#21221)
  [Filebeat][New Module] Add support for Microsoft MTP / 365 Defender (elastic#21446)
  [Beats][pytest] Asserting if filebeat logs include errors (elastic#20999)
  junipersrx-module initial release (elastic#20017)
  Add a persistent cache for cloudfoundry metadata based on badger (elastic#20775)
  Add missing changelog entry for cisco umbrella (elastic#21550)
  [Elastic Agent] Add upgrade CLI to initiate upgrade of Agent locally (elastic#21425)
  Enable filestream input (elastic#21533)
  Add filestream input reader (elastic#21481)
  [CI] fix 'no matches found within 10000' (elastic#21466)
  Fix billing.go aws.GetStartTimeEndTime (elastic#21531)
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.

4 participants