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 #20186 to 7.x: Prepare packaging for endpoint and asc files #20242

Closed
wants to merge 5 commits into from

Conversation

michalpristas
Copy link
Contributor

@michalpristas michalpristas commented Jul 27, 2020

Cherry pick of #20186 and #20019

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

What does this PR do?

This PR prepares packages.yml to include endpoint binaries and asc files.
It introduces skip_on_missing flag for these files so build/packaging job dont fail when files are not present.
combination of this PR and #19480 will result in package job not failing on missing when building locally but failing on missing when building using our relase pipeline.

Why is it important?

To have agent package with endpoint included

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@michalpristas michalpristas self-assigned this Jul 27, 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 Jul 27, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 27, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20242 updated]

  • Start Time: 2020-07-28T13:13:35.963+0000

  • Duration: 122 min 16 sec

Test stats 🧪

Test Results
Failed 14
Passed 9736
Skipped 1583
Total 11333

Test errors

Expand to view the tests failures

  • Name: Build and Test / Metricbeat OSS Unit tests / test_process – test_system.Test

    • Age: 1
    • Duration: 1.513
    • Error Details: False is not true : fd not found in any process events
  • Name: Build and Test / Auditbeat x-pack / test_connected_udp_ipv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.118
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_connected_udp_ipv6 – test_system_socket.Test

    • Age: 1
    • Duration: 60.105
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_enrichment – test_system_socket.Test

    • Age: 1
    • Duration: 60.107
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_long_request – test_system_socket.Test

    • Age: 1
    • Duration: 60.112
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_udp_ipv6 – test_system_socket.Test

    • Age: 1
    • Duration: 60.119
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_unidirectional_udp – test_system_socket.Test

    • Age: 1
    • Duration: 60.122
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_multi_udp_upv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.109
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_no_dns_enrichment – test_system_socket.Test

    • Age: 1
    • Duration: 60.108
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_tcp_ipv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.106
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_tcp_ipv6_disabled – test_system_socket.Test

    • Age: 1
    • Duration: 60.103
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_udp_ipv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.113
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_udp_ipv6 – test_system_socket.Test

    • Age: 1
    • Duration: 60.104
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_udp_ipv6_disabled – test_system_socket.Test

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

Steps errors

Expand to view the steps failures

  • Name: Mage update build test

    • Description: mage update build test

    • Duration: 22 min 56 sec

    • Start Time: 2020-07-28T13:37:25.414+0000

    • log

  • Name: Make testsuite

    • Description: make -C libbeat testsuite

    • Duration: 24 min 8 sec

    • Start Time: 2020-07-28T13:37:22.485+0000

    • log

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 9 min 58 sec

    • Start Time: 2020-07-28T13:37:27.274+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-28T14:52:24.638Z]  Experimental:      false
[2020-07-28T14:52:24.638Z] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[2020-07-28T14:52:24.638Z] It requires Docker daemon to be installed and running
[2020-07-28T14:52:57.431Z] Still waiting to schedule task
[2020-07-28T14:52:57.431Z] Waiting for next available executor on ‘macosx’
[2020-07-28T15:15:21.207Z] Cancelling nested steps due to timeout
[2020-07-28T15:15:21.347Z] Failed in branch Generators
[2020-07-28T15:15:21.479Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats
[2020-07-28T15:15:21.781Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-28T15:15:21.792Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Lint
[2020-07-28T15:15:21.880Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-28T15:15:21.967Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-28T15:15:22.048Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-28T15:15:22.143Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-28T15:15:22.232Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-28T15:15:22.310Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-28T15:15:22.392Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-28T15:15:22.484Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-28T15:15:22.560Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-28T15:15:22.645Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-28T15:15:22.724Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-28T15:15:22.811Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-28T15:15:22.889Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-28T15:15:22.962Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-28T15:15:23.039Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-28T15:15:23.118Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-28T15:15:23.193Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-07-28T15:15:23.268Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-28T15:15:23.347Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-28T15:15:23.440Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Packetbeat-oss
[2020-07-28T15:15:23.526Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-28T15:15:23.605Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-07-28T15:15:23.680Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-28T15:15:23.756Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-07-28T15:15:23.838Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-28T15:15:23.917Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-28T15:15:24.006Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-07-28T15:15:24.102Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-07-28T15:15:24.183Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-28T15:15:24.257Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-07-28T15:15:24.333Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Libbeat-oss
[2020-07-28T15:15:24.414Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Filebeat-oss
[2020-07-28T15:15:24.494Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-28T15:15:24.569Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-07-28T15:15:24.644Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-07-28T15:15:24.722Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-07-28T15:15:24.797Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-07-28T15:15:24.873Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-28T15:15:24.949Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-07-28T15:15:25.027Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Functionbeat-Windows
[2020-07-28T15:15:25.103Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Heartbeat-Windows
[2020-07-28T15:15:25.180Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-07-28T15:15:25.546Z] + cat
[2020-07-28T15:15:25.546Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-28T15:15:25.546Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-28T15:15:32.118Z] runbld>>> runbld started
[2020-07-28T15:15:32.118Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-28T15:15:34.027Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20242' in order of occurrence in the config (last value wins).
[2020-07-28T15:15:35.401Z] runbld>>> Debug logging enabled.
[2020-07-28T15:15:35.401Z] runbld>>> Storing result
[2020-07-28T15:15:35.660Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-28T15:15:35.660Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728151535-AC0B3C64
[2020-07-28T15:15:35.660Z] runbld>>> Adding system facts.
[2020-07-28T15:15:36.597Z] runbld>>> Adding vcs info for the latest commit:  79bce587809fcc5758668bf48e38fd8509ef30f9
[2020-07-28T15:15:36.597Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-28T15:15:36.597Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-28T15:15:36.858Z] Processing JUnit reports with runbld...
[2020-07-28T15:15:36.858Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-28T15:15:37.118Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-28T15:15:37.118Z] runbld>>> DURATION: 48ms
[2020-07-28T15:15:37.118Z] runbld>>> STDOUT: 40 bytes
[2020-07-28T15:15:37.118Z] runbld>>> STDERR: 49 bytes
[2020-07-28T15:15:37.118Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-28T15:15:37.118Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats
[2020-07-28T15:15:38.497Z] runbld>>> Storing build metadata: 
[2020-07-28T15:15:38.497Z] runbld>>> Adding test report.
[2020-07-28T15:15:38.497Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats
[2020-07-28T15:15:39.433Z] runbld>>> Found 114 test output files
[2020-07-28T15:15:40.002Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-07-28T15:15:40.002Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-07-28T15:15:40.002Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-07-28T15:15:40.002Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-07-28T15:15:40.002Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-07-28T15:15:40.569Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-07-28T15:15:40.569Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20242/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-07-28T15:15:41.970Z] runbld>>> Test output logs contained: Errors: 0 Failures: 14 Tests: 11187 Skipped: 1346
[2020-07-28T15:15:41.970Z] runbld>>> Storing result
[2020-07-28T15:15:41.970Z] runbld>>> FAILURES: 14
[2020-07-28T15:15:45.300Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-28T15:15:45.300Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728151535-AC0B3C64
[2020-07-28T15:15:45.300Z] runbld>>> Email notification disabled by environment variable.
[2020-07-28T15:15:45.300Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-28T15:15:50.824Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20242
[2020-07-28T15:15:50.928Z] [INFO] getVaultSecret: Getting secrets
[2020-07-28T15:15:51.003Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-28T15:15:51.865Z] + chmod 755 generate-build-data.sh
[2020-07-28T15:15:51.865Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20242/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20242/runs/4 FAILURE 7335642
[2020-07-28T15:15:51.865Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20242/runs/4/steps/?limit=10000 -o steps-info.json
[2020-07-28T15:15:54.348Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20242/runs/4/tests/?status=FAILED -o tests-errors.json
[2020-07-28T15:15:54.899Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20242/runs/4/log/ -o pipeline-log.txt

andrewvc added a commit that referenced this pull request Aug 18, 2020
… to X-Pack (#20638)


Cherry-pick of PR #20549, #20566, and #20242 to 7.x branch. Original message:

There were a few issues with the package target for x-pack/heartbeat.

Update root Makefile to build packages for x-pack/heartbeat.
Update packaging CI job.
Magefile fixes (mostly with where the packaging spec was looking for files).

This also restructures the main magefile to share code with the x-pack.

This fixes the broken agent build which is trying to run mage build in the x-pack heartbeat folder.
@andrewvc
Copy link
Contributor

Closing, because we merged this in #20638

@andrewvc andrewvc closed this Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport enhancement Ingest Management:beta2 Group issues for ingest management beta2 review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants