grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent
https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/
Apache License 2.0
161 stars 24 forks source link

k6runner: send logs even if metrics are malformed #742

Closed roobre closed 3 months ago

roobre commented 3 months ago

Another step towards https://github.com/grafana/synthetic-monitoring-app/issues/835.

When https://github.com/grafana/sm-k6-runner/pull/208 is merged, there is a theoretical possibility of the logs and/or metrics returned by the runner to be malformed, for example is k6 is killed while it is writing its output.

This PR adds tests for that case, ensuring that:

roobre commented 3 months ago

Sorry @ka3de, rebasing borked your review :(