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

Remove vendor folder from the repository #18655

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

kvch
Copy link
Contributor

@kvch kvch commented May 20, 2020

What does this PR do?

This PR removes the vendor folder from the repository.

By removing the folder we become vulnerable to new dangers:

  • a package becomes unavailable
  • temporary network errors

To combat these we are adopting Artifactory and mirroring these modules to our own infra. Before we merge this PR we need to make sure we are prepared to mitigate these issues. So a working Artifactory mirror is a must-have beforehand.

We decided to merge this without Artifactory. APM team had no issues with building their binaries consistently without an own package mirror, so we are positive this decision won't have a big impact on our builds.

To update dependencies, use the standard tools provided by Golang:

$ go get github.com/elastic/[email protected]
$ make notice

Why is it important?

We need to remove dependencies, as we are not allowed to vendor every dependency we use.

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.

@kvch kvch added [zube]: In Progress Team:Services (Deprecated) Label for the former Integrations-Services team labels May 20, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 20, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 20, 2020
@mtojek
Copy link
Contributor

mtojek commented May 20, 2020

Is there any recovery plan if the original source code of a dependency is removed? I mean, the author decides to remove the entire repository? Isn't it a too big risk?

@elasticmachine
Copy link
Collaborator

elasticmachine commented May 20, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Start Time: 2020-05-20T19:48:35.441+0000

  • Duration: 16 min 11 sec (971422)

Steps errors

Expand to view the steps failures

  • Name: Make check
    • Description: make check

    • Result: FAILURE

    • Duration: 1 min 45 sec

    • Start Time: 2020-05-20T20:03:34.298+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-20T20:04:23.408Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.411Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.411Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:23.412Z] Stage "Kubernetes" skipped due to earlier failure(s)
[2020-05-20T20:04:23.673Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.675Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:23.676Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.677Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:23.679Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.681Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.683Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.684Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.686Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:23.687Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:24.491Z] Failed in branch Elastic Agent x-pack
[2020-05-20T20:04:24.492Z] Failed in branch Elastic Agent x-pack Windows
[2020-05-20T20:04:24.492Z] Failed in branch Elastic Agent Mac OS X
[2020-05-20T20:04:24.493Z] Failed in branch Filebeat oss
[2020-05-20T20:04:24.494Z] Failed in branch Filebeat x-pack
[2020-05-20T20:04:24.495Z] Failed in branch Filebeat Mac OS X
[2020-05-20T20:04:24.496Z] Failed in branch Filebeat x-pack Mac OS X
[2020-05-20T20:04:24.496Z] Failed in branch Filebeat Windows
[2020-05-20T20:04:24.497Z] Failed in branch Filebeat x-pack Windows
[2020-05-20T20:04:24.498Z] Failed in branch Auditbeat x-pack
[2020-05-20T20:04:24.499Z] Failed in branch Libbeat x-pack
[2020-05-20T20:04:24.500Z] Failed in branch Metricbeat OSS Unit tests
[2020-05-20T20:04:24.501Z] Failed in branch Metricbeat OSS Integration tests
[2020-05-20T20:04:24.502Z] Failed in branch Metricbeat Python integration tests
[2020-05-20T20:04:24.503Z] Failed in branch Metricbeat crosscompile
[2020-05-20T20:04:24.504Z] Failed in branch Metricbeat Mac OS X
[2020-05-20T20:04:24.504Z] Failed in branch Metricbeat x-pack Mac OS X
[2020-05-20T20:04:24.505Z] Failed in branch Metricbeat Windows
[2020-05-20T20:04:24.506Z] Failed in branch Metricbeat x-pack Windows
[2020-05-20T20:04:24.507Z] Failed in branch Winlogbeat Windows x-pack
[2020-05-20T20:04:24.508Z] Failed in branch Kubernetes
[2020-05-20T20:04:24.961Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:24.962Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:24.964Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:24.965Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:24.966Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:24.967Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:24.968Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:25.032Z] Failed in branch Packetbeat
[2020-05-20T20:04:25.034Z] Failed in branch dockerlogbeat
[2020-05-20T20:04:25.035Z] Failed in branch Journalbeat
[2020-05-20T20:04:25.386Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:25.388Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:25.389Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:25.393Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:25.395Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:25.473Z] Failed in branch Metricbeat x-pack
[2020-05-20T20:04:25.475Z] Failed in branch Winlogbeat
[2020-05-20T20:04:25.729Z] Failed in branch Heartbeat
[2020-05-20T20:04:25.730Z] Failed in branch Libbeat
[2020-05-20T20:04:25.731Z] Failed in branch Functionbeat
[2020-05-20T20:04:25.731Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:25.733Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:25.897Z] Failed in branch Auditbeat oss
[2020-05-20T20:04:25.898Z] Failed in branch Generators
[2020-05-20T20:04:26.092Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18655/src/github.com/elastic/beats
[2020-05-20T20:04:26.477Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-20T20:04:26.492Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18655/src/github.com/elastic/beats/Lint
[2020-05-20T20:04:26.911Z] + cat
[2020-05-20T20:04:26.911Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-20T20:04:26.911Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-20T20:04:33.638Z] runbld>>> runbld started
[2020-05-20T20:04:33.638Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-20T20:04:35.575Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18655' in order of occurrence in the config (last value wins).
[2020-05-20T20:04:36.965Z] runbld>>> Debug logging enabled.
[2020-05-20T20:04:36.965Z] runbld>>> Storing result
[2020-05-20T20:04:36.965Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-20T20:04:36.965Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200520200436-C126D0BE
[2020-05-20T20:04:36.965Z] runbld>>> Adding system facts.
[2020-05-20T20:04:37.975Z] runbld>>> Adding vcs info for the latest commit:  3d5fb4b7db1c026c91b50908cfb23b70d1236064
[2020-05-20T20:04:37.975Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-20T20:04:37.975Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-20T20:04:37.975Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-20T20:04:37.975Z] Processing JUnit reports with runbld...
[2020-05-20T20:04:38.551Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-20T20:04:38.552Z] runbld>>> DURATION: 23ms
[2020-05-20T20:04:38.552Z] runbld>>> STDOUT: 40 bytes
[2020-05-20T20:04:38.552Z] runbld>>> STDERR: 49 bytes
[2020-05-20T20:04:38.552Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-20T20:04:38.552Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18655/src/github.com/elastic/beats
[2020-05-20T20:04:39.128Z] runbld>>> Storing build metadata: 
[2020-05-20T20:04:39.128Z] runbld>>> Adding test report.
[2020-05-20T20:04:39.128Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18655/src/github.com/elastic/beats
[2020-05-20T20:04:40.077Z] runbld>>> Found 0 test output files
[2020-05-20T20:04:40.077Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 0 Skipped: 0
[2020-05-20T20:04:40.077Z] runbld>>> Storing result
[2020-05-20T20:04:40.340Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-20T20:04:40.340Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200520200436-C126D0BE
[2020-05-20T20:04:40.340Z] runbld>>> Email notification disabled by environment variable.
[2020-05-20T20:04:40.340Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-20T20:04:46.218Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18655
[2020-05-20T20:04:46.340Z] [INFO] getVaultSecret: Getting secrets
[2020-05-20T20:04:46.411Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-20T20:04:47.131Z] + chmod 755 generate-build-data.sh
[2020-05-20T20:04:47.131Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/runs/4 FAILURE 971422
[2020-05-20T20:04:47.681Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/runs/4/steps/?limit=10000 -o steps-info.json

@kvch
Copy link
Contributor Author

kvch commented May 20, 2020

@mtojek It is indeed a big risk. That is why we are going to use Artifactory to mirror these packages. Adopting Artifactory is the second task from the todo list. I am rewording it to avoid confusion around the reason why we need it.

@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch from 729f91d to 445b035 Compare May 20, 2020 11:39
@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch 2 times, most recently from 68b026a to 6c96cd4 Compare June 3, 2020 08:31
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 3, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Start Time: 2020-06-26T16:00:24.058+0000

  • Duration: 59 min 59 sec

Steps errors

Expand to view the steps failures

Log output

Expand to view the last 100 lines of log output

[2020-06-26T16:55:50.299Z] Stage "Elastic Agent Mac OS X" skipped due to earlier failure(s)
[2020-06-26T16:55:50.325Z] Stage "Filebeat oss" skipped due to earlier failure(s)
[2020-06-26T16:55:50.327Z] Stage "Filebeat x-pack" skipped due to earlier failure(s)
[2020-06-26T16:55:50.608Z] Stage "Filebeat Mac OS X" skipped due to earlier failure(s)
[2020-06-26T16:55:50.615Z] Stage "Filebeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-06-26T16:55:50.621Z] Stage "Filebeat Windows" skipped due to earlier failure(s)
[2020-06-26T16:55:50.623Z] Stage "Filebeat x-pack Windows" skipped due to earlier failure(s)
[2020-06-26T16:55:50.624Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:50.625Z] Stage "Auditbeat oss Linux" skipped due to earlier failure(s)
[2020-06-26T16:55:50.626Z] Stage "Auditbeat crosscompile" skipped due to earlier failure(s)
[2020-06-26T16:55:50.628Z] Stage "Auditbeat oss Mac OS X" skipped due to earlier failure(s)
[2020-06-26T16:55:50.673Z] Stage "Auditbeat oss Windows" skipped due to earlier failure(s)
[2020-06-26T16:55:50.729Z] Stage "Auditbeat x-pack" skipped due to earlier failure(s)
[2020-06-26T16:55:50.732Z] Stage "Auditbeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-06-26T16:55:50.785Z] Stage "Auditbeat x-pack Windows" skipped due to earlier failure(s)
[2020-06-26T16:55:50.787Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:50.788Z] Stage "Libbeat x-pack" skipped due to earlier failure(s)
[2020-06-26T16:55:50.830Z] Stage "Metricbeat OSS Unit tests" skipped due to earlier failure(s)
[2020-06-26T16:55:50.832Z] Stage "Metricbeat OSS Integration tests" skipped due to earlier failure(s)
[2020-06-26T16:55:50.834Z] Stage "Metricbeat Python integration tests" skipped due to earlier failure(s)
[2020-06-26T16:55:50.835Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-06-26T16:55:50.836Z] Stage "Metricbeat crosscompile" skipped due to earlier failure(s)
[2020-06-26T16:55:50.837Z] Stage "Metricbeat Mac OS X" skipped due to earlier failure(s)
[2020-06-26T16:55:50.875Z] Stage "Metricbeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-06-26T16:55:50.905Z] Stage "Metricbeat Windows" skipped due to earlier failure(s)
[2020-06-26T16:55:50.908Z] Stage "Metricbeat x-pack Windows" skipped due to earlier failure(s)
[2020-06-26T16:55:50.950Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:50.951Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:50.952Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:50.971Z] Stage "Winlogbeat Windows x-pack" skipped due to earlier failure(s)
[2020-06-26T16:55:50.973Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:50.974Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:51.045Z] Stage "Generators" skipped due to earlier failure(s)
[2020-06-26T16:55:51.046Z] Stage "Kubernetes" skipped due to earlier failure(s)
[2020-06-26T16:55:53.059Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:53.061Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:53.063Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-06-26T16:55:53.064Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:53.066Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:53.067Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:53.069Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:53.070Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-06-26T16:55:53.214Z] Stage "Generators" skipped due to earlier failure(s)
[2020-06-26T16:56:09.259Z] Failed in branch Elastic Agent x-pack
[2020-06-26T16:56:09.260Z] Failed in branch Elastic Agent x-pack Windows
[2020-06-26T16:56:09.261Z] Failed in branch Elastic Agent Mac OS X
[2020-06-26T16:56:09.262Z] Failed in branch Filebeat oss
[2020-06-26T16:56:09.263Z] Failed in branch Filebeat x-pack
[2020-06-26T16:56:09.264Z] Failed in branch Filebeat Mac OS X
[2020-06-26T16:56:09.375Z] Failed in branch Filebeat x-pack Mac OS X
[2020-06-26T16:56:09.376Z] Failed in branch Filebeat Windows
[2020-06-26T16:56:09.377Z] Failed in branch Filebeat x-pack Windows
[2020-06-26T16:56:09.378Z] Failed in branch Auditbeat oss Linux
[2020-06-26T16:56:09.379Z] Failed in branch Auditbeat crosscompile
[2020-06-26T16:56:09.418Z] Failed in branch Auditbeat oss Mac OS X
[2020-06-26T16:56:09.419Z] Failed in branch Auditbeat oss Windows
[2020-06-26T16:56:09.420Z] Failed in branch Auditbeat x-pack
[2020-06-26T16:56:09.421Z] Failed in branch Auditbeat x-pack Mac OS X
[2020-06-26T16:56:09.422Z] Failed in branch Auditbeat x-pack Windows
[2020-06-26T16:56:09.423Z] Failed in branch Libbeat x-pack
[2020-06-26T16:56:09.457Z] Failed in branch Metricbeat OSS Unit tests
[2020-06-26T16:56:09.465Z] Failed in branch Metricbeat OSS Integration tests
[2020-06-26T16:56:09.466Z] Failed in branch Metricbeat Python integration tests
[2020-06-26T16:56:09.467Z] Failed in branch Metricbeat crosscompile
[2020-06-26T16:56:09.509Z] Failed in branch Metricbeat Mac OS X
[2020-06-26T16:56:09.510Z] Failed in branch Metricbeat x-pack Mac OS X
[2020-06-26T16:56:09.511Z] Failed in branch Metricbeat Windows
[2020-06-26T16:56:09.512Z] Failed in branch Metricbeat x-pack Windows
[2020-06-26T16:56:09.513Z] Failed in branch Winlogbeat Windows x-pack
[2020-06-26T16:56:09.514Z] Failed in branch Kubernetes
[2020-06-26T16:56:13.601Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-06-26T16:56:13.603Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-06-26T16:56:13.633Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-06-26T16:56:13.635Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-06-26T16:56:13.648Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-06-26T16:56:13.650Z] Stage "Generators" skipped due to earlier failure(s)
[2020-06-26T16:56:14.508Z] Failed in branch Packetbeat
[2020-06-26T16:56:14.510Z] Failed in branch dockerlogbeat
[2020-06-26T16:56:14.511Z] Failed in branch Journalbeat
[2020-06-26T16:56:17.844Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-06-26T16:56:17.846Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-06-26T16:56:17.847Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-06-26T16:56:17.870Z] Stage "Generators" skipped due to earlier failure(s)
[2020-06-26T16:56:19.026Z] Failed in branch Metricbeat x-pack
[2020-06-26T16:56:19.027Z] Failed in branch Winlogbeat
[2020-06-26T16:56:21.803Z] Failed in branch Heartbeat
[2020-06-26T16:56:21.804Z] Failed in branch Libbeat
[2020-06-26T16:56:21.810Z] Failed in branch Functionbeat
[2020-06-26T16:56:21.811Z] Stage "Generators" skipped due to earlier failure(s)
[2020-06-26T16:56:22.853Z] Failed in branch Generators
[2020-06-26T16:57:15.371Z] Still waiting to schedule task
[2020-06-26T16:57:15.371Z] ‘beats-ci-immutable-ubuntu-1404-i386-1592907156316983105’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593186921995002759’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593186945701733538’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593186969902310069’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593187018599220857’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593187104698796426’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593187670599834478’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593187772496939062’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593187835402578093’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593187900896173639’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188090603043398’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188115896976732’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188445297689763’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188652097889611’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188652097911909’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188718395240663’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188759101234762’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188850696912969’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188891298835451’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593188968398331235’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189146697044942’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189172399518660’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189172399599482’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189267526199907’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189267526559704’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189376321610407’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189471238735501’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593189523622104023’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593190391223851785’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593190391223889660’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593190572411576532’ is offline; ‘beats-ci-immutable-ubuntu-1604-1593190572411738989’ is offline; ‘beats-ci-immutable-windows-2019-1593188785295710813’ is offline; ‘beats-ci-immutable-windows-2019-1593188824800125872’ is offline; ‘beats-ci-immutable-windows-2019-1593188850696870246’ is offline; ‘beats-ci-immutable-windows-2019-1593188916496345298’ is offline; ‘beats-ci-immutable-windows-2019-1593189034524837286’ is offline; ‘beats-ci-immutable-windows-2019-1593189213725436367’ is offline; ‘beats-ci-immutable-windows-2019-1593189254214788302’ is offline; ‘beats-ci-immutable-windows-2019-1593189442822922604’ is offline; ‘beats-ci-immutable-windows-2019-1593189442822986074’ is offline; ‘beats-ci-immutable-windows-2019-1593189498001546994’ is offline; ‘beats-ci-immutable-windows-2019-1593189498001622132’ is offline; ‘beats-ci-immutable-windows-2019-1593189510720402221’ is offline; ‘beats-windows-10-test-dj’ doesn’t have label ‘master||metal||immutable’; ‘dj-windows-7-7zip-check’ doesn’t have label ‘master||metal||immutable’; ‘worker-0a434dec4bdcd060f’ doesn’t have label ‘master||metal||immutable’
[2020-06-26T16:59:21.514Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18655
[2020-06-26T16:59:21.715Z] [INFO] getVaultSecret: Getting secrets
[2020-06-26T16:59:21.919Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-06-26T16:59:22.998Z] + chmod 755 generate-build-data.sh
[2020-06-26T16:59:22.998Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/runs/46 FAILURE 3538657
[2020-06-26T16:59:22.999Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/runs/46/steps/?limit=10000 -o steps-info.json
[2020-06-26T16:59:23.909Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/runs/46/tests/?status=FAILED -o tests-errors.json
[2020-06-26T16:59:24.160Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18655/runs/46/log/ -o pipeline-log.txt

@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch from 6c96cd4 to 484a407 Compare June 3, 2020 08:56
@kvch kvch requested a review from a team as a code owner June 3, 2020 08:56
@botelastic botelastic bot added the Team:Automation Label for the Observability productivity team label Jun 3, 2020
@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch from 484a407 to b6475c4 Compare June 5, 2020 11:40
@kvch kvch requested a review from a team as a code owner June 8, 2020 13:00
@kvch
Copy link
Contributor Author

kvch commented Jun 9, 2020

jenkins run tests

@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch 2 times, most recently from f2c1438 to 3c11eb0 Compare June 10, 2020 12:21
@cachedout cachedout mentioned this pull request Jun 10, 2020
6 tasks
@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch 3 times, most recently from 1b8983b to 612dbdf Compare June 15, 2020 14:49
@kvch kvch requested a review from a team as a code owner June 15, 2020 14:49
@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch 5 times, most recently from 0ec883c to 132362b Compare June 18, 2020 12:31
@kvch
Copy link
Contributor Author

kvch commented Jun 25, 2020

Our policy requires us only to add the contents of the NOTICE files of each third party dependency. We do not have to add any additional stuff. The only reason we might do is to have information about our dependencies at that point in time.

@kvch
Copy link
Contributor Author

kvch commented Jun 25, 2020

I've rebased the branch and addressed the docs issues.

@urso
Copy link

urso commented Jun 25, 2020

Our policy requires us only to add the contents of the NOTICE files of each third party dependency. We do not have to add any additional stuff. The only reason we might do is to have information about our dependencies at that point in time.

👍 Thanks for clarification.

Copy link

@urso urso left a comment

Choose a reason for hiding this comment

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

PR is quite big, which makes it a little difficult to see all changes.
Looks like vendor has been removed correctly in every go command and NOTICE file is generated. All in all LGTM

Most important are NOTICE file and green CI. Please make sure to have a green CI before merging.

Please have this reviewed by at least another Person.

@kvch
Copy link
Contributor Author

kvch commented Jun 25, 2020

run beats-ci/package

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

Looks good, I have added some small comments on mage and make targets.

dev-tools/mage/gomod.go Outdated Show resolved Hide resolved
dev-tools/mage/gomod.go Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
libbeat/scripts/Makefile Outdated Show resolved Hide resolved
magefile.go Show resolved Hide resolved
@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch from d520585 to 58c06ee Compare June 25, 2020 15:00
@kvch
Copy link
Contributor Author

kvch commented Jun 25, 2020

run beats-ci/package

@kuisathaverat
Copy link
Contributor

/packaging

@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch from 58c06ee to 7bff601 Compare June 25, 2020 17:18
@kvch
Copy link
Contributor Author

kvch commented Jun 25, 2020

/packaging

@kvch kvch force-pushed the refactoring-libbeat-remove-vendor-folder branch from 7bff601 to 921859f Compare June 26, 2020 11:17
@kvch
Copy link
Contributor Author

kvch commented Jun 26, 2020

/packaging

@kvch
Copy link
Contributor Author

kvch commented Jun 26, 2020

jenkins run tests

@kvch
Copy link
Contributor Author

kvch commented Jun 26, 2020

jenkins run tests please

@kvch
Copy link
Contributor Author

kvch commented Jun 29, 2020

/packaging

@kvch kvch merged commit 5426df0 into elastic:master Jun 29, 2020
kvch added a commit to kvch/beats that referenced this pull request Jun 29, 2020
To update or add a dependency use the standard tools provided by Golang.
(cherry picked from commit 5426df0)
@kvch kvch added the v7.9.0 label Jun 29, 2020
kvch added a commit that referenced this pull request Jun 29, 2020
…19477)

* Remove vendor folder from repository (#18655)

To update or add a dependency use the standard tools provided by Golang.
(cherry picked from commit 5426df0)

* Fix golang.org/x/tools to release1.13 (#19478)
jorgelbg added a commit to jorgelbg/beats that referenced this pull request Jul 21, 2020
PR elastic#18655 removed the vendor folder.
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
To update or add a dependency use the standard tools provided by Golang.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Automation Label for the Observability productivity team Team:Services (Deprecated) Label for the former Integrations-Services team v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants