-
Notifications
You must be signed in to change notification settings - Fork 313
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
Fail Rally early if there are unused variables in track-params #688
Fail Rally early if there are unused variables in track-params #688
Conversation
This is fully working, but doesn't address variables in track / body / index_template in a uniform way.
This WiP is fully working and catches cases when a track-param overrides only index settings or index templates.
and add new integration tests and unit tests. Also clean up debug statements.
@danielmitterdorfer I am open to suggestions as to the milestone, perhaps |
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.
I did a first pass focussing mainly on the usability aspects. Wdyt?
I tested the workflow in vagrant, including the changes to address PR comments and suggestions for the correct parameters, and our nightlies seem to ok. I've requested another review pass. |
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.
I did another pass. I really like the new error message! :) I also left a couple more comments about the implementation.
@danielmitterdorfer can you take another pass please? I addressed the refactoring requests and other comments. |
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.
I left one suggestion to make CompleteTrackParams
more robust but apart from that LGTM. Feel free to merge after addressing my comment. Thank you for this massive effort! This is a great usability improvement. :)
and add a test case
At the moment we are not checking if user-defined parameters in
--track-params
actuallydo end up getting applied in any of the referenced jinja2 templates in the track, index body or referenced index templates. This can be very dangerous e.g. when trying to influence crucial benchmarking parameters that are parametrizable in our standard tracks, like
number_of_shards
,source_enabled
etc.Fail Rally fast if unused parameters get supplied with
--track-params
.Resolves #478