-
Notifications
You must be signed in to change notification settings - Fork 1.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
Polish: RampingVUs #2149
Comments
Tests still pass when I remove the What should I test for? IDK whether there is a need for a test? Any ideas are appreciated 🙏 @na-- @imiric @mstoykov @codebien @yorugac |
As far as I can see this code is mostly useful if you have gracefulRampDown that needs to finish before the gracefulShutDown so something like
In this case with the default gracefulRampDown/Shutdown of 30s and a default function that just blocks we should stop the 5th VU at 5s(first stage)+1s( from the second stage) + 30s(gracefulRampDown), the 4th will be +1s and so on. instead of without it in which case they should stop at 5s+5s+30s(gracefulShutDown) which mostly will also happen because the context used has the deadline of the stages durations + gracefulShutDown. So I guess you now need to extend/remake one the tests to add a way to test something in this vain (possibly with no 5 VUs and not with 30s+ of a test ;) ) |
@mstoykov Is there a similar code that I can look at? |
A more complete example:
If the feature is working you should get
if it's not you will get
or both vus will finish their iteration while only the first one should have the time |
There already is a test that tested something similar, just apparently not to the extent it needed. Here is proposed-test-change.txt patch with some changes that now break when you remove the lines. I am not particularly certain this now doesn't miss something else so maybe it's better to be added as a separate test |
Thanks! I didn't get what this means :(
Btw, why do we need to handle the remaining VUs? It's because when I tested, the number of VUs became 0 at the end, with or without |
It means that either I sleep or my autocorrect is ... going wrong I meant
while we will always stop the VU execution without it we won't stop them at the particular time they should be based on the |
Closed by #2155, right? |
Yep! |
Since my refactoring steps are getting bigger and bigger, I think it's better to create a new issue for the
RampingVUs
executor to track what's going on here.It's also because there are and possibly will be multiple PRs related to this issue:
handleRemainingVUs
The text was updated successfully, but these errors were encountered: