-
Notifications
You must be signed in to change notification settings - Fork 314
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
Introduce new command line parameter --track-revision #666
Conversation
Allows a user to run against an older commit of a Rally track. Fixes elastic#663
Marked track.repository a non mandatory parameter.
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.
Thanks @ebadyano! LGTM. Can you please address my nits (but no need for another review round) and also add labels and the milestone accordingly? Also I think the PR title should be in present tense.
esrally/rally.py
Outdated
@@ -167,6 +167,10 @@ def positive_number(v): | |||
track_source_group.add_argument( | |||
"--track-path", | |||
help="Define the path to a track.") | |||
track_source_group.add_argument( | |||
"--track-revision", | |||
help="Define a specific revision in the tracks repository that Rally should use.", |
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.
nit: track repository
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.
@danielmitterdorfer Thank you for the review. I addressed you comments. Thanks!
docs/command_line_reference.rst
Outdated
@@ -64,6 +64,11 @@ Examples:: | |||
|
|||
Selects the track repository that Rally should use to resolve tracks. By default the ``default`` track repository is used, which is available in the Github project `rally-tracks <https://github.com/elastic/rally-tracks>`_. See the :doc:`track reference </track>` on how to add your own track repositories. ``--track-path`` and ``--track-repository`` as well as ``--track`` are mutually exclusive. | |||
|
|||
``track-revision`` | |||
~~~~~~~~~~~~~~~~~ |
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.
When building the docs, this produces the following warning:
``track-revision``
~~~~~~~~~~~~~~~~~
~/Projects/rally/docs/command_line_reference.rst:68: WARNING: Title underline too short.
Can you please fix the warning?
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.
Fixed
Allows a user to run against an older commit of a Rally track.
Fixes #663