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

Correctly handle retries of classes with nested classes #235

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

pshevche
Copy link
Member

Summary

The test I implemented in 16a68b8 was not set up correctly to assert this behavior. All nested classes were retried because the top-level class itself had a failure and matched the retry filter. If the enclosing class did not have any method failures, then we wouldn't check if it matches the class retry filter.

With this change, we check if one of the parent classes matches the class-retry filter, and if so, retry it together with all of its nested classes.

@pshevche pshevche requested a review from a team November 15, 2023 14:02
@pshevche pshevche self-assigned this Nov 15, 2023
@pshevche pshevche force-pushed the pshevche/handle-retries-of-classes-with-nested-classes branch from 77ac4a8 to 437a5e8 Compare November 15, 2023 14:03
@pshevche pshevche merged commit 4dc9f34 into main Nov 20, 2023
5 checks passed
@marcphilipp marcphilipp added this to the 1.5.7 milestone Nov 27, 2023
@pshevche pshevche deleted the pshevche/handle-retries-of-classes-with-nested-classes branch March 21, 2024 12:36
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