Skip to content

Cherry-pick #20586 to 7.9: Use older version of github.com/dop251/goja_nodejs#20599

Merged
kvch merged 1 commit intoelastic:7.9from
kvch:backport_20586_7.9
Aug 26, 2020
Merged

Cherry-pick #20586 to 7.9: Use older version of github.com/dop251/goja_nodejs#20599
kvch merged 1 commit intoelastic:7.9from
kvch:backport_20586_7.9

Conversation

@kvch
Copy link
Copy Markdown
Contributor

@kvch kvch commented Aug 14, 2020

Cherry-pick of PR #20586 to 7.9 branch. Original message:

What does this PR do?

This PR pins the version of github.com/dop251/goja_nodejs.

Why is it important?

The recent update of this library leads to the following error when generating custom Beats:

mage GenerateCustomBeat
# github.com/dop251/goja_nodejs/require
/home/n/go/pkg/mod/github.com/dop251/goja_nodejs@v0.0.0-20200728182148-d8e650e3b24d/require/resolve.go:169:13: undefined: goja.StackFrame
/home/n/go/pkg/mod/github.com/dop251/goja_nodejs@v0.0.0-20200728182148-d8e650e3b24d/require/resolve.go:170:21: r.runtime.CaptureCallStack undefined (type *goja.Runtime has no field or method CaptureCallStack)
Error: error compiling magefiles

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 Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels Aug 14, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 14, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 14, 2020
@botelastic
Copy link
Copy Markdown

botelastic bot commented Aug 14, 2020

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20599 opened]

  • Start Time: 2020-08-14T08:34:48.774+0000

  • Duration: 97 min 5 sec

Test stats 🧪

Test Results
Failed 2
Passed 17654
Skipped 1832
Total 19488

Test errors

Expand to view the tests failures

  • Name: Build and Test / Auditbeat oss Mac OS X / TestEventReader – file_integrity

    • Age: 1
    • Duration: 1.2
    • Error Details: Failed
  • Name: Build and Test / Auditbeat oss Mac OS X / TestEventReader/created – file_integrity

    • Age: 1
    • Duration: 1.02
    • Error Details: Failed

Steps errors

Expand to view the steps failures

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 59 min 56 sec

    • Start Time: 2020-08-14T09:11:36.347+0000

    • log

  • Name: Recursively delete the current directory from the workspace

    • Description: script returned exit code 1

    • Duration: 0 min 9 sec

    • Start Time: 2020-08-14T10:10:40.268+0000

    • log

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 3 min 11 sec

    • Start Time: 2020-08-14T09:16:01.354+0000

    • log

  • Name: Recursively delete the current directory from the workspace

    • Description: script returned exit code 1

    • Duration: 0 min 19 sec

    • Start Time: 2020-08-14T09:19:25.592+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-08-14T10:11:20.296Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats
[2020-08-14T10:11:20.350Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Lint
[2020-08-14T10:11:20.538Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Winlogbeat-oss
[2020-08-14T10:11:20.730Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-08-14T10:11:20.931Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-08-14T10:11:21.135Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Dockerlogbeat
[2020-08-14T10:11:21.326Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Journalbeat-oss
[2020-08-14T10:11:21.532Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-08-14T10:11:21.750Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-08-14T10:11:21.977Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Packetbeat-Linux
[2020-08-14T10:11:22.173Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-08-14T10:11:22.398Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-08-14T10:11:22.624Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Heartbeat-oss
[2020-08-14T10:11:22.826Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-08-14T10:11:23.034Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-08-14T10:11:23.249Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-08-14T10:11:23.482Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-08-14T10:11:23.678Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-08-14T10:11:23.891Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Filebeat-Windows
[2020-08-14T10:11:24.098Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Libbeat-x-pack
[2020-08-14T10:11:24.303Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-08-14T10:11:24.498Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-08-14T10:11:24.707Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-Windows
[2020-08-14T10:11:24.908Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-08-14T10:11:25.125Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-08-14T10:11:25.344Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-08-14T10:11:25.558Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-08-14T10:11:25.761Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-08-14T10:11:25.961Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-08-14T10:11:26.170Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-08-14T10:11:26.411Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-08-14T10:11:26.640Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-08-14T10:11:26.842Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Filebeat-x-pack
[2020-08-14T10:11:27.041Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-08-14T10:11:27.229Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Filebeat-oss
[2020-08-14T10:11:27.429Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-08-14T10:11:27.628Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Libbeat-oss
[2020-08-14T10:11:27.815Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-08-14T10:11:27.995Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-08-14T10:11:28.183Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-08-14T10:11:28.365Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-08-14T10:11:28.545Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-08-14T10:11:28.737Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-08-14T10:11:28.941Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-08-14T10:11:29.160Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Packetbeat-Windows
[2020-08-14T10:11:29.383Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Functionbeat-Windows
[2020-08-14T10:11:29.616Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Heartbeat-Windows
[2020-08-14T10:11:29.830Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-08-14T10:11:30.031Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-08-14T10:11:30.611Z] + cat
[2020-08-14T10:11:30.612Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-08-14T10:11:30.612Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-08-14T10:11:37.203Z] runbld>>> runbld started
[2020-08-14T10:11:37.203Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-08-14T10:11:38.145Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-08-14T10:11:38.145Z] runbld>>> Matches in the system config:
[2020-08-14T10:11:38.145Z] runbld>>> - Matched ^elastic\+beats
[2020-08-14T10:11:38.145Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-08-14T10:11:39.530Z] runbld>>> Debug logging enabled.
[2020-08-14T10:11:39.530Z] runbld>>> Storing result
[2020-08-14T10:11:39.530Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-08-14T10:11:39.530Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200814101139-D69DC772
[2020-08-14T10:11:39.530Z] runbld>>> Adding system facts.
[2020-08-14T10:11:40.478Z] runbld>>> Adding vcs info for the latest commit:  d8a820e60ab8613bd9b5396b3cd7c1341b5f1f55
[2020-08-14T10:11:40.478Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-08-14T10:11:40.478Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-08-14T10:11:40.739Z] + echo 'Processing JUnit reports with runbld...'
[2020-08-14T10:11:40.739Z] Processing JUnit reports with runbld...
[2020-08-14T10:11:41.001Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-08-14T10:11:41.002Z] runbld>>> DURATION: 18ms
[2020-08-14T10:11:41.002Z] runbld>>> STDOUT: 40 bytes
[2020-08-14T10:11:41.002Z] runbld>>> STDERR: 49 bytes
[2020-08-14T10:11:41.002Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-08-14T10:11:41.002Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20599
[2020-08-14T10:11:41.943Z] runbld>>> Storing build metadata: 
[2020-08-14T10:11:41.943Z] runbld>>> Adding test report.
[2020-08-14T10:11:41.943Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats
[2020-08-14T10:11:42.885Z] runbld>>> Found 135 test output files
[2020-08-14T10:11:44.277Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-08-14T10:11:44.537Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-08-14T10:11:44.801Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-08-14T10:11:44.801Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-08-14T10:11:44.801Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-08-14T10:11:44.801Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-08-14T10:11:44.801Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20599/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-08-14T10:11:46.184Z] runbld>>> Test output logs contained: Errors: 0 Failures: 2 Tests: 19342 Skipped: 1554
[2020-08-14T10:11:46.445Z] runbld>>> Storing result
[2020-08-14T10:11:46.445Z] runbld>>> FAILURES: 2
[2020-08-14T10:11:47.015Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-08-14T10:11:47.015Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200814101139-D69DC772
[2020-08-14T10:11:47.275Z] runbld>>> Email notification disabled by environment variable.
[2020-08-14T10:11:47.275Z] runbld>>> Slack notification disabled by environment variable.
[2020-08-14T10:11:52.920Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20599
[2020-08-14T10:11:53.106Z] [INFO] getVaultSecret: Getting secrets
[2020-08-14T10:11:53.201Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-08-14T10:11:54.293Z] + chmod 755 generate-build-data.sh
[2020-08-14T10:11:54.293Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20599/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20599/runs/1 FAILURE 5825246
[2020-08-14T10:11:54.293Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20599/runs/1/steps/?limit=10000 -o steps-info.json
[2020-08-14T10:11:58.416Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20599/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-08-14T10:11:58.416Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20599/runs/1/log/ -o pipeline-log.txt

Copy link
Copy Markdown
Contributor

@michalpristas michalpristas left a comment

Choose a reason for hiding this comment

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

backport looks good

@kvch kvch merged commit 72d87f6 into elastic:7.9 Aug 26, 2020
@zube zube bot removed the [zube]: Done label Nov 25, 2020
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

backport Team:Services (Deprecated) Label for the former Integrations-Services team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants