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

Automatically fill zube teams on backports if available #18924

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jun 3, 2020

botelastic adds the needs_team label if a PR doesn't have a zube team label, this
adds an additional manual step to backport PRs. This change adds the team labels
of the original PRs by default.

#18923 has been created using this new version of the script.

@jsoriano jsoriano added review [zube]: In Review Team:Integrations Label for the Integrations team labels Jun 3, 2020
@jsoriano jsoriano self-assigned this Jun 3, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 3, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 3, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 3, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [jsoriano commented: jenkins run the tests please]

  • Start Time: 2020-06-04T11:28:05.102+0000

  • Duration: 122 min 16 sec

Test stats 🧪

Test Results
Failed 3
Passed 9175
Skipped 1553
Total 10731

Test errors

Expand to view the tests failures

  • Name: Build and Test / Auditbeat x-pack Mac OS X / [setup failed] – cache

    • Age: 1
    • Duration: 0
    • Error Details: Failed
  • Name: Build and Test / Auditbeat x-pack Mac OS X / [setup failed] – package

    • Age: 1
    • Duration: 0
    • Error Details: Failed
  • Name: Build and Test / Auditbeat x-pack Mac OS X / [setup failed] – process

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

Steps errors

Expand to view the steps failures

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 9 min 23 sec

    • Start Time: 2020-06-04T11:56:44.168+0000

    • log

  • Name: Make -C libbeat testsuite

    • Description: make -C libbeat testsuite

    • Duration: 32 min 46 sec

    • Start Time: 2020-06-04T11:51:29.417+0000

    • log

  • Name: Report to Codecov

    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-06-04T12:37:02.064+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-06-04T13:29:53.423Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-06-04T13:29:53.423Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-06-04T13:29:53.423Z] + FILE=journalbeat/build/coverage/full.cov
[2020-06-04T13:29:53.423Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-06-04T13:29:54.665Z] Failed in branch Auditbeat x-pack
[2020-06-04T13:29:54.778Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats
[2020-06-04T13:29:55.085Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-06-04T13:29:55.097Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Lint
[2020-06-04T13:29:55.174Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-06-04T13:29:55.244Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Winlogbeat-oss
[2020-06-04T13:29:55.313Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-06-04T13:29:55.381Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-06-04T13:29:55.451Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Dockerlogbeat
[2020-06-04T13:29:55.520Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-06-04T13:29:55.589Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Journalbeat-oss
[2020-06-04T13:29:55.657Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-06-04T13:29:55.724Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-06-04T13:29:55.790Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-06-04T13:29:55.861Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-06-04T13:29:55.929Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-06-04T13:29:55.997Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-06-04T13:29:56.065Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-06-04T13:29:56.133Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-06-04T13:29:56.205Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-06-04T13:29:56.273Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Heartbeat-oss
[2020-06-04T13:29:56.340Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-06-04T13:29:56.406Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-06-04T13:29:56.475Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-06-04T13:29:56.543Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Libbeat-x-pack
[2020-06-04T13:29:56.612Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-06-04T13:29:56.680Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-06-04T13:29:56.748Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-06-04T13:29:56.817Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Filebeat-Windows
[2020-06-04T13:29:56.889Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-06-04T13:29:56.958Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Packetbeat-oss
[2020-06-04T13:29:57.026Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-06-04T13:29:57.094Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-06-04T13:29:57.163Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-Windows
[2020-06-04T13:29:57.231Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-06-04T13:29:57.301Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-06-04T13:29:57.369Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Filebeat-x-pack
[2020-06-04T13:29:57.438Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Filebeat-oss
[2020-06-04T13:29:57.505Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Functionbeat-Windows
[2020-06-04T13:29:57.574Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-06-04T13:29:57.644Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Heartbeat-Windows
[2020-06-04T13:29:57.712Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Libbeat-oss
[2020-06-04T13:29:57.780Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-06-04T13:29:57.847Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-06-04T13:29:57.914Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-06-04T13:29:57.982Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-06-04T13:29:58.050Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-06-04T13:29:58.400Z] + cat
[2020-06-04T13:29:58.400Z] + /usr/local/bin/runbld ./runbld-script
[2020-06-04T13:29:58.400Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-06-04T13:30:05.004Z] runbld>>> runbld started
[2020-06-04T13:30:05.004Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-06-04T13:30:06.917Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18924' in order of occurrence in the config (last value wins).
[2020-06-04T13:30:07.859Z] runbld>>> Debug logging enabled.
[2020-06-04T13:30:07.859Z] runbld>>> Storing result
[2020-06-04T13:30:08.121Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-06-04T13:30:08.121Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200604133007-6D4A5F1E
[2020-06-04T13:30:08.121Z] runbld>>> Adding system facts.
[2020-06-04T13:30:09.067Z] runbld>>> Adding vcs info for the latest commit:  f48725e64ac6779ae32d8a3d5726d4d7f42ed02c
[2020-06-04T13:30:09.067Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-06-04T13:30:09.067Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-06-04T13:30:09.328Z] + echo 'Processing JUnit reports with runbld...'
[2020-06-04T13:30:09.328Z] Processing JUnit reports with runbld...
[2020-06-04T13:30:09.589Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-06-04T13:30:09.589Z] runbld>>> DURATION: 20ms
[2020-06-04T13:30:09.589Z] runbld>>> STDOUT: 40 bytes
[2020-06-04T13:30:09.589Z] runbld>>> STDERR: 49 bytes
[2020-06-04T13:30:09.589Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-06-04T13:30:09.589Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats
[2020-06-04T13:30:10.974Z] runbld>>> Storing build metadata: 
[2020-06-04T13:30:10.974Z] runbld>>> Adding test report.
[2020-06-04T13:30:10.974Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats
[2020-06-04T13:30:12.359Z] runbld>>> Found 112 test output files
[2020-06-04T13:30:12.359Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-06-04T13:30:12.359Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-06-04T13:30:12.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-06-04T13:30:12.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-06-04T13:30:12.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-06-04T13:30:12.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-06-04T13:30:12.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-06-04T13:30:12.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-06-04T13:30:14.006Z] runbld>>> Test output logs contained: Errors: 0 Failures: 3 Tests: 10581 Skipped: 1315
[2020-06-04T13:30:14.266Z] runbld>>> Storing result
[2020-06-04T13:30:14.266Z] runbld>>> FAILURES: 3
[2020-06-04T13:30:14.838Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-06-04T13:30:14.838Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200604133007-6D4A5F1E
[2020-06-04T13:30:14.838Z] runbld>>> Email notification disabled by environment variable.
[2020-06-04T13:30:14.838Z] runbld>>> Slack notification disabled by environment variable.
[2020-06-04T13:30:20.542Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18924
[2020-06-04T13:30:20.755Z] [INFO] getVaultSecret: Getting secrets
[2020-06-04T13:30:20.802Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-06-04T13:30:21.488Z] + chmod 755 generate-build-data.sh
[2020-06-04T13:30:21.488Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18924/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18924/runs/2 FAILURE 7336125
[2020-06-04T13:30:21.488Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18924/runs/2/steps/?limit=10000 -o steps-info.json
[2020-06-04T13:30:22.831Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18924/runs/2/tests/?status=FAILED -o tests-errors.json
[2020-06-04T13:30:23.382Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18924/runs/2/log/ -o pipeline-log.txt

@jsoriano
Copy link
Member Author

jsoriano commented Jun 4, 2020

jenkins run the tests please

@jsoriano jsoriano requested a review from kvch June 8, 2020 18:22
@jsoriano
Copy link
Member Author

Backports for #19078 created too with this version of the script

@jsoriano jsoriano added the needs_backport PR is waiting to be backported to other branches. label Jun 10, 2020
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.

LGTM

@jsoriano jsoriano merged commit ba306cd into elastic:master Jun 10, 2020
@jsoriano jsoriano deleted the cherry-pick-auto-fill-zube-teams branch June 10, 2020 11:13
jsoriano added a commit to jsoriano/beats that referenced this pull request Jun 10, 2020
botelastic adds the needs_team label if a PR doesn't have a zube team label, this
adds an additional manual step to backport PRs. This change adds the team labels
of the original PRs by default.

(cherry picked from commit ba306cd)
@jsoriano jsoriano added v7.9.0 and removed needs_backport PR is waiting to be backported to other branches. labels Jun 10, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Jun 10, 2020
botelastic adds the needs_team label if a PR doesn't have a zube team label, this
adds an additional manual step to backport PRs. This change adds the team labels
of the original PRs by default.

(cherry picked from commit ba306cd)
jsoriano added a commit that referenced this pull request Jun 11, 2020
)

botelastic adds the needs_team label if a PR doesn't have a zube team label, this
adds an additional manual step to backport PRs. This change adds the team labels
of the original PRs by default.

(cherry picked from commit ba306cd)
jsoriano added a commit that referenced this pull request Jun 11, 2020
)

botelastic adds the needs_team label if a PR doesn't have a zube team label, this
adds an additional manual step to backport PRs. This change adds the team labels
of the original PRs by default.

(cherry picked from commit ba306cd)
v1v added a commit to v1v/beats that referenced this pull request Jun 12, 2020
…ngs-archive

* upstream/master: (119 commits)
  Update filebeat input docs (elastic#19110)
  Add ECS fields from log pipeline of PostgreSQL (elastic#19127)
  Init package libbeat/statestore (elastic#19117)
  [Ingest Manager] Retryable downloads of beats (elastic#19102)
  [DOCS] Add output.console to Functionbeat doc and Functionbeat reference file (elastic#18965)
  Add compatibility info (elastic#18929)
  Set ecszap version to v0.2.0 (elastic#19106)
  [filebeat][httpjson] Fix unit test function call (elastic#19124)
  [Filebeat][httpjson] Adds oauth2 support for httpjson input (elastic#18892)
  Allow host.* fields to be disabled in Suricata module (elastic#19107)
  Make selector string casing configurable (elastic#18854)
  Switch the GRPC communication where Agent is running the server and the beats are connecting back to Agent (elastic#18973)
  Disable host.* fields by default for netflow module (elastic#19087)
  Automatically fill zube teams on backports if available (elastic#18924)
  Fix crash on vsphere module (elastic#19078)
  [Ingest Manager] Download snapshot artifacts from snapshots repo (elastic#18685)
  [Ingest Manager] Basic Elastic Agent documentation (elastic#19030)
  Make user.id a string in system/users, in line with ECS (elastic#19019)
  [docs] Add 7.8 release highlights placeholder file (elastic#18493)
  Fix translate_sid's empty target field handling (elastic#18991)
  ...
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
botelastic adds the needs_team label if a PR doesn't have a zube team label, this
adds an additional manual step to backport PRs. This change adds the team labels
of the original PRs by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Integrations Label for the Integrations team v7.8.0 v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants