-
Notifications
You must be signed in to change notification settings - Fork 174
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
Make reading logs by initializer a more reliable operation #193
Comments
Additionally, k6 Operator is not usable in some specific cases of k6 scripts. It was reported in #207 and see explanation here. k6 docs about It's a bit of mess of inconsistent behaviour. It'd be good to have a generalized solution to this, in order not to stumble over k6 exceptions. |
The same problem can manifest even without cloud output but in any scenario when there is another process writing to the output of the initializer Pod. Which sounds a bit strange at first glance but it does happen, case in study: Renaming the issue to reflect new reality. |
After some additional thinking and feedback 🙂 Initializer pod is currently used for two reasons:
If there is a way to implement this without running a pod but by calling k6 Go library, we could remove initializer pod completely! That would simplify running tests for users (because of initializer-specific errors mentioned above), simplify TestRun CRD definition and simplify logic of TestRun controller. |
Another important reason to solve this: regular issues with configuring env vars for k6 scripts. The error appears because of k6 quirks and inconsistencies between different commands, and people regularly stumble on this. Some sample issues: |
A few times, we've received reports on reading logs not being possible, for example: |
Another case when the problem can manifest is if one writes an extension and logs something (even |
@yorugac would you consider a bigger rework of how the initializer is integrated? |
Hi @frittentheke, I've finally grokked both your PRs and commented there accordingly 🙌
Well, this issue, #193, does exist, so that can be taken as "certainly" 😄 I actually hope to find the solution that would allow to remove initializer pod completely. But that kind of solution obviously takes awhile. So in general, we definitely could do with additional improvements of the current flow. On a condition that they don't break existing use cases, of course. |
Envoy is not usable with cloud output when logging is enabled. See #179. It’d be good to figure out some alternative in order not to depend on logs in the initializer so much.
Context. Previously, adding k6 dependency to the operator to calculate MaxVUs and Duration was deemed as too heavy to add directly - that's how initializer job appeared. Check if that changed in recent refactoring of k6.
The text was updated successfully, but these errors were encountered: