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

ci: comment PRs with the build status #17971

Merged
merged 3 commits into from
Apr 28, 2020

Conversation

v1v
Copy link
Member

@v1v v1v commented Apr 24, 2020

What does this PR do?

Enhance the build reporting with a message in the PR that contains the build status for the last commit. It does reuse the message.

Why is it important?

One place to analyse the build status

Author's Checklist

  • Disable email notifications that are based on the build status by default.?
  • Support another service account

How to test this PR locally

See the comments that are generated on the fly. #17971 (comment)

@v1v v1v self-assigned this Apr 24, 2020
@v1v v1v added the automation label Apr 24, 2020
@v1v v1v requested a review from kuisathaverat April 24, 2020 15:27
@elasticmachine
Copy link
Collaborator

elasticmachine commented Apr 27, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts stats

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 0
Passed 6489
Skipped 1112
Total 7601

Steps errors

Expand to view the steps failures

  • 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

    • Result: FAILURE

    • Duration: 0 min 2 sec<

    • Start Time: 2020-04-27T16:43:07.460+0000

  • Name: Make -C generator/_templates/metricbeat test

    • Description: make -C generator/_templates/metricbeat test

    • Result: FAILURE

    • Duration: 1 min 4 sec<

    • Start Time: 2020-04-27T16:44:44.368+0000

Log output

Expand to view the last 100 lines of log output

[2020-04-27T17:22:53.664Z] 
[2020-04-27T17:22:53.664Z] OK (SKIP=6)
[2020-04-27T17:22:53.664Z] >> python test: Unit Testing Complete
[2020-04-27T17:22:53.848Z] Recording test results
[2020-04-27T17:22:55.850Z] 
Killing metricbeat_7918a246f6f8_kibana_1         ... done

Killing metricbeat_7918a246f6f8_elasticsearch_1  ... done
Creating activemq_72a7600d5a36ca8e_activemq_1    ... 
[2020-04-27T17:23:02.146Z] Archiving artifacts
[2020-04-27T17:23:23.625Z] 
Creating activemq_72a7600d5a36ca8e_activemq_1    ... done
...Stopping activemq_72a7600d5a36ca8e_activemq_1    ... 
[2020-04-27T17:23:24.685Z] 
Stopping activemq_72a7600d5a36ca8e_activemq_1    ... done
Removing activemq_72a7600d5a36ca8e_activemq_1    ... 
[2020-04-27T17:23:33.247Z] 
Removing activemq_72a7600d5a36ca8e_activemq_1    ... done
Creating activemq_28af980615e6985f_activemq_1    ... 
[2020-04-27T17:23:57.003Z] 
Creating activemq_28af980615e6985f_activemq_1    ... done
...Stopping activemq_28af980615e6985f_activemq_1    ... 
[2020-04-27T17:23:58.180Z] 
Stopping activemq_28af980615e6985f_activemq_1    ... done
Removing activemq_28af980615e6985f_activemq_1    ... 
[2020-04-27T17:23:59.413Z] 
Removing activemq_28af980615e6985f_activemq_1    ... done
Creating appsearch_7918a246f6f8_elasticsearch_1  ... 
[2020-04-27T17:24:01.145Z] 
Creating appsearch_7918a246f6f8_elasticsearch_1  ... done
Creating appsearch_7918a246f6f8_appsearch_1      ... 
[2020-04-27T17:29:27.842Z] 
Creating appsearch_7918a246f6f8_appsearch_1      ... done
.Stopping appsearch_7918a246f6f8_appsearch_1      ... 
[2020-04-27T17:29:27.842Z] Stopping appsearch_7918a246f6f8_elasticsearch_1  ... 
[2020-04-27T17:29:37.777Z] 
Stopping appsearch_7918a246f6f8_appsearch_1      ... done

Stopping appsearch_7918a246f6f8_elasticsearch_1  ... done
Removing appsearch_7918a246f6f8_appsearch_1      ... 
[2020-04-27T17:29:37.777Z] Removing appsearch_7918a246f6f8_elasticsearch_1  ... 
[2020-04-27T17:29:40.351Z] 
Removing appsearch_7918a246f6f8_elasticsearch_1  ... done

