We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, the local k6 runner will return an error if the k6 binary exits with an error:
k6
synthetic-monitoring-agent/internal/k6runner/local.go
Line 123 in 4c44fa9
Unfortunately, it does so before collecting logs a few lines later:
Line 139 in 4c44fa9
Furthermore, the k6 processor will ignore any reported logs if k6runner.Run returns an error, as it is currently doing:
k6runner.Run
synthetic-monitoring-agent/internal/k6runner/k6runner.go
Line 130 in 4c44fa9
This makes k6 log output invisible when there is an error running k6, which results in hard to debug scenarios. We should change this:
RunResponse.Error
RunResponse.ErrorCode
error
Run()
Line 75 in 4c44fa9
The cloud runner does this by heuristically checking if an error is an user-error, and reading the log output if it is: https://github.com/grafana/sm-k6-runner/blob/f0057a93a7237b827aca0d1dc470cd45df0f79f3/internal/runner/runner.go#L213
The text was updated successfully, but these errors were encountered:
Related to #1059 ?
Sorry, something went wrong.
No branches or pull requests
Currently, the local k6 runner will return an error if the
k6
binary exits with an error:synthetic-monitoring-agent/internal/k6runner/local.go
Line 123 in 4c44fa9
Unfortunately, it does so before collecting logs a few lines later:
synthetic-monitoring-agent/internal/k6runner/local.go
Line 139 in 4c44fa9
Furthermore, the k6 processor will ignore any reported logs if
k6runner.Run
returns an error, as it is currently doing:synthetic-monitoring-agent/internal/k6runner/k6runner.go
Line 130 in 4c44fa9
This makes k6 log output invisible when there is an error running k6, which results in hard to debug scenarios. We should change this:
RunResponse.Error
andRunResponse.ErrorCode
, instead oferror
inRun()
:synthetic-monitoring-agent/internal/k6runner/k6runner.go
Line 75 in 4c44fa9
The cloud runner does this by heuristically checking if an error is an user-error, and reading the log output if it is:
https://github.com/grafana/sm-k6-runner/blob/f0057a93a7237b827aca0d1dc470cd45df0f79f3/internal/runner/runner.go#L213
The text was updated successfully, but these errors were encountered: