Skip to content

Cherry-pick #18020 to 7.x: Fix generated metricbeat so create-metricset works.#18063

Merged
blakerouse merged 1 commit intoelastic:7.xfrom
blakerouse:backport_18020_7.x
Apr 28, 2020
Merged

Cherry-pick #18020 to 7.x: Fix generated metricbeat so create-metricset works.#18063
blakerouse merged 1 commit intoelastic:7.xfrom
blakerouse:backport_18020_7.x

Conversation

@blakerouse
Copy link
Copy Markdown
Contributor

@blakerouse blakerouse commented Apr 28, 2020

Cherry-pick of PR #18020 to 7.x branch. Original message:

What does this PR do?

Fixes the make -C generator/_templates/metricbeat test so that make create-metricset works inside of the generated custom metricbeat.

Why is it important?

Both so create-metricset works on the generated beat and so the CI passes.

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.

* Fix generated metricbeat so create-metricset works.

* Fix mage target add target to x-pack/metricbeat.

(cherry picked from commit 77f0d20)
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 28, 2020
@blakerouse blakerouse added bug Team:Platforms Label for the Integrations - Platforms team and removed needs_team Indicates that the issue/PR needs a Team:* label labels Apr 28, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations-platforms (Team:Platforms)

@blakerouse
Copy link
Copy Markdown
Contributor Author

Part 1 of backport, part 2 still landing in master, will come into 7.x as well.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Pipeline View Test View Changes Artifacts preview stats

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 0
Passed 2306
Skipped 572
Total 2878

Steps errors

Expand to view the steps failures

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

    • Result: FAILURE

    • Duration: 1 min 11 sec<

    • Start Time: 2020-04-28T18:40:52.756+0000

Log output

Expand to view the last 100 lines of log output

[2020-04-28T19:14:31.580Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-04-28T19:14:31.580Z] + FILE=libbeat/build/coverage/full.cov
[2020-04-28T19:14:31.580Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-04-28T19:14:31.580Z] + FILE=metricbeat/build/coverage/full.cov
[2020-04-28T19:14:31.580Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-04-28T19:14:31.580Z] + FILE=packetbeat/build/coverage/full.cov
[2020-04-28T19:14:31.580Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-04-28T19:14:31.580Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-04-28T19:14:31.580Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-04-28T19:14:31.580Z] + FILE=journalbeat/build/coverage/full.cov
[2020-04-28T19:14:31.580Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-04-28T19:14:47.599Z] 
Creating activemq_35e5f8f2a2ec1a71_activemq_1    ... done
...Stopping activemq_35e5f8f2a2ec1a71_activemq_1    ... 
[2020-04-28T19:14:49.039Z] 
Stopping activemq_35e5f8f2a2ec1a71_activemq_1    ... done
Removing activemq_35e5f8f2a2ec1a71_activemq_1    ... 
[2020-04-28T19:14:50.033Z] 
Removing activemq_35e5f8f2a2ec1a71_activemq_1    ... done
Creating appsearch_7918a246f6f8_elasticsearch_1  ... 
[2020-04-28T19:14:51.732Z] 
Creating appsearch_7918a246f6f8_elasticsearch_1  ... done
Creating appsearch_7918a246f6f8_appsearch_1      ... 
[2020-04-28T19:19:30.944Z] 
Creating appsearch_7918a246f6f8_appsearch_1      ... done
.Stopping appsearch_7918a246f6f8_appsearch_1      ... 
[2020-04-28T19:19:30.944Z] Stopping appsearch_7918a246f6f8_elasticsearch_1  ... 
[2020-04-28T19:19:43.541Z] 
Stopping appsearch_7918a246f6f8_appsearch_1      ... done

Stopping appsearch_7918a246f6f8_elasticsearch_1  ... done
Removing appsearch_7918a246f6f8_appsearch_1      ... 
[2020-04-28T19:19:43.541Z] Removing appsearch_7918a246f6f8_elasticsearch_1  ... 
[2020-04-28T19:19:45.912Z] 
Removing appsearch_7918a246f6f8_elasticsearch_1  ... done

Removing appsearch_7918a246f6f8_appsearch_1      ... done
Creating cockroachdb_7918a246f6f8_cockroachdb_1  ... 
[2020-04-28T19:19:56.067Z] 
Creating cockroachdb_7918a246f6f8_cockroachdb_1  ... done
.Stopping cockroachdb_7918a246f6f8_cockroachdb_1  ... 
[2020-04-28T19:19:56.606Z] 
Stopping cockroachdb_7918a246f6f8_cockroachdb_1  ... done
Removing cockroachdb_7918a246f6f8_cockroachdb_1  ... 
[2020-04-28T19:19:57.579Z] 
Removing cockroachdb_7918a246f6f8_cockroachdb_1  ... done
Creating coredns_7918a246f6f8_coredns_1          ... 
[2020-04-28T19:20:07.731Z] 
Creating coredns_7918a246f6f8_coredns_1          ... done
.Stopping coredns_7918a246f6f8_coredns_1          ... 
[2020-04-28T19:20:07.731Z] 
Stopping coredns_7918a246f6f8_coredns_1          ... done
Removing coredns_7918a246f6f8_coredns_1          ... 
[2020-04-28T19:20:08.700Z] 
Removing coredns_7918a246f6f8_coredns_1          ... done
Creating ibmmq_7918a246f6f8_ibmmq_1              ... 
[2020-04-28T19:20:37.801Z] 
Creating ibmmq_7918a246f6f8_ibmmq_1              ... done
.Stopping ibmmq_7918a246f6f8_ibmmq_1              ... 
[2020-04-28T19:20:37.801Z] 
Stopping ibmmq_7918a246f6f8_ibmmq_1              ... done
Removing ibmmq_7918a246f6f8_ibmmq_1              ... 
[2020-04-28T19:20:37.801Z] 
Removing ibmmq_7918a246f6f8_ibmmq_1              ... done
Creating mssql_7918a246f6f8_mssql_1              ... 
[2020-04-28T19:20:56.585Z] 
Creating mssql_7918a246f6f8_mssql_1              ... done
..Stopping mssql_7918a246f6f8_mssql_1              ... 
[2020-04-28T19:21:06.954Z] 
Stopping mssql_7918a246f6f8_mssql_1              ... done
Removing mssql_7918a246f6f8_mssql_1              ... 
[2020-04-28T19:21:11.194Z] 
Removing mssql_7918a246f6f8_mssql_1              ... done
Creating openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... 
[2020-04-28T19:21:18.514Z] 
Creating openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... done
.Stopping openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... 
[2020-04-28T19:21:18.798Z] 
Stopping openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... done
Removing openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... 
[2020-04-28T19:21:20.311Z] 
Removing openmetrics_7918a246f6f8_openmetrics-node_exporter_1 ... done
Creating redisenterprise_fd23af7bfdeb7f3_redisenterprise_1    ... 
[2020-04-28T19:24:01.225Z] 
Creating redisenterprise_fd23af7bfdeb7f3_redisenterprise_1    ... done
..Stopping redisenterprise_fd23af7bfdeb7f3_redisenterprise_1    ... 
[2020-04-28T19:24:02.214Z] 
Stopping redisenterprise_fd23af7bfdeb7f3_redisenterprise_1    ... done
Removing redisenterprise_fd23af7bfdeb7f3_redisenterprise_1    ... 
[2020-04-28T19:24:03.483Z] 
Removing redisenterprise_fd23af7bfdeb7f3_redisenterprise_1    ... done
Creating sql_7918a246f6f8_mysql_1                             ... 
[2020-04-28T19:24:23.315Z] 
Creating sql_7918a246f6f8_mysql_1                             ... done
.Stopping sql_7918a246f6f8_mysql_1                             ... 
[2020-04-28T19:24:23.315Z] 
Stopping sql_7918a246f6f8_mysql_1                             ... done
Removing sql_7918a246f6f8_mysql_1                             ... 
[2020-04-28T19:24:23.315Z] 
Removing sql_7918a246f6f8_mysql_1                             ... done
Creating stan_7918a246f6f8_stan_1                             ... 
[2020-04-28T19:24:37.993Z] 
Creating stan_7918a246f6f8_stan_1                             ... done
...Stopping stan_7918a246f6f8_stan_1                             ... 
[2020-04-28T19:24:50.437Z] 
Stopping stan_7918a246f6f8_stan_1                             ... done
Removing stan_7918a246f6f8_stan_1                             ... 
[2020-04-28T19:24:55.768Z] 
Removing stan_7918a246f6f8_stan_1                             ... done
.
[2020-04-28T19:24:55.768Z] [success] 59.78% test_xpack_base.Test.test_dashboards: 92.8636s
[2020-04-28T19:24:55.768Z] [success] 4.87% test_activemq.ActiveMqTest_0.test_broker_metrics_collected: 7.5707s
[2020-04-28T19:24:55.768Z] [success] 4.01% test_activemq.ActiveMqTest_1.test_queue_metrics_collected: 6.2242s
[2020-04-28T19:24:55.768Z] [success] 3.98% test_statsd.Test.test_server: 6.1829s
[2020-04-28T19:24:55.769Z] [success] 3.52% test_cockroachdb.Test.test_status: 5.4649s
[2020-04-28T19:24:55.769Z] [success] 3.20% test_xpack_base.Test.test_migration: 4.9673s
[2020-04-28T19:24:55.769Z] [success] 2.00% test_sql.Test.test_query: 3.1060s
[2020-04-28T19:24:55.769Z] [success] 1.82% test_openmetrics.Test.test_openmetrics: 2.8263s
[2020-04-28T19:24:55.769Z] [success] 1.72% test_stan.TestStan.test_metricset_2_subscriptions: 2.6736s
[2020-04-28T19:24:55.769Z] [success] 1.72% test_xpack_base.Test.test_template: 2.6711s
[2020-04-28T19:24:55.769Z] [success] 1.61% test_stan.TestStan.test_metricset_1_channels: 2.5026s
[2020-04-28T19:24:55.769Z] [success] 1.41% test_appsearch.Test.test_stats: 2.1864s
[2020-04-28T19:24:55.769Z] [success] 1.10% test_redisenterprise.Test_0.test_metricset_1_proxy: 1.7158s
[2020-04-28T19:24:55.769Z] [success] 1.05% test_redisenterprise.Test_0.test_metricset_0_node: 1.6243s
[2020-04-28T19:24:55.769Z] [success] 0.90% test_ibmmq.Test.test_qmgr: 1.3995s
[2020-04-28T19:24:55.769Z] [success] 0.88% test_activemq.ActiveMqTest_1.test_broker_metrics_collected: 1.3732s
[2020-04-28T19:24:55.769Z] [success] 0.86% test_activemq.ActiveMqTest_0.test_queue_metrics_collected: 1.3410s
[2020-04-28T19:24:55.769Z] [success] 0.84% test_stan.TestStan.test_metricset_0_stats: 1.2982s
[2020-04-28T19:24:55.769Z] [success] 0.83% test_mssql.Test.test_status: 1.2897s
[2020-04-28T19:24:55.769Z] [success] 0.82% test_coredns.Test.test_stats: 1.2811s
[2020-04-28T19:24:55.769Z] [success] 0.79% test_activemq.ActiveMqTest_1.test_topic_metrics_collected: 1.2252s
[2020-04-28T19:24:55.769Z] [success] 0.78% test_activemq.ActiveMqTest_0.test_topic_metrics_collected: 1.2171s
[2020-04-28T19:24:55.769Z] [success] 0.77% test_xpack_base.Test.test_start_stop: 1.1916s
[2020-04-28T19:24:55.769Z] [success] 0.74% test_mssql.Test.test_performance: 1.1545s
[2020-04-28T19:24:55.769Z] ----------------------------------------------------------------------
[2020-04-28T19:24:55.769Z] Ran 24 tests in 864.755s
[2020-04-28T19:24:55.769Z] 
[2020-04-28T19:24:55.769Z] OK
[2020-04-28T19:24:55.769Z] >> python test: Integration Testing Complete
[2020-04-28T19:24:55.769Z] >> Stopping Docker test environment...
[2020-04-28T19:25:00.273Z] Recording test results
[2020-04-28T19:25:05.346Z] Archiving artifacts
[2020-04-28T19:25:07.009Z] + curl -sSLo codecov https://codecov.io/bash
[2020-04-28T19:25:07.271Z] + FILE=auditbeat/build/coverage/full.cov
[2020-04-28T19:25:07.271Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-04-28T19:25:07.271Z] + FILE=filebeat/build/coverage/full.cov
[2020-04-28T19:25:07.271Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-04-28T19:25:07.271Z] + FILE=heartbeat/build/coverage/full.cov
[2020-04-28T19:25:07.271Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-04-28T19:25:07.271Z] + FILE=libbeat/build/coverage/full.cov
[2020-04-28T19:25:07.271Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-04-28T19:25:07.271Z] + FILE=metricbeat/build/coverage/full.cov
[2020-04-28T19:25:07.271Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-04-28T19:25:07.271Z] + FILE=packetbeat/build/coverage/full.cov
[2020-04-28T19:25:07.271Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-04-28T19:25:07.271Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-04-28T19:25:07.271Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-04-28T19:25:07.272Z] + FILE=journalbeat/build/coverage/full.cov
[2020-04-28T19:25:07.272Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-04-28T19:25:11.508Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18063
[2020-04-28T19:25:11.703Z] [INFO] getVaultSecret: Getting secrets
[2020-04-28T19:25:11.786Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-04-28T19:25:30.464Z] + chmod 755 generate-build-data.sh
[2020-04-28T19:25:30.464Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18063/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18063/runs/1 FAILURE 4687529
[2020-04-28T19:25:31.015Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18063/runs/1/steps/?limit=10000 -o steps-info.json
[2020-04-28T19:25:31.566Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18063/runs/1/tests/?status=FAILED -o tests-errors.json

@blakerouse blakerouse merged commit dfb87a7 into elastic:7.x Apr 28, 2020
@blakerouse blakerouse deleted the backport_18020_7.x branch May 6, 2020 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug review Team:Platforms Label for the Integrations - Platforms team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants