Skip to content
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

Merged
merged 3 commits into from
Mar 18, 2019

Conversation

ebadyano
Copy link
Contributor

Allows a user to run against an older commit of a Rally track.

Fixes #663

Allows a user to run against an older commit of a Rally track.

Fixes elastic#663
@ebadyano ebadyano changed the title Introduced new command line parameter --track-revision WIP: Introduced new command line parameter --track-revision Mar 15, 2019
Marked track.repository a non mandatory parameter.
@ebadyano ebadyano changed the title WIP: Introduced new command line parameter --track-revision Introduced new command line parameter --track-revision Mar 15, 2019
Copy link
Member

@danielmitterdorfer danielmitterdorfer left a 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.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: track repository

Copy link
Contributor Author

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!

@@ -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``
~~~~~~~~~~~~~~~~~
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@ebadyano ebadyano changed the title Introduced new command line parameter --track-revision Introduce new command line parameter --track-revision Mar 18, 2019
@ebadyano ebadyano added this to the 1.1.0 milestone Mar 18, 2019
@ebadyano ebadyano added :Track Management New operations, changes in the track format, track download changes and the like enhancement Improves the status quo labels Mar 18, 2019
@ebadyano ebadyano merged commit be78672 into elastic:master Mar 18, 2019
@ebadyano ebadyano deleted the track_revision branch March 18, 2019 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Track Management New operations, changes in the track format, track download changes and the like
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants