-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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] Set MODULE per relevant stage #18741
Comments
@ycombinator, got a question regarding the description:
There is a contradiction with BTW, I just coded some changes in the CI Pipeline, to explicitly enable the MODULE env variable in the above relevant stages, the stages I did enable are the ones that are running the tests targets, please let me know if I missed any other stage: See the changes with |
Ah, sorry for the confusion. X-Pack FIlebeat does have modules so the I was trying to give an example of the current state of affairs where the
I was just trying to illustrate the same situation, but with X-Pack Filebeat and OSS Filebeat instead of X-Pack Metricbeat and OSS Metricbeat in @jsoriano's example. Sorry for causing confusion! |
Another example of this happened in #18802, a change for
|
Follow up to #18592. In #18592, we set the
MODULE
environment variable at a global scope. As such, once theMODULE
is determined and set, it gets used by all stages of the Jenkins CI pipeline. This can cause errors when the value ofMODULE
isn't valid for a a stage (e.g. X-Pack Filebeat doesn't implement the module specified inMODULE
).One fix would be to move the setting of
MODULE
from the global scope into each relevant stage of the Jenkins CI pipeline. We would only set it in those stages that implement Beats modules, viz. OSS Filebeat, OSS Metricbeat, OSS Auditbeat, X-Pack Filebeat, X-Pack Metricbeat, X-Pack Auditbeat, and X-Pack Winlogbeat. In each stage, the pattern used to determine whether module files have changed would need to be scoped to files relevant to that stage, e.g.x-pack/filebeat/module/*
for the X-Pack Filebeat stage.The text was updated successfully, but these errors were encountered: