-
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
Explicit offline mode #1503
Explicit offline mode #1503
Conversation
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.
This works great, thank you! I've asked a few minor changes.
|
||
@it.rally_in_mem | ||
def test_run_without_http_connection(cfg): | ||
cmd = it.esrally_command_line_for(cfg, "list races") |
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.
What the... I had no idea we sent a request to GitHub for every single invocation, even when just listing races. This makes esrally list races
1.4s slower for me!
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.
It would be a nice thing to fix, probably in a separate PR, don't you think? I'm sure lots of commands don't need Rally to be online.
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.
Opened an issue so it's not forgotten: #1506.
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 for opening that issue!
Co-authored-by: Quentin Pradet <quentin.pradet@gmail.com>
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.
LGTM! Thanks for iterating.
Closes #1468.
In case there's no internet connection, exit and suggest using
--offline
mode, as opposed to falling back to offline mode without asking.Added an integration test as well.