-
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] Trigger stages on changes to vendor/ #16953
Comments
@urso also suggested to exclude changes from libbeat's asciidoc files otherwise a documentation change would trigger all of CI. |
These checks are still quite coarse. We could refine them even further. Some ideas:
|
@urso your recent PR #17358 I think that covers the vendor request here.
about this, it returns a list of packages I guess those packages match with a path on
|
The list command reports all dependencies, including vendor, Beats internal packages, and stdlib packages. The The idea is to check for Beats internal changes as well. For example if we do a change to go files in libbeat, than filebeat might be affected or not. This would affect auditbeat more, though. E.g. right now if a metricbeat module is touched we run all CI for auditbeat (which depends on the metricbeat code base) and metricbeat. But in fact we would just need to test a single module. |
This will return all the dependencies of
|
Correct. The command reports all packages and their transitive dependencies for main.go. Including itself and libbeat. But it only includes packages from libbeat it actually depends on, not all libbeat. On linux/windows it might even report a different set of packages due to build/linking being different for different OSes. E.g. in metricbeat we have modules that are only compiled into metricbeat for the windows build only. |
The conditional logic for triggering build stages in the Jenkins pipeline should also account for changes to the
vendor/
directory. Changes to the dependencies stored in thevendor/
directory can impact any project so they should all be built and tested.Related code: https://github.com/elastic/beats/blob/master/Jenkinsfile#L721-L787
The text was updated successfully, but these errors were encountered: