Skip to content

Conversation

@joanlopez
Copy link
Contributor

What?

It moves back "programmatic" interfaces of the end-of-test summary (both custom handleSummary() and JSON output through --summary-export) to the legacy data structure (lib.LegacySummary), despite of the --summary-mode.

It technically makes #4089 non-breaking.

Why?

Because after having caught #4640, and while discussing #4647, we realized that maybe it's better to play safe and don't break this until v2.0, whenever that comes. Also, because the re-design of the machine-readable format (JSON) hasn't been planned until then.

Checklist

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

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link
  • I have updated or added an issue to the k6-documentation: grafana/k6-docs#NUMBER if applicable
  • I have updated or added an issue to the TypeScript definitions: grafana/k6-DefinitelyTyped#NUMBER if applicable

Related PR(s)/Issue(s)

@joanlopez joanlopez self-assigned this Mar 24, 2025
@joanlopez joanlopez requested a review from a team as a code owner March 24, 2025 07:37
@joanlopez joanlopez requested review from codebien, inancgumus, mstoykov, olegbespalov and oleiade and removed request for a team March 24, 2025 07:37
@joanlopez joanlopez force-pushed the dont-break-summary-api branch from 7bce6d0 to 174c0be Compare March 24, 2025 07:44
mstoykov
mstoykov previously approved these changes Mar 24, 2025
Copy link
Contributor

@mstoykov mstoykov left a comment

Choose a reason for hiding this comment

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

Can we please now get a test on the structure of the thing provided to handlesummary and the result of summary-export.

AFAIK require.JSONEq does the reording of keys

@codebien codebien added this to the v1.0.0-rc1 milestone Mar 24, 2025
@joanlopez joanlopez merged commit 8bdaebf into master Mar 25, 2025
28 checks passed
@joanlopez joanlopez deleted the dont-break-summary-api branch March 25, 2025 08:58
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.

5 participants