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

[7.8] Followup to 12606 (#18316) #18521

Merged
merged 2 commits into from
May 19, 2020

Conversation

ycombinator
Copy link
Contributor

Backports the following commits to 7.8:

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

❕ Build Aborted

Either there was a build timeout or someone aborted the build.'}

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 0
Passed 5530
Skipped 882
Total 6412

Steps errors

Expand to view the steps failures

  • Name: Make -C libbeat testsuite
    • Description: make -C libbeat testsuite

    • Result: FAILURE

    • Duration: 26 min 25 sec

    • Start Time: 2020-05-14T14:54:46.183+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-14T15:37:46.848Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-05-14T15:37:46.848Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-05-14T15:37:46.848Z] + FILE=journalbeat/build/coverage/full.cov
[2020-05-14T15:37:46.848Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-05-14T15:37:49.343Z] Failed in branch Functionbeat
[2020-05-14T15:37:49.592Z] Failed in branch Metricbeat OSS Integration tests
[2020-05-14T15:37:51.176Z] Post stage
[2020-05-14T15:37:55.680Z] Body did not finish within grace period; terminating with extreme prejudice
[2020-05-14T15:37:59.283Z] Error when executing cleanup post condition:
[2020-05-14T15:37:59.283Z] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[2020-05-14T15:37:59.283Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.cancel(TimeoutStepExecution.java:160)
[2020-05-14T15:37:59.283Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.access$100(TimeoutStepExecution.java:38)
[2020-05-14T15:37:59.283Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution$1.run(TimeoutStepExecution.java:134)
[2020-05-14T15:37:59.283Z] 	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:58)
[2020-05-14T15:37:59.283Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-05-14T15:37:59.283Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-05-14T15:37:59.283Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[2020-05-14T15:37:59.283Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[2020-05-14T15:37:59.283Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-05-14T15:37:59.283Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-05-14T15:37:59.283Z] 	at java.lang.Thread.run(Thread.java:748)
[2020-05-14T15:37:59.283Z] 
[2020-05-14T15:37:59.342Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats
[2020-05-14T15:38:00.076Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-14T15:38:00.323Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Lint
[2020-05-14T15:38:00.723Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-05-14T15:38:01.163Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Dockerlogbeat
[2020-05-14T15:38:01.578Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Winlogbeat-oss
[2020-05-14T15:38:01.913Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Journalbeat-oss
[2020-05-14T15:38:02.292Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-05-14T15:38:02.774Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-05-14T15:38:03.126Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-05-14T15:38:03.523Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-05-14T15:38:04.002Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Heartbeat-oss
[2020-05-14T15:38:04.452Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-05-14T15:38:04.777Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Filebeat-Windows
[2020-05-14T15:38:05.121Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-05-14T15:38:05.416Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Libbeat-x-pack
[2020-05-14T15:38:05.768Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-05-14T15:38:06.267Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Auditbeat-Linux
[2020-05-14T15:38:06.728Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Packetbeat-oss
[2020-05-14T15:38:07.111Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-Windows
[2020-05-14T15:38:07.567Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-05-14T15:38:07.940Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Filebeat-x-pack
[2020-05-14T15:38:08.430Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-05-14T15:38:08.798Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Heartbeat-Windows
[2020-05-14T15:38:09.107Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Libbeat-oss
[2020-05-14T15:38:09.434Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Filebeat-oss
[2020-05-14T15:38:09.786Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-05-14T15:38:10.173Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Functionbeat-Windows
[2020-05-14T15:38:10.517Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-05-14T15:38:10.976Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-05-14T15:38:11.750Z] + cat
[2020-05-14T15:38:11.750Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-14T15:38:11.750Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-14T15:38:18.649Z] runbld>>> runbld started
[2020-05-14T15:38:18.649Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-14T15:38:19.698Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18521' in order of occurrence in the config (last value wins).
[2020-05-14T15:38:20.747Z] runbld>>> Debug logging enabled.
[2020-05-14T15:38:20.747Z] runbld>>> Storing result
[2020-05-14T15:38:21.067Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-14T15:38:21.067Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200514153820-164AF648
[2020-05-14T15:38:21.067Z] runbld>>> Adding system facts.
[2020-05-14T15:38:22.196Z] runbld>>> Adding vcs info for the latest commit:  4f701c781052865981f44317a0a9fe70902590a6
[2020-05-14T15:38:22.196Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-14T15:38:22.196Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-14T15:38:22.197Z] Processing JUnit reports with runbld...
[2020-05-14T15:38:22.197Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-14T15:38:22.901Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-14T15:38:22.901Z] runbld>>> DURATION: 37ms
[2020-05-14T15:38:22.901Z] runbld>>> STDOUT: 40 bytes
[2020-05-14T15:38:22.901Z] runbld>>> STDERR: 49 bytes
[2020-05-14T15:38:22.901Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-14T15:38:22.901Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats
[2020-05-14T15:38:24.005Z] runbld>>> Storing build metadata: 
[2020-05-14T15:38:24.005Z] runbld>>> Adding test report.
[2020-05-14T15:38:24.005Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats
[2020-05-14T15:38:25.065Z] runbld>>> Found 87 test output files
[2020-05-14T15:38:25.372Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-05-14T15:38:25.372Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-05-14T15:38:25.372Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-05-14T15:38:25.661Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-05-14T15:38:25.662Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-05-14T15:38:25.662Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-05-14T15:38:26.294Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-05-14T15:38:26.294Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-05-14T15:38:26.582Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 6262 Skipped: 696
[2020-05-14T15:38:26.868Z] runbld>>> Storing result
[2020-05-14T15:38:26.868Z] runbld>>> FAILURES: 0
[2020-05-14T15:38:27.167Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-14T15:38:27.168Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200514153820-164AF648
[2020-05-14T15:38:27.168Z] runbld>>> Email notification disabled by environment variable.
[2020-05-14T15:38:27.168Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-14T15:38:33.636Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18521
[2020-05-14T15:38:34.085Z] [INFO] getVaultSecret: Getting secrets
[2020-05-14T15:38:34.227Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-14T15:38:36.075Z] + chmod 755 generate-build-data.sh
[2020-05-14T15:38:36.075Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18521/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18521/runs/1 ABORTED 7557868
[2020-05-14T15:38:36.987Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18521/runs/1/steps/?limit=10000 -o steps-info.json
[2020-05-14T15:38:39.473Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18521/runs/1/tests/?status=FAILED -o tests-errors.json

@@ -79,3 +83,5 @@ The list below covers the major changes between 7.0.0-rc2 and master only.
- Add support for MODULE environment variable in `mage goIntegTest` in metricbeat to run integration tests for a single module. {pull}17147[17147]
- Add support for a `TEST_TAGS` environment variable to add tags for tests selection following go build tags semantics, this environment variable is used by mage test targets to add build tags. Python tests can also be tagged with a decorator (`@beat.tag('sometag')`). {pull}16937[16937] {pull}17075[17075]
- Add fields validation for histogram subfields. {pull}17759[17759]
- Add IP* fields to `fields.yml` generator script in Filebeat. {issue}17998[17998] {pull}18256[18256]
- Events intended for the Elasticsearch output can now take an `op_type` metadata field of type events.OpType or string to indicate the `op_type` to use for bulk indexing. {pull}12606[12606]
Copy link
Contributor

Choose a reason for hiding this comment

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

Only this line is required AFAIC from here https://github.com/elastic/beats/pull/18316/files

* Adding developer CHANGELOG entry

* Refactoring: extracting helper method

* Adding unit tests

* Consolidate event metadata field constants

* Use events.GetMetaStringValue

* Implement op_type values as enum

* Add doc strings

* Deference event pointer

* Renaming op type consts and breaking them out into own block

* Renaming type

* Using stringer

* Using go idiom instead of if-else

* Adding default op type

* Empty string for default

* Store op type enum, not string, in event metadata

* Using events.GetMetaStringValue

* Updating dev CHANGELOG entry

* Allow for op_type metadata field to be set as either string or enum

* No need for .String()

* Handle missing key case gracefully

* Update unit tests

* Update developer CHANGELOG entry
@ycombinator ycombinator force-pushed the backport/7.8/pr-18316 branch from 4f701c7 to 8362c1c Compare May 18, 2020 10:01
Copy link
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

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

All good!

@ycombinator ycombinator merged commit 1795efd into elastic:7.8 May 19, 2020
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 [zube]: Done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants