Skip to content
New issue

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

k6runner: send logs even if metrics are malformed #742

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

nadiamoe
Copy link
Member

@nadiamoe nadiamoe commented Jun 26, 2024

Another step towards grafana/synthetic-monitoring-app#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:

  • Receiving borked metrics triggers an error
  • Receiving borked metrics still causes logs to be sent, and the execution to be marked as failure.

@nadiamoe nadiamoe requested a review from a team as a code owner June 26, 2024 11:57
@nadiamoe nadiamoe force-pushed the k6script-broken-metrics branch from 698d447 to 00ecca4 Compare June 26, 2024 12:00
ka3de
ka3de previously approved these changes Jun 26, 2024
@nadiamoe nadiamoe force-pushed the k6script-broken-metrics branch from 00ecca4 to 70f221e Compare June 26, 2024 13:44
@nadiamoe nadiamoe force-pushed the k6runner-test-logs branch from d67a369 to 911c174 Compare June 26, 2024 13:52
Base automatically changed from k6runner-test-logs to main June 26, 2024 13:57
@nadiamoe nadiamoe dismissed ka3de’s stale review June 26, 2024 13:57

The base branch was changed.

@nadiamoe nadiamoe force-pushed the k6script-broken-metrics branch from 70f221e to c65a0c4 Compare June 26, 2024 13:57
@nadiamoe nadiamoe requested a review from ka3de June 26, 2024 13:58
@nadiamoe
Copy link
Member Author

Sorry @ka3de, rebasing borked your review :(

@nadiamoe nadiamoe merged commit f62a173 into main Jun 26, 2024
4 checks passed
@nadiamoe nadiamoe deleted the k6script-broken-metrics branch June 26, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants