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

Option track-revision should work with track-repository #751

Merged
merged 2 commits into from
Aug 29, 2019

Conversation

ebadyano
Copy link
Contributor

Both options track-repository and track-revision should work together but not with track-path option.

Fixes: #740

@ebadyano ebadyano requested a review from dliappis August 23, 2019 15:19
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

This works fine and all tests seem to pass.

I left a request to add an integration test to ensure we catch future regressions.

@@ -191,7 +191,7 @@ def positive_number(v):
track_source_group.add_argument(
"--track-path",
help="Define the path to a track.")
track_source_group.add_argument(
p.add_argument(
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add an integration test?

We could use the list command:

rally/integration-test.sh

Lines 219 to 233 in 966891a

function test_list {
local cfg
random_configuration cfg
info "test list races [${cfg}]"
esrally list races --configuration-name="${cfg}"
info "test list cars [${cfg}]"
esrally list cars --configuration-name="${cfg}"
info "test list Elasticsearch plugins [${cfg}]"
esrally list elasticsearch-plugins --configuration-name="${cfg}"
info "test list tracks [${cfg}]"
esrally list tracks --configuration-name="${cfg}"
info "test list telemetry [${cfg}]"
esrally list telemetry --configuration-name="${cfg}"
}

and, in order to avoid having to add the eventdata repo in the rally.ini used by the integration script (which is randomized btw), we could just rely on the default repository with something like:

   info "test list can use track revision together with track repository"
    esrally list tracks --configuration-name="${cfg}" --track-repository=default --track-revision=4080dc9850d07e23b6fc7cfcdc7cf57b14e5168d
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure I will add it to the integration tests.

@dliappis dliappis added :Track Management New operations, changes in the track format, track download changes and the like bug Something's wrong labels Aug 26, 2019
@dliappis dliappis added this to the 1.3.0 milestone Aug 26, 2019
@dliappis dliappis self-requested a review August 28, 2019 07:07
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@ebadyano ebadyano merged commit d34f31d into elastic:master Aug 29, 2019
novosibman pushed a commit to novosibman/rally that referenced this pull request Oct 2, 2019
Option track-revision should work with track-repository but not
track-path
@ebadyano ebadyano deleted the fix-track-revision branch December 16, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's wrong :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.

track-revision is not allowed together with track-repository
2 participants