Removing appsearch_7918a246f6f8_appsearch_1      ... done
Creating cockroachdb_7918a246f6f8_cockroachdb_1  ... 
[2020-04-27T17:29:50.354Z] 
Creating cockroachdb_7918a246f6f8_cockroachdb_1  ... done
.Stopping cockroachdb_7918a246f6f8_cockroachdb_1  ... 
[2020-04-27T17:29:50.741Z] 
Stopping cockroachdb_7918a246f6f8_cockroachdb_1  ... done
Removing cockroachdb_7918a246f6f8_cockroachdb_1  ... 
[2020-04-27T17:29:52.071Z] 
Removing cockroachdb_7918a246f6f8_cockroachdb_1  ... done
Creating coredns_7918a246f6f8_coredns_1          ... 
[2020-04-27T17:30:02.639Z] 
Creating coredns_7918a246f6f8_coredns_1          ... done
.Stopping coredns_7918a246f6f8_coredns_1          ... 
[2020-04-27T17:30:02.639Z] 
Stopping coredns_7918a246f6f8_coredns_1          ... done
Removing coredns_7918a246f6f8_coredns_1          ... 
[2020-04-27T17:30:03.390Z] 
Removing coredns_7918a246f6f8_coredns_1          ... done
Creating ibmmq_7918a246f6f8_ibmmq_1              ... 
[2020-04-27T17:30:29.082Z] 
Creating ibmmq_7918a246f6f8_ibmmq_1              ... done
.Stopping ibmmq_7918a246f6f8_ibmmq_1              ... 
[2020-04-27T17:30:30.358Z] 
Stopping ibmmq_7918a246f6f8_ibmmq_1              ... done
Removing ibmmq_7918a246f6f8_ibmmq_1              ... 
[2020-04-27T17:30:31.586Z] 
Removing ibmmq_7918a246f6f8_ibmmq_1              ... done
Creating mssql_7918a246f6f8_mssql_1              ... 
[2020-04-27T17:30:56.815Z] 
Creating mssql_7918a246f6f8_mssql_1              ... done
..Stopping mssql_7918a246f6f8_mssql_1              ... 
[2020-04-27T17:31:08.023Z] 
Stopping mssql_7918a246f6f8_mssql_1              ... done
Removing mssql_7918a246f6f8_mssql_1              ... 
[2020-04-27T17:31:12.930Z] 
Removing mssql_7918a246f6f8_mssql_1              ... done
Creating openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... 
[2020-04-27T17:31:20.626Z] 
Creating openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... done
.Stopping openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... 
[2020-04-27T17:31:20.626Z] 
Stopping openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... done
Removing openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... 
[2020-04-27T17:31:21.436Z] 
Removing openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... done
Creating redisenterprise_8349a9ef7beb84f2_redisenterprise_1   ... 
[2020-04-27T17:34:19.682Z] 
Creating redisenterprise_8349a9ef7beb84f2_redisenterprise_1   ... done
..Stopping redisenterprise_8349a9ef7beb84f2_redisenterprise_1   ... 
[2020-04-27T17:34:19.682Z] 
Stopping redisenterprise_8349a9ef7beb84f2_redisenterprise_1   ... done
Removing redisenterprise_8349a9ef7beb84f2_redisenterprise_1   ... 
[2020-04-27T17:34:19.682Z] 
Removing redisenterprise_8349a9ef7beb84f2_redisenterprise_1   ... done
Creating sql_7918a246f6f8_mysql_1                             ... 
[2020-04-27T17:34:33.232Z] 
Creating sql_7918a246f6f8_mysql_1                             ... done
.Stopping sql_7918a246f6f8_mysql_1                             ... 
[2020-04-27T17:34:34.501Z] 
Stopping sql_7918a246f6f8_mysql_1                             ... done
Removing sql_7918a246f6f8_mysql_1                             ... 
[2020-04-27T17:34:35.328Z] 
Removing sql_7918a246f6f8_mysql_1                             ... done
Creating stan_7918a246f6f8_stan_1                             ... 
[2020-04-27T17:34:44.496Z] 
Creating stan_7918a246f6f8_stan_1                             ... done
...Stopping stan_7918a246f6f8_stan_1                             ... 
[2020-04-27T17:34:55.794Z] 
Stopping stan_7918a246f6f8_stan_1                             ... done
Removing stan_7918a246f6f8_stan_1                             ... 
[2020-04-27T17:35:02.134Z] 
Removing stan_7918a246f6f8_stan_1                             ... done
.
[2020-04-27T17:35:02.134Z] [success] 60.01% test_xpack_base.Test.test_dashboards: 95.7370s
[2020-04-27T17:35:02.134Z] [success] 5.58% test_activemq.ActiveMqTest_0.test_broker_metrics_collected: 8.8946s
[2020-04-27T17:35:02.134Z] [success] 4.03% test_activemq.ActiveMqTest_1.test_queue_metrics_collected: 6.4262s
[2020-04-27T17:35:02.134Z] [success] 3.87% test_statsd.Test.test_server: 6.1814s
[2020-04-27T17:35:02.134Z] [success] 3.37% test_cockroachdb.Test.test_status: 5.3724s
[2020-04-27T17:35:02.134Z] [success] 2.95% test_xpack_base.Test.test_migration: 4.7001s
[2020-04-27T17:35:02.134Z] [success] 2.19% test_xpack_base.Test.test_template: 3.4894s
[2020-04-27T17:35:02.134Z] [success] 1.91% test_openmetrics.Test.test_openmetrics: 3.0530s
[2020-04-27T17:35:02.134Z] [success] 1.77% test_appsearch.Test.test_stats: 2.8305s
[2020-04-27T17:35:02.134Z] [success] 1.23% test_redisenterprise.Test_0.test_metricset_1_proxy: 1.9628s
[2020-04-27T17:35:02.134Z] [success] 1.23% test_activemq.ActiveMqTest_0.test_queue_metrics_collected: 1.9572s
[2020-04-27T17:35:02.134Z] [success] 1.12% test_activemq.ActiveMqTest_0.test_topic_metrics_collected: 1.7909s
[2020-04-27T17:35:02.134Z] [success] 1.12% test_redisenterprise.Test_0.test_metricset_0_node: 1.7867s
[2020-04-27T17:35:02.134Z] [success] 1.10% test_sql.Test.test_query: 1.7581s
[2020-04-27T17:35:02.134Z] [success] 0.96% test_ibmmq.Test.test_qmgr: 1.5372s
[2020-04-27T17:35:02.134Z] [success] 0.95% test_activemq.ActiveMqTest_1.test_broker_metrics_collected: 1.5082s
[2020-04-27T17:35:02.135Z] [success] 0.94% test_coredns.Test.test_stats: 1.4995s
[2020-04-27T17:35:02.135Z] [success] 0.90% test_xpack_base.Test.test_start_stop: 1.4347s
[2020-04-27T17:35:02.135Z] [success] 0.88% test_mssql.Test.test_status: 1.3976s
[2020-04-27T17:35:02.135Z] [success] 0.85% test_activemq.ActiveMqTest_1.test_topic_metrics_collected: 1.3539s
[2020-04-27T17:35:02.135Z] [success] 0.78% test_stan.TestStan.test_metricset_0_stats: 1.2411s
[2020-04-27T17:35:02.135Z] [success] 0.77% test_stan.TestStan.test_metricset_2_subscriptions: 1.2335s
[2020-04-27T17:35:02.135Z] [success] 0.75% test_stan.TestStan.test_metricset_1_channels: 1.1955s
[2020-04-27T17:35:02.135Z] [success] 0.75% test_mssql.Test.test_performance: 1.1917s
[2020-04-27T17:35:02.135Z] ----------------------------------------------------------------------
[2020-04-27T17:35:02.135Z] Ran 24 tests in 959.477s
[2020-04-27T17:35:02.135Z] 
[2020-04-27T17:35:02.135Z] OK
[2020-04-27T17:35:02.135Z] >> python test: Integration Testing Complete
[2020-04-27T17:35:02.135Z] >> Stopping Docker test environment...
[2020-04-27T17:35:06.470Z] Recording test results
[2020-04-27T17:35:28.050Z] Archiving artifacts
[2020-04-27T17:35:30.718Z] + curl -sSLo codecov https://codecov.io/bash
[2020-04-27T17:35:31.266Z] + FILE=auditbeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-04-27T17:35:31.266Z] + FILE=filebeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-04-27T17:35:31.266Z] + FILE=heartbeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-04-27T17:35:31.266Z] + FILE=libbeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-04-27T17:35:31.266Z] + FILE=metricbeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-04-27T17:35:31.266Z] + FILE=packetbeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-04-27T17:35:31.266Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-04-27T17:35:31.266Z] + FILE=journalbeat/build/coverage/full.cov
[2020-04-27T17:35:31.266Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-04-27T18:13:33.268Z] Cancelling nested steps due to timeout
[2020-04-27T18:13:33.351Z] Failed in branch Filebeat x-pack
[2020-04-27T18:13:34.725Z] Running on worker-395930 in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-17971
[2020-04-27T18:13:34.856Z] [INFO] getVaultSecret: Getting secrets
[2020-04-27T18:13:34.927Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-04-27T18:13:37.131Z] + chmod 755 generate-build-data.sh
[2020-04-27T18:13:37.131Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17971/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17971/runs/7 FAILURE 7344289
[2020-04-27T18:13:37.131Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17971/runs/7/steps/?limit=10000 -o steps-info.json
[2020-04-27T18:13:38.629Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17971/runs/7/tests/?status=FAILED -o tests-errors.json

Jenkinsfile Outdated Show resolved Hide resolved
@v1v v1v marked this pull request as ready for review April 28, 2020 09:27
@v1v v1v requested review from urso and a team April 28, 2020 09:28
@v1v v1v added the ci label Apr 28, 2020
@v1v v1v requested review from andrewkroh and jsoriano April 28, 2020 09:28
@v1v v1v merged commit 41b9f86 into elastic:master Apr 28, 2020
@v1v v1v deleted the feature/github-comments-prs branch April 28, 2020 14:11
v1v added a commit to v1v/beats that referenced this pull request Apr 28, 2020
v1v added a commit to v1v/beats that referenced this pull request Apr 28, 2020
…unbld

* upstream/master:
  ci: comment PRs with the build status (elastic#17971)
  Add domain state metricset to kvm module (elastic#17673)
  [Agent] Allow CLI paths override (elastic#17781)
  Fix generated metricbeat so create-metricset works. (elastic#18020)
  LIBBEAT: Enhancement replace_string processor for replacing strings values of fields. (elastic#17342)
  Update stale references to _xpack to refer to _license instead (elastic#18030)
  Review dependency patterns collection in Jenkins (elastic#18004)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants