Repository navigation
fix --html report in web mode - #1992
Conversation
|
command line help text is a bit verbose, "Store HTML report to file path specified" should be enough, does that sound ok? If you havent already, please test this in "regular" mode (run a test from the gui, stop it from the gui) as well as using |
It's OK I've forgot stop button in web ui:sweat_smile:. But there's a problem in And, what do you think about dealing with |
|
Good question. Unfortunately I'm not completely up to speed on those things, and I dont have time to dig into it, so your guess is as good as mine :) (I will of course be happy to review, once it is working)
I dont understand that sentence... |
If running locust will be CTRL+C, `get_html_report` will be received by catching the exception. Signed-off-by: Chenyang Yan <memory.yancy@gmail.com>
|
Sorry, my broken English馃槄 It means there's a bug with I updated, could you help me review it? |
| self._swarm_greenlet = None | ||
| environment.runner.stop() | ||
| if self.greenlet is not None: | ||
| self.greenlet.kill(block=True) |
There was a problem hiding this comment.
Hmm... I'm worried this might cause issues with repeated gui runs. Have you tried that?
There was a problem hiding this comment.
What does meaning of repeated gui runs? I guess that different --web-port to run?
I have tried that it's normal to start again after sending the stop button, even for different ports.
There was a problem hiding this comment.
I have tried that it's normal to start again after sending the stop button, even for different ports.
That's all I meant :) Thanks!
There was a problem hiding this comment.
Oops, it's my fault 馃槓 for the issue #1995. Again, I understood the meaning of with repeated gui runs, run multiple tests in one running locust environment.
|
Yea, that didnt work very well, causing the issue #1995 I'm reverting the greenlet killing part. |
This PR caused the master pod restarting and resetting the data. After clicking Stop button UI, /stats/report becomes unaccessible since the process is stopped. |
If locust is started by
--headfulargument(web mode),main_greenlet.join()will serve forever.get_html_reportwill be inaccessable.If running locust will be CTRL+C,
get_html_reportwill not be received by catching the exception.In order to keep simple,
get_html_reportis dealt withshutdown()according to--htmlargument value.Signed-off-by: Chenyang Yan memory.yancy@gmail.com
Edit: Fixes #1944