Skip to content

Cherry-pick #17799 to 7.x: Update metricbeat to use mage for all scenarios along with Makefile shim#17951

Merged
blakerouse merged 3 commits intoelastic:7.xfrom
blakerouse:backport_17799_7.x
Apr 28, 2020
Merged

Cherry-pick #17799 to 7.x: Update metricbeat to use mage for all scenarios along with Makefile shim#17951
blakerouse merged 3 commits intoelastic:7.xfrom
blakerouse:backport_17799_7.x

Conversation

@blakerouse
Copy link
Copy Markdown
Contributor

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

What does this PR do?

Update's metricbeat to use mage for all scenarios and replace Makefile with the mage Makefile shim.

Why is it important?

While working on #17656 I ran into issues with running the integration tests because the current Makefile would override the usage of docker-compose instead of using the logic that was already in the mage work.

This ensures that the same logic is used for x-pack/metricbeat and metricbeat.

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.

How to test this PR locally

cd metricbeat && mage update build test

@blakerouse blakerouse requested a review from a team as a code owner April 23, 2020 18:58
@blakerouse blakerouse requested a review from a team April 23, 2020 18:58
@blakerouse blakerouse added Team:Platforms Label for the Integrations - Platforms team Team:Services (Deprecated) Label for the former Integrations-Services team labels Apr 23, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@elasticmachine
Copy link
Copy Markdown
Contributor

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

@ChrsMark
Copy link
Copy Markdown
Member

@blakerouse I see a missmatch in the number of changed files (61 vs 62) between this one and its original, is this expected or sth went wrong?

@blakerouse
Copy link
Copy Markdown
Contributor Author

@ChrsMark No that is expected, this did not backport easily, lots of things had to be fixed. Maybe another commit needs to be backported first, and I will also look at the failures.

@andrewkroh
Copy link
Copy Markdown
Member

@blakerouse It look like the Metricbeat generator tests are failing when calling make create-metricset. Can you please take a look. I think it's related to this change.

…him (elastic#17799)

* Update metricbeat to use mage and the mage make targets.

* Run update and fmt.

* Remove assets.go as its no longer used.

* Split apart the metricbeat tests in travis into multiple jobs to take less time and not run over the timeline.

* Add back in create-metricset with mage.

* Re-add test_xpack_base.py.

* Add kafka to requirements.txt.

* Fix kafka to work with python 3.7.

* Remove the extra kafka-python from rebase on master.

* Fix issues from code review.

* Add back in comment from merge.

* Fix comment spacing.

* Fix update target in generate metricbeat.

* Update magefile in metricbeat generator.

* Run fmt and update.

(cherry picked from commit 8786d05)
@blakerouse blakerouse merged commit 6858550 into elastic:7.x Apr 28, 2020
@blakerouse blakerouse deleted the backport_17799_7.x branch April 28, 2020 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants