You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running K6 locally - k6 run test.js - the error is easy to see and debug
Ex.
k6 run test.js
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ ||/ / / /
/ \/\ | ( / ‾‾\
/ \ ||\ \ | (‾) |
/ __________ \ |__|\__\ \_____/ .io
ERRO[0000] GoError: stat /Users/nema/kneemaa/hello.proto: no such file or directory
at reflect.methodValueCall (native)
at file:///Users/kneemaa/core/test.js:5:13(35)
at native hint="script exception"
But when ran in Kubernetes with the Operator model, the pods end up in an Error status and have no logs to indicate what the error is. When you describe the pod you can see that the exit code is 107
The problem seems to be that k6 is executed with --log-output=none, so that is why it doesn't show the error. I will move the issue to the k6-operator repo, since in this case it seems like k6 is working as intended.
@na-- any ideas on where to set this for initializer? We are attempting to build our own debug images locally and use that image to test but the --log-output is staying at none
Hi @kneemaa, thanks for opening the issue! This happened due to some peculiarities of k6 logging requiring workarounds. I've discussed this case with k6 team and just added a fix in PR #174, please see.
Brief summary
This was found while trying to configure gRPC tests with the Operator + Runner model.
If the importPath for the loaded .proto file does not exist, K6 will exit with code 107 (script exception).
When running K6 locally -
k6 run test.js
- the error is easy to see and debugEx.
But when ran in Kubernetes with the Operator model, the pods end up in an Error status and have no logs to indicate what the error is. When you describe the pod you can see that the exit code is 107
Port: 6565/TCP Host Port: 0/TCP Command: sh -c k6 archive --log-output=none /test/grpc.js -O ./grpc.js.archived.tar && k6 inspect --execution-requirements --log-output=none ./grpc.js.archived.tar State: Terminated Reason: Error Exit Code: 107 Started: Tue, 15 Nov 2022 22:26:20 -0800 Finished: Tue, 15 Nov 2022 22:26:21 -0800 Ready: False Restart Count: 0
No logs available
k6 version
k6 v0.41.0 ((devel), go1.19.3, darwin/arm64)
OS
macOS 12, kubernetes 1.24.1
Docker version and image (if applicable)
No response
Steps to reproduce the problem
client.load(['definitions'], 'hello.proto');
to be something invalidExpected behaviour
Helpful output for exit code 107 to logs for debugging
Actual behaviour
No log output for exit code 107
The text was updated successfully, but these errors were encountered: