-
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
[WIP] PoC for native distributed execution #2438
Conversation
This makes everything much more easily testable!
This will ensure we have the same behavior as previous k6 version there's an error before setupLoggers() is executed, e.g. when parsing a wrong CLI flag. However, we will now also respect NO_COLOR and K6_NO_COLOR and disable it when they are specified.
This actually also fixes a minor bug where the CLI flag was available in `k6 run` and `k6 inspect`, but it wasn't available in `k6 cloud` and `k6 archive`.
This is a prerequisite for solving other issues like always evaluating thresholds correctly, and as a side-benefit, it also allows us to validate them in the init context, before the test has started.
This allows us to slowly deconstruct and split apart the Engine. It also clears the way for us to have test suites, where every test has a separate pool of VUs and its own ExecutionScheduler.
591a0fe
to
f06d6f0
Compare
58fca82
to
8276246
Compare
This PR has become ultra-stale, so I'm closing it as it is, to preserve its historical state. Over the last several days, I've polished and greatly expanded some of the PoC changes here in multiple PRs on top of the current The final 2 very WIP commits here were also rebased on the latest |
This is a proof of concept for the refactoring we need to do to do a simple version of #140. The tests are not fixed yet, and there are quite a lot of rough edges, but it works 🎉