-
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 the execution derivation bug and work around the k6 0.24.0 wrong tar metadata #1057
Conversation
Also, since those options were included by k6 v0.24.0, only emit a warning instead of an error if the derived execution options match any `execution` options that are "specified" by the user, since at that level we can't distinguish if we're executing an archive or a script...
Codecov Report
@@ Coverage Diff @@
## master #1057 +/- ##
==========================================
+ Coverage 72.78% 72.79% +<.01%
==========================================
Files 133 133
Lines 9884 9905 +21
==========================================
+ Hits 7194 7210 +16
- Misses 2272 2278 +6
+ Partials 418 417 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1057 +/- ##
==========================================
+ Coverage 72.78% 72.79% +<.01%
==========================================
Files 133 133
Lines 9884 9905 +21
==========================================
+ Hits 7194 7210 +16
- Misses 2272 2278 +6
+ Partials 418 417 -1
Continue to review full report at Codecov.
|
Seems that besides more tests, I'll have to make another change to the shortcut options, relating to this issue: #1058 |
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.
LGTM! Don't forget to fix the golangci issue before merging ;)
This would just produce a shared-iterations scheduler with the specified number of iterations and a maxDuration equal to the passed duration, similar to how it works in the current k6 execution. This should fix #1058.
7f9e39f
to
0109458
Compare
Just for posterity, here's an explanation why the bugfix part of this PR was insufficient: #1007 (comment) |
This includes two minor improvements + refactoring and a bugfix:
Include the k6 version in the tar archives' metadata.json
Do not include the derived execution options in tar archives
Also, since those options were included by k6 v0.24.0, only emit a warning instead of an error if the derived execution options match any
execution
options that are "specified" by the user, since at that level we can't distinguish if we're executing an archive or a script...Allow simultaneous use of
duration
anditerations
execution shortcutsThis would just produce a shared-iterations scheduler with the specified number of iterations and a
maxDuration
equal to the passedduration
, similar to how it works in the current k6 execution. This should fix Specifying both duration and iterations is deprecated and won't be supported in the future k6 versions #1058.