Azure Deveops pipeline reports every k6 test iteration as error

i have a azure devops pipeline where the k6 test is run with a locally installed version k6 in the pipeline agent. When the pipeline is run, could see that the every iteration by the VUs is being reported as error in the pipeline.

is there any way to avoid reporting these as errors ?

image

Hi there,

Are you using the azure-pipelines-extension available in the marketplace (https://marketplace.visualstudio.com/items?itemName=k6.k6-load-test) or a custom job that you’ve put together yourself?

Best regards,
Simme

Hi
i have set up a remote windows desktop in the cloud where k6 is installed ( k6-v0.26.2-win64.zip)

The pipeline logs into that machine and runs the test.

I added --quiet as command line options to run the test in pipeline. Not sure if this will be suppress the actual erros that happens in the test run which is reported by fail

hmm k6 emits logs to stderr and maybe something (powershell?) considers anything outputted to stderr as an error? you should be able to redirect the stderr to stdout - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_redirection?view=powershell-7