Am trying to figure out a way to fail the complete Testrun CR to fail, If one of the job fails among the parallel count provided as input. Is there a direct way to achieve this functionality ?
Hi @kishorekumarthudi
No, there’s no such thing now. The closest open issue is likely this:
opened 10:00AM - 07 Feb 23 UTC
enhancement
PLZ
In PR #169, `error` was added to the possible statuses of the CR. Currently, thi… s state happens only on insufficient number of VUs.
In PR #401, error upon loading output from initializer pod has also been added as `error` state.
Consider all the cases when the test run should enter that state and adjust the logic accordingly.
Related issue: https://github.com/grafana/k6-operator/issues/75
Review and close it as needs be.
Docs on k6 error codes:
- https://k6.io/docs/javascript-api/error-codes/
- https://k6.io/docs/cloud/cloud-reference/test-status-codes/
Please feel free to describe your use case in the comment there.