-
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
Fix non zero exit status #741
Conversation
Codecov Report
@@ Coverage Diff @@
## master #741 +/- ##
==========================================
+ Coverage 64.14% 64.17% +0.02%
==========================================
Files 101 101
Lines 8381 8393 +12
==========================================
+ Hits 5376 5386 +10
- Misses 2650 2652 +2
Partials 355 355
Continue to review full report at Codecov.
|
I'm not sure if the error code fix is necessary anymore, see my reasoning in my comment in the original issue. Regarding the runtime errors that basically busy-loop the script when you run it with a My ideas here revolve around adding some small sleep period for each VU after it encounters a runtime errors, let's say 1 second by default, but modifiable with a new JS option like Alternatively, albeit a much more complicated approach, I saw that we have an |
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.
See above comment for reasons
Closing this in favor of a future pull request that, as described here, adds some sort of default threshold (with And somewhat connected, but we might also add the |
When an error happened while executing the script, k6 wasn't returning a non 0 zero exit status, that is not ideal when setting up k6 in CI environment.
Another wrong behavior was that even if the script had an error k6 would not stop the execution and would run the script repeatedly until the duration or the number of iterations were complete.