-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 default argument handling in rake artifact task #13904
Conversation
jenkins test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇 checked generated artifacts before/after and can confirm bin/bundle
was and is no longer included in any of the (.zip/.gz) artifacts.
CI failures seem unrelated (one timeout second intermittent stats API returning no response)
5825f25
to
0439611
Compare
Ruby allows methods to have default values in arguments if they're not passed. However if a nil is passed then the default value isn't used. The artifact:archives tasks were passing nil values to the exclusion argument, causing all files to be included in the package. This commit cleans the naming of the path lists and ensures the default exclusion list is always used.
0439611
to
785a0c6
Compare
@logstashmachine backport 8.1 |
Ruby allows methods to have default values in arguments if they're not passed. However if a nil is passed then the default value isn't used. The artifact:archives tasks were passing nil values to the exclusion argument, causing all files to be included in the package. This commit cleans the naming of the path lists and ensures the default exclusion list is always used.
Ruby allows methods to have default values in arguments if they're not passed. However if a nil is passed then the default value isn't used. The artifact:archives tasks were passing nil values to the exclusion argument, causing all files to be included in the package. This commit cleans the naming of the path lists and ensures the default exclusion list is always used.
Ruby allows methods to have default values in arguments if they're not
passed. However if a nil is passed then the default value isn't used.
The artifact:archives tasks were passing nil values to the exclusion
argument, causing all files to be included in the package.
This commit cleans the naming of the path lists and ensures the default
exclusion list is always used.
To test this the reviewer can run
rake artifact:archives
and then confirm that the produced archives don't include files such as "bin/bundle" or in the case of OSS archives, the "x-pack" folder.