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

Shutdown workers when using LoadTestShape and headless mode #1683

Merged
merged 1 commit into from
Jan 20, 2021
Merged

Shutdown workers when using LoadTestShape and headless mode #1683

merged 1 commit into from
Jan 20, 2021

Conversation

max-rocket-internet
Copy link
Contributor

Resolves #1653

@max-rocket-internet
Copy link
Contributor Author

@cyberw why aren't the tests running?

@cyberw
Copy link
Collaborator

cyberw commented Jan 20, 2021

Because travis freaked out about their free/open source tier. Heyman has reached out to them.

@cyberw cyberw merged commit f676961 into locustio:master Jan 20, 2021
@cyberw
Copy link
Collaborator

cyberw commented Jan 20, 2021

Hmm.. I am lazy and didnt run the tests until after merging. So I had to fix an issue exposed by test_runners.py, but there seems to still be an issue with test_main.py (the commit above)

I tried adding "-L", "DEBUG", in that test, because I think Quitting... is only printed then, but that does not seem to be enough...

@max-rocket-internet
Copy link
Contributor Author

Yeah I didn't run any tests as they were not working locally and the travis tests weren't working either. I didn't expect you to merge the PR until at least the travis tests were run 🙂

Shall I open another PR to fix the tests?

@max-rocket-internet max-rocket-internet deleted the shape_headless_exit branch January 21, 2021 13:46
@cyberw
Copy link
Collaborator

cyberw commented Jan 21, 2021

Ah, I got a little bit ahead of myself :)

Yes, if you can open a new PR with a fix that would be great.

@aek
Copy link
Contributor

aek commented Jan 21, 2021

I have created this one for improve tests:
#1685

@cyberw
Copy link
Collaborator

cyberw commented Jan 22, 2021

ping @heyman this is the PR we're waiting for a fix for :)

@heyman
Copy link
Member

heyman commented Jan 22, 2021

AFAICT we only log the Quitting... message when we run in master mode, and since the test runs locust with a LocalRunner it'll fail. Maybe we can just remove that check (https://github.com/locustio/locust/pull/1683/files#diff-81a8e34f7c9a9b06d20ff25a8b8d6f6fe983707f8ba66780659df4fe4fffa2aaR282)?

@heyman
Copy link
Member

heyman commented Jan 22, 2021

I removed the check in cb56d64 (to get the Github Actions CI to work).

@max-rocket-internet
Copy link
Contributor Author

Sorry, I've been super busy. So this is resolved now I see by just reverting my change to the test. OK cool 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

locust should exit when a load shape returns None in headless mode
4 participants