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

Fixed Summary Generated Events #3730

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ameetpal
Copy link
Contributor

@ameetpal ameetpal commented May 2, 2024

What?

This PR fixes the shortcomings of TestSummaryGenerated Event :- #3682

Why?

The previously added TestSummaryGenerated had data in the form of a map with keys of type string and values of type io.Reader, however, the stream had already been read by stdout. Additionally, the data was formatted for console output, which was not consistent with what was expected by the handleSummary function of the test. Therefore, I returned the exact summary passed into the function and sent it as an event.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@ameetpal ameetpal requested a review from a team as a code owner May 2, 2024 12:44
@ameetpal ameetpal requested review from codebien and olegbespalov and removed request for a team May 2, 2024 12:44
olegbespalov
olegbespalov previously approved these changes May 3, 2024
Copy link
Collaborator

@olegbespalov olegbespalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codebien and maybe @grafana/k6-core we might consider adding this into upcoming release

@olegbespalov
Copy link
Collaborator

Hey @ameetpal. After an internal discussion, we decided to revert to the original changes to reduce it from the scope of the upcoming release #3736 (since they will change). In the next v0.51, we could continue working on that PR. In any case, thank you for your contributions!

@olegbespalov olegbespalov self-requested a review May 9, 2024 13:49
@olegbespalov
Copy link
Collaborator

Hey @ameetpal

We did release the k6 v0.51. Could you please rebase this PR using the latest master branch? Also, out of curiosity, this version of the changes satisfies your needs, right?

@olegbespalov olegbespalov added the awaiting user waiting for user to respond label May 15, 2024
@ameetpal
Copy link
Contributor Author

ameetpal commented May 16, 2024

Hey @olegbespalov , i have updated the branch, some random tests are failing, but are not related to my changes
Yes these changes are correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting user waiting for user to respond
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants