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

Add vendoring to Google Cloud Functions again #21070

Merged
merged 4 commits into from
Sep 14, 2020

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Sep 14, 2020

What does this PR do?

This PR adds the vendor folder back the Cloud Functions of Functionbeat, so they can be used on GCP. This PR basically reverts the removal of the vendor builder functionality.

Why is it important?

The functions are currently broken, as there is no go.mod file and vendor folder. However, we cannot use go modules, because the Golang environment on GCP runs go version 1.13. Thus, we have to fall back to vendoring.

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.

Related issues

Closes #20830

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 14, 2020
@kvch
Copy link
Contributor Author

kvch commented Sep 14, 2020

jenkins run tests

@kvch kvch added the Team:Services (Deprecated) Label for the former Integrations-Services team label Sep 14, 2020
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 14, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Sep 14, 2020

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21070 updated]

  • Reason: Aborted from #7

  • Start Time: 2020-09-14T13:32:40.602+0000

  • Duration: 50 min 11 sec

  • Commit: 2fb057f

Test stats 🧪

Test Results
Failed 0
Passed 19158
Skipped 1767
Total 20925

Log output

Expand to view the last 100 lines of log output

[2020-09-14T14:22:03.652Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21070-6/source/source.tgz
[2020-09-14T14:22:03.673Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21070-6/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21070/source.tgz
[2020-09-14T14:22:12.986Z] + tar --version
[2020-09-14T14:22:13.295Z] + tar -xpf source.tgz
[2020-09-14T14:22:23.647Z] + rm source.tgz
[2020-09-14T14:22:23.662Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats
[2020-09-14T14:22:23.696Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Lint
[2020-09-14T14:22:23.793Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-09-14T14:22:23.902Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Winlogbeat-oss
[2020-09-14T14:22:24.006Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-09-14T14:22:24.114Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-09-14T14:22:24.226Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/dockerlogbeat
[2020-09-14T14:22:24.325Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Journalbeat
[2020-09-14T14:22:24.420Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-09-14T14:22:24.534Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-09-14T14:22:24.640Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-09-14T14:22:24.739Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-09-14T14:22:24.844Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-14T14:22:24.942Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-09-14T14:22:25.044Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Packetbeat-Linux
[2020-09-14T14:22:25.138Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-09-14T14:22:25.231Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-09-14T14:22:25.334Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Heartbeat-oss
[2020-09-14T14:22:25.430Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-09-14T14:22:25.535Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-09-14T14:22:25.639Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Heartbeat-Windows
[2020-09-14T14:22:25.735Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-09-14T14:22:25.840Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-09-14T14:22:25.933Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-09-14T14:22:26.037Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-09-14T14:22:26.141Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-09-14T14:22:26.256Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-09-14T14:22:26.495Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-09-14T14:22:26.603Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-14T14:22:26.710Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Libbeat-x-pack
[2020-09-14T14:22:26.818Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-09-14T14:22:26.942Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-09-14T14:22:27.039Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-14T14:22:27.149Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-14T14:22:27.286Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Functionbeat-Windows
[2020-09-14T14:22:27.397Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-09-14T14:22:27.517Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-09-14T14:22:27.621Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-09-14T14:22:27.728Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Packetbeat-Windows
[2020-09-14T14:22:27.819Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-Windows
[2020-09-14T14:22:27.913Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-09-14T14:22:28.019Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-09-14T14:22:28.120Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-09-14T14:22:28.221Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-14T14:22:28.327Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Libbeat-oss
[2020-09-14T14:22:28.443Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-oss
[2020-09-14T14:22:28.538Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-09-14T14:22:28.962Z] + cat
[2020-09-14T14:22:28.962Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-14T14:22:28.962Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-14T14:22:35.562Z] runbld>>> runbld started
[2020-09-14T14:22:35.562Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-14T14:22:36.512Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-14T14:22:36.512Z] runbld>>> Matches in the system config:
[2020-09-14T14:22:36.512Z] runbld>>> - Matched ^elastic\+beats
[2020-09-14T14:22:36.512Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-14T14:22:37.898Z] runbld>>> Debug logging enabled.
[2020-09-14T14:22:37.898Z] runbld>>> Storing result
[2020-09-14T14:22:38.163Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-14T14:22:38.163Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200914142237-7099BFAA
[2020-09-14T14:22:38.163Z] runbld>>> Adding system facts.
[2020-09-14T14:22:39.106Z] runbld>>> Adding vcs info for the latest commit:  2fb057f993edb0af11930b0ec38612705adf3a5a
[2020-09-14T14:22:39.106Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-14T14:22:39.106Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-14T14:22:39.106Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-14T14:22:39.106Z] Processing JUnit reports with runbld...
[2020-09-14T14:22:39.368Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-14T14:22:39.368Z] runbld>>> DURATION: 24ms
[2020-09-14T14:22:39.368Z] runbld>>> STDOUT: 40 bytes
[2020-09-14T14:22:39.368Z] runbld>>> STDERR: 49 bytes
[2020-09-14T14:22:39.368Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-14T14:22:39.368Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21070
[2020-09-14T14:22:40.312Z] runbld>>> Storing build metadata: 
[2020-09-14T14:22:40.312Z] runbld>>> Adding test report.
[2020-09-14T14:22:40.312Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats
[2020-09-14T14:22:41.257Z] runbld>>> Found 117 test output files
[2020-09-14T14:22:42.644Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-14T14:22:42.644Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-14T14:22:42.644Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-14T14:22:42.644Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-14T14:22:43.590Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-14T14:22:44.171Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 20772 Skipped: 1543
[2020-09-14T14:22:44.435Z] runbld>>> Storing result
[2020-09-14T14:22:44.435Z] runbld>>> FAILURES: 0
[2020-09-14T14:22:44.697Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-14T14:22:44.698Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200914142237-7099BFAA
[2020-09-14T14:22:44.698Z] runbld>>> Email notification disabled by environment variable.
[2020-09-14T14:22:44.698Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-14T14:22:50.499Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21070
[2020-09-14T14:22:50.799Z] [INFO] getVaultSecret: Getting secrets
[2020-09-14T14:22:50.892Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-14T14:22:51.910Z] + chmod 755 generate-build-data.sh
[2020-09-14T14:22:51.910Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/runs/6 ABORTED 3011044
[2020-09-14T14:22:51.910Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/runs/6/steps/?limit=10000 -o steps-info.json
[2020-09-14T14:22:55.139Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/runs/6/tests/?status=FAILED -o tests-errors.json

@kvch kvch force-pushed the fix-functionbeat-vendoring branch 2 times, most recently from 9edd3bb to d5615b0 Compare September 14, 2020 13:07
@kvch kvch marked this pull request as ready for review September 14, 2020 13:13
@elasticmachine
Copy link
Collaborator

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

@kvch kvch added needs_backport PR is waiting to be backported to other branches. review labels Sep 14, 2020
@kvch kvch force-pushed the fix-functionbeat-vendoring branch from 9415675 to 2fb057f Compare September 14, 2020 13:31
@kvch kvch merged commit 50ea11a into elastic:master Sep 14, 2020
kvch added a commit to kvch/beats that referenced this pull request Sep 14, 2020
## What does this PR do?

This PR adds the vendor folder back the Cloud Functions of Functionbeat, so they can be used on GCP. This PR basically reverts the removal of the vendor builder functionality.

## Why is it important?

The functions are currently broken, as there is no go.mod file and vendor folder. However, we cannot use go modules, because the Golang environment on GCP runs go version 1.13. Thus, we have to fall back to vendoring.

## Checklist

- [x] My code follows the style guidelines of this project
- [x] 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~~
- [x] I have added an entry in `CHANGELOG.next.asciidoc` or `CHANGELOG-developer.next.asciidoc`.

## Related issues

Closes elastic#20830

(cherry picked from commit 50ea11a)
@kvch kvch added v7.10.0 and removed needs_backport PR is waiting to be backported to other branches. labels Sep 14, 2020
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21070 updated]

  • Start Time: 2020-09-14T14:18:35.810+0000

  • Duration: 72 min 53 sec

Test stats 🧪

Test Results
Failed 1
Passed 20182
Skipped 1837
Total 22020

Test errors

Expand to view the tests failures

  • Name: Build and Test / Filebeat oss / test_default_settings – filebeat.tests.system.test_autodiscover.TestAutodiscover

    • Age: 8
    • Duration: 90.003
    • Error Details: Failed: Timeout >90.0s

Steps errors

Expand to view the steps failures

  • Name: Mage build test
    • Description: mage build test

    • Duration: 26 min 49 sec

    • Start Time: 2020-09-14T14:44:01.177+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-14T15:29:58.545Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats
[2020-09-14T15:29:58.568Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Lint
[2020-09-14T15:29:58.659Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Winlogbeat-oss
[2020-09-14T15:29:58.747Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-09-14T15:29:58.828Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-09-14T15:29:58.909Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Journalbeat
[2020-09-14T15:29:58.995Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/dockerlogbeat
[2020-09-14T15:29:59.083Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-09-14T15:29:59.171Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-09-14T15:29:59.266Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Packetbeat-Linux
[2020-09-14T15:29:59.349Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-09-14T15:29:59.455Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-09-14T15:29:59.555Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Heartbeat-oss
[2020-09-14T15:29:59.647Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-09-14T15:29:59.740Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-09-14T15:29:59.844Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-09-14T15:29:59.953Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Heartbeat-Windows
[2020-09-14T15:30:00.044Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-09-14T15:30:00.128Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-09-14T15:30:00.230Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-09-14T15:30:00.333Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-14T15:30:00.419Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Libbeat-x-pack
[2020-09-14T15:30:00.508Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Functionbeat-Windows
[2020-09-14T15:30:00.592Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-09-14T15:30:00.676Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-14T15:30:00.760Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Packetbeat-Windows
[2020-09-14T15:30:00.845Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-Windows
[2020-09-14T15:30:00.946Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-09-14T15:30:01.037Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-09-14T15:30:01.119Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-09-14T15:30:01.220Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-09-14T15:30:01.312Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-14T15:30:01.403Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-09-14T15:30:01.492Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-14T15:30:01.576Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-09-14T15:30:01.662Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-14T15:30:01.747Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-09-14T15:30:01.943Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-09-14T15:30:02.031Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-09-14T15:30:02.118Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-09-14T15:30:02.221Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Filebeat-oss
[2020-09-14T15:30:02.311Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Libbeat-oss
[2020-09-14T15:30:02.394Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-09-14T15:30:02.478Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-09-14T15:30:02.565Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-09-14T15:30:02.648Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-09-14T15:30:02.732Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-09-14T15:30:02.812Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-09-14T15:30:02.894Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-09-14T15:30:03.307Z] + cat
[2020-09-14T15:30:03.307Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-14T15:30:03.307Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-14T15:30:11.466Z] runbld>>> runbld started
[2020-09-14T15:30:11.466Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-14T15:30:12.860Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-14T15:30:12.860Z] runbld>>> Matches in the system config:
[2020-09-14T15:30:12.860Z] runbld>>> - Matched ^elastic\+beats
[2020-09-14T15:30:12.860Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-14T15:30:14.253Z] runbld>>> Debug logging enabled.
[2020-09-14T15:30:14.253Z] runbld>>> Storing result
[2020-09-14T15:30:14.253Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-14T15:30:14.253Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200914153013-E416EFF8
[2020-09-14T15:30:14.253Z] runbld>>> Adding system facts.
[2020-09-14T15:30:15.646Z] runbld>>> Adding vcs info for the latest commit:  e74d58fdca50987ac4a9bf3176ab804692e2dcbd
[2020-09-14T15:30:15.647Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-14T15:30:15.647Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-14T15:30:15.647Z] Processing JUnit reports with runbld...
[2020-09-14T15:30:15.647Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-14T15:30:15.909Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-14T15:30:15.909Z] runbld>>> DURATION: 22ms
[2020-09-14T15:30:15.909Z] runbld>>> STDOUT: 40 bytes
[2020-09-14T15:30:15.909Z] runbld>>> STDERR: 49 bytes
[2020-09-14T15:30:15.909Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-14T15:30:15.909Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21070
[2020-09-14T15:30:16.858Z] runbld>>> Storing build metadata: 
[2020-09-14T15:30:16.858Z] runbld>>> Adding test report.
[2020-09-14T15:30:16.858Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats
[2020-09-14T15:30:17.805Z] runbld>>> Found 140 test output files
[2020-09-14T15:30:19.236Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-14T15:30:19.236Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-14T15:30:19.500Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-14T15:30:19.500Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-14T15:30:19.500Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-14T15:30:20.895Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-14T15:30:20.895Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21070/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-14T15:30:21.470Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 21867 Skipped: 1564
[2020-09-14T15:30:21.470Z] runbld>>> Storing result
[2020-09-14T15:30:21.470Z] runbld>>> FAILURES: 1
[2020-09-14T15:30:22.046Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-14T15:30:22.046Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200914153013-E416EFF8
[2020-09-14T15:30:22.046Z] runbld>>> Email notification disabled by environment variable.
[2020-09-14T15:30:22.046Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-14T15:30:27.829Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21070
[2020-09-14T15:30:28.062Z] [INFO] getVaultSecret: Getting secrets
[2020-09-14T15:30:28.142Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-14T15:30:28.858Z] + chmod 755 generate-build-data.sh
[2020-09-14T15:30:28.858Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/runs/7 FAILURE 4312787
[2020-09-14T15:30:28.858Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/runs/7/steps/?limit=10000 -o steps-info.json
[2020-09-14T15:30:31.341Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/runs/7/tests/?status=FAILED -o tests-errors.json
[2020-09-14T15:30:32.251Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21070/runs/7/log/ -o pipeline-log.txt

kvch added a commit to kvch/beats that referenced this pull request Sep 14, 2020
## What does this PR do?

This PR adds the vendor folder back the Cloud Functions of Functionbeat, so they can be used on GCP. This PR basically reverts the removal of the vendor builder functionality.

## Why is it important?

The functions are currently broken, as there is no go.mod file and vendor folder. However, we cannot use go modules, because the Golang environment on GCP runs go version 1.13. Thus, we have to fall back to vendoring.

## Checklist

- [x] My code follows the style guidelines of this project
- [x] 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~~
- [x] I have added an entry in `CHANGELOG.next.asciidoc` or `CHANGELOG-developer.next.asciidoc`.

## Related issues

Closes elastic#20830

(cherry picked from commit 50ea11a)
@kvch kvch added the v7.9.2 label Sep 14, 2020
kvch added a commit that referenced this pull request Sep 14, 2020
## What does this PR do?

This PR adds the vendor folder back the Cloud Functions of Functionbeat, so they can be used on GCP. This PR basically reverts the removal of the vendor builder functionality.

## Why is it important?

The functions are currently broken, as there is no go.mod file and vendor folder. However, we cannot use go modules, because the Golang environment on GCP runs go version 1.13. Thus, we have to fall back to vendoring.

## Checklist

- [x] My code follows the style guidelines of this project
- [x] 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~~
- [x] I have added an entry in `CHANGELOG.next.asciidoc` or `CHANGELOG-developer.next.asciidoc`.

## Related issues

Closes #20830

(cherry picked from commit 50ea11a)
kvch added a commit that referenced this pull request Sep 14, 2020
…ain (#21079)

* Add Known issues section with an issue about Functionbeat

* Add vendoring to Google Cloud Functions again (#21070)

## What does this PR do?

This PR adds the vendor folder back the Cloud Functions of Functionbeat, so they can be used on GCP. This PR basically reverts the removal of the vendor builder functionality.

## Why is it important?

The functions are currently broken, as there is no go.mod file and vendor folder. However, we cannot use go modules, because the Golang environment on GCP runs go version 1.13. Thus, we have to fall back to vendoring.

## Checklist

- [x] My code follows the style guidelines of this project
- [x] 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~~
- [x] I have added an entry in `CHANGELOG.next.asciidoc` or `CHANGELOG-developer.next.asciidoc`.

## Related issues

Closes #20830

(cherry picked from commit 50ea11a)
v1v added a commit to v1v/beats that referenced this pull request Sep 14, 2020
* upstream/master: (362 commits)
  Add vendoring to Google Cloud Functions again (elastic#21070)
  [Elastic Agent] Add fleet.host.id for sending to endpoint. (elastic#21042)
  Do not need Google credentials before using it (elastic#21072)
  [Filebeat][New Module] Zoom webhook module (elastic#20414)
  Add support for GMT timezone offset in decode_cef (elastic#20993)
  Filebeat: Fix random error on harvester close (elastic#21048)
  Add ingress controller dashboards (elastic#21052)
  Fix loggers in composable module. (elastic#21047)
  [Ingest Manager] Increase kibana client timeout to 5 minutes (elastic#21037)
  Add changelog. (elastic#21041)
  [Elastic Agent] Add support for EQL based conditions (elastic#20994)
  Disable Kafka metricsets based on Jolokia (elastic#20989)
  Update apm agent (elastic#21031)
  Add container ECS fields in kubernetes metadata (elastic#20984)
  Sanitize event.host in Metricbeat (elastic#21022)
  Update api-keys.asciidoc - API key prerequisites (elastic#21026)
  [Filebeat][suricata] Map x509 for suricata/eve fileset (elastic#20973)
  [Filebeat][santa] Map x509 fields in santa module (elastic#20976)
  [Filebeat][fortinet] Map x509 ecs fields for fortinet fw fileset (elastic#20983)
  Bump zeek kerberos/ssl/x509 ecs version (elastic#21003)
  ...
v1v added a commit to v1v/beats that referenced this pull request Sep 14, 2020
* upstream/master: (364 commits)
  Add vendoring to Google Cloud Functions again (elastic#21070)
  [Elastic Agent] Add fleet.host.id for sending to endpoint. (elastic#21042)
  Do not need Google credentials before using it (elastic#21072)
  [Filebeat][New Module] Zoom webhook module (elastic#20414)
  Add support for GMT timezone offset in decode_cef (elastic#20993)
  Filebeat: Fix random error on harvester close (elastic#21048)
  Add ingress controller dashboards (elastic#21052)
  Fix loggers in composable module. (elastic#21047)
  [Ingest Manager] Increase kibana client timeout to 5 minutes (elastic#21037)
  Add changelog. (elastic#21041)
  [Elastic Agent] Add support for EQL based conditions (elastic#20994)
  Disable Kafka metricsets based on Jolokia (elastic#20989)
  Update apm agent (elastic#21031)
  Add container ECS fields in kubernetes metadata (elastic#20984)
  Sanitize event.host in Metricbeat (elastic#21022)
  Update api-keys.asciidoc - API key prerequisites (elastic#21026)
  [Filebeat][suricata] Map x509 for suricata/eve fileset (elastic#20973)
  [Filebeat][santa] Map x509 fields in santa module (elastic#20976)
  [Filebeat][fortinet] Map x509 ecs fields for fortinet fw fileset (elastic#20983)
  Bump zeek kerberos/ssl/x509 ecs version (elastic#21003)
  ...
@rayward
Copy link

rayward commented Sep 15, 2020

However, we cannot use go modules, because the Golang environment on GCP runs go version 1.13

I mentioned this on the referenced issue, but again the GCP documentation specifically calls out go modules as being supported - https://cloud.google.com/functions/docs/writing/specifying-dependencies-go

Wouldn't it just be a matter of having functionbeat generate a go.mod file to include in the zip?

v1v added a commit to v1v/beats that referenced this pull request Sep 18, 2020
…ne-2.0

* upstream/master: (44 commits)
  Update users.asciidoc (elastic#20802) (elastic#21108)
  Fix docker provider builder. (elastic#21118)
  [Elastic Agent] Add docker composable dynamic provider. (elastic#20842)
  Add new modules/filesets from rsa2elk for 7.10 (elastic#20820)
  Fix broken links to external websites (elastic#21061)
  [docs] typo in the command line (elastic#20799)
  [Filebeat] add panos type and sub_type (elastic#20912)
  Move the `compute_vm_scalset` to  a light metricset and map the cloud metadata (elastic#21038)
  [Filebeat] Add support for Cloudtrail digest files (elastic#21086)
  Add metrics collection from cost explorer into aws/billing metricset (elastic#20527)
  Add vendoring to Google Cloud Functions again (elastic#21070)
  [Elastic Agent] Add fleet.host.id for sending to endpoint. (elastic#21042)
  Do not need Google credentials before using it (elastic#21072)
  [Filebeat][New Module] Zoom webhook module (elastic#20414)
  Add support for GMT timezone offset in decode_cef (elastic#20993)
  Filebeat: Fix random error on harvester close (elastic#21048)
  Add ingress controller dashboards (elastic#21052)
  Fix loggers in composable module. (elastic#21047)
  [Ingest Manager] Increase kibana client timeout to 5 minutes (elastic#21037)
  Add changelog. (elastic#21041)
  ...
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…ions again (elastic#21079)

* Add Known issues section with an issue about Functionbeat

* Add vendoring to Google Cloud Functions again (elastic#21070)

## What does this PR do?

This PR adds the vendor folder back the Cloud Functions of Functionbeat, so they can be used on GCP. This PR basically reverts the removal of the vendor builder functionality.

## Why is it important?

The functions are currently broken, as there is no go.mod file and vendor folder. However, we cannot use go modules, because the Golang environment on GCP runs go version 1.13. Thus, we have to fall back to vendoring.

## Checklist

- [x] My code follows the style guidelines of this project
- [x] 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~~
- [x] I have added an entry in `CHANGELOG.next.asciidoc` or `CHANGELOG-developer.next.asciidoc`.

## Related issues

Closes elastic#20830

(cherry picked from commit 7c6df99)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Services (Deprecated) Label for the former Integrations-Services team v7.9.2 v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functionbeat 7.9.0 deploy failure on GCP
4 participants