Skip to content

Conversation

@imcdo
Copy link
Member

@imcdo imcdo commented Aug 23, 2022

Motivation:
when getting a flaky test, the summaries are clear due to the last run passing, loosing all data of failed runs. This PR intends to remedy this by changing the summary behavior of deflake runs. In a deflake run, all summaries are included, and demarked by the run number and a ~~~~~:

image

Testing:
ran unit tests and ran all system tests

@imcdo imcdo requested a review from a team August 23, 2022 20:18
Copy link

@nagpavan-chilakam nagpavan-chilakam left a comment

Choose a reason for hiding this comment

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

Just a thought, if the error summary is same for all the runs, it would be good if we can just display that 1 error and number of times it failed with the same reason. If a test failed all 5 times with same reason, displaying the same error summary 5 times may be cumbersome to read, especially if we are running a bunch of tests.
Otherwise looks good

@imcdo
Copy link
Member Author

imcdo commented Aug 24, 2022

Just a thought, if the error summary is same for all the runs, it would be good if we can just display that 1 error and number of times it failed with the same reason. If a test failed all 5 times with same reason, displaying the same error summary 5 times may be cumbersome to read, especially if we are running a bunch of tests. Otherwise looks good

This is a good idea but Im not sure a good way to display this,
would something like this work:

summary:
run 1, 3, 5 summary:
....
run 2, 4 summary:
...
run 6: PASSED

? Thoughts @nagpavan-chilakam @stan-confluent

@stan-is-hate
Copy link
Member

Looks good overall, thanks Ian!

  • your way of printing similar results makes sense (aggregate them using a dict)
  • worth adding a unit test

@imcdo
Copy link
Member Author

imcdo commented Oct 12, 2022

example fail case:
image

example flaky case:
image

@imcdo imcdo merged commit 2048d79 into confluentinc:master Oct 13, 2022
gousteris pushed a commit to gousteris/ducktape that referenced this pull request Aug 30, 2023
* Store summary of previous runs when deflaking

* combine same stack traces

* update comments
gousteris pushed a commit to gousteris/ducktape that referenced this pull request Aug 30, 2023
* Store summary of previous runs when deflaking

* combine same stack traces

* update comments
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.

3 participants