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

fix(invariants): respect fail_on_revert properly and do not populate logs/traces twice #6199

Merged
merged 5 commits into from
Nov 2, 2023

Conversation

Evalir
Copy link
Member

@Evalir Evalir commented Nov 2, 2023

Fixes #5726, fixes #6082, fixes #6024

fail_on_revert was not getting respected correctly after a recent refactor, in which we stopped populating the error in InvariantFailures. This was causing mainly failures in handlers to not be detected leading to erroneous [PASS] states.

We were also collecting the logs and traces of the last error twice, which is not necessary as we replay the entire run. This could lead to situations where it seems an invariant gets called twice, but it's just the error log popping up twice.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

can you get a repro for this as an additional test?

all of this feels like open heart surgery all the time

@Evalir
Copy link
Member Author

Evalir commented Nov 2, 2023

yep will do—just haven't finished adding the test :D

@Evalir Evalir merged commit 543b58c into master Nov 2, 2023
16 checks passed
@Evalir Evalir deleted the evalir/fix-invariant-1 branch November 2, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants