-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Locustfile distribution from master to worker #2583
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3706ae4
Allow workers to get locustfile directly from master instead of needi…
cyberw 0b5c72d
Mypy
cyberw 4e1f2b8
Merge branch 'master' of github.com:locustio/locust into add-support-…
cyberw 9de395e
unit test: switch back to using custom locustfile contents
cyberw a1d37c2
Merge branch 'master' of github.com:locustio/locust into locustfile-d…
cyberw 04e4182
Merge branch 'master' of github.com:locustio/locust into locustfile-d…
cyberw 127b197
remove wip test case (not related to this branch anyway)
cyberw 99ad0f5
move locustfile downloading into a separate function.
cyberw c99f96a
ensure worker actually runs when testing locustfile distribution
cyberw 4d869af
Document how to use "--locustfile -" to download locustfile from master.
cyberw c0da5c3
unit test: try to improve stability on macos
cyberw ecffbb5
Unit test: give macos some extra time to start up
cyberw 9f21437
typo
cyberw 8bbc223
unit test stability...
cyberw 83aa072
Log warning about change in locustfile when running with distributed …
cyberw c9c11bd
improve error logging when distributing locustfile
cyberw 445b13d
unittest: use longer sleeps on windows too.
cyberw 5b5b74a
Disable flaky test on macos
cyberw 589f42f
Print error message about "--locustfile -" needing to be combined wit…
cyberw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
is this just in case the user didn't put .py at the end? Feels like this maybe should be done in the argument parser if possible
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.
The default value for locust file is "locustfile" (but gets expanded to "locustfile.py" implictly) which is why I support this. I could change it to just "add .py if there is no .py at the end" which would support if someone says "locust -f module_name_without_py_at_the_end". Specifying a bare module name and then having the file transfered anyway, might be nice, but it is kinda weird, and exception logged later on (line 1048) might become confusing if locust just adds .py automatically. What do you think?