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

Fix mage package on generated beats #15140

Merged

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Dec 17, 2019

Mage package calls some targets by name (instead of by reference), and
then these targets need to be defined in the main magefile.

Add mage package to the test suite so we earlier detect these issues.

This is probably broken since #14162

Fix #15122

Mage package calls some targets by name (instead of by reference), and
then these targets need to be defined in the main magefile.

Add mage package to the test suite so we earlier detect these issues.
@jsoriano jsoriano added review :Generator Related to code generators for building custom Beats or modules. labels Dec 17, 2019
@jsoriano jsoriano self-assigned this Dec 17, 2019
@jsoriano jsoriano added needs_backport PR is waiting to be backported to other branches. v7.5.1 v7.6.0 labels Dec 17, 2019
Copy link
Member

@radoondas radoondas left a comment

Choose a reason for hiding this comment

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

Looks good to me. I also tested changes and they obviously fix the issue with missing targets. Thanks

@jsoriano
Copy link
Member Author

I am removing the tests by now because they were problematic in OSX builds where docker is not installed, and in local builds where I found it creating files owned by root (because of running the build on docker).

@jsoriano
Copy link
Member Author

Ok, ended up keeping the tests, but only on Linux builds, tests pass now.

Copy link
Contributor

@fearful-symmetry fearful-symmetry left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! LGTM.

@jsoriano jsoriano merged commit 315837b into elastic:master Jan 8, 2020
@jsoriano jsoriano deleted the mage-package-generators-build-targets branch January 8, 2020 09:48
@jsoriano jsoriano removed the needs_backport PR is waiting to be backported to other branches. label Jan 8, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Jan 8, 2020
Mage package calls some targets by name (instead of by reference), and
then these targets need to be defined in the main magefile.

Add mage package to the test suite so we earlier detect these issues.

(cherry picked from commit 315837b)
jsoriano added a commit to jsoriano/beats that referenced this pull request Jan 8, 2020
Mage package calls some targets by name (instead of by reference), and
then these targets need to be defined in the main magefile.

Add mage package to the test suite so we earlier detect these issues.

(cherry picked from commit 315837b)
@jsoriano jsoriano added the v7.5.2 label Jan 8, 2020
jsoriano added a commit that referenced this pull request Jan 9, 2020
Mage package calls some targets by name (instead of by reference), and
then these targets need to be defined in the main magefile.

Add mage package to the test suite so we earlier detect these issues.

(cherry picked from commit 315837b)
jsoriano added a commit that referenced this pull request Jan 11, 2020
Mage package calls some targets by name (instead of by reference), and
then these targets need to be defined in the main magefile.

Add mage package to the test suite so we earlier detect these issues.

(cherry picked from commit 315837b)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…elastic#15383)

Mage package calls some targets by name (instead of by reference), and
then these targets need to be defined in the main magefile.

Add mage package to the test suite so we earlier detect these issues.

(cherry picked from commit 3535491)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Generator Related to code generators for building custom Beats or modules. review v7.5.1 v7.5.2 v7.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Community beats packaging broken in 7.5
3 participants