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

Dedup stdout / stderr test output #2128

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Dedup stdout / stderr test output #2128

merged 1 commit into from
Jan 27, 2025

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Jan 27, 2025

Since we typically run many iterations of tests, we end up with a long log of messages. Most of them are likely the same. We now dedup this list, for example:

  stdout_capture:          FLAKY FAIL:  272 runs in 50.090ms
    testing.NotEqualError: Expected equal values but they are non-equal. A: 1 B: 2
    STDOUT:
      == 140 test runs with this output:
      Random number: 2

      == 132 test runs with this output:
      Random number: 1

Since we typically run many iterations of tests, we end up with a long
log of messages. Most of them are likely the same. We now dedup this
list, for example:

  stdout_capture:          FLAKY FAIL:  272 runs in 50.090ms
    testing.NotEqualError: Expected equal values but they are non-equal. A: 1 B: 2
    STDOUT:
      == 140 test runs with this output:
      Random number: 2

      == 132 test runs with this output:
      Random number: 1
@plajjan plajjan enabled auto-merge January 27, 2025 13:10
@plajjan plajjan merged commit 9b0e31e into main Jan 27, 2025
25 of 26 checks passed
@plajjan plajjan deleted the testing-dedup-output branch January 27, 2025 13:25
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.

1 participant