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

Investigate possible nondeterminism in our test suite #553

Closed
blishko opened this issue Sep 12, 2024 · 7 comments
Closed

Investigate possible nondeterminism in our test suite #553

blishko opened this issue Sep 12, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@blishko
Copy link
Collaborator

blishko commented Sep 12, 2024

I have observed some nondeterministic behaviour with some of our tests, both on my laptop and in CI
From time to time, one test fails (but I don't know if it is the same one every time or not), or some tests take much longer than usual.

@blishko blishko self-assigned this Sep 12, 2024
@msooseth
Copy link
Collaborator

msooseth commented Sep 12, 2024 via email

@blishko
Copy link
Collaborator Author

blishko commented Sep 12, 2024

I am pretty sure I have seen nondeterministic behaviour in other tests.

@msooseth
Copy link
Collaborator

msooseth commented Sep 12, 2024 via email

@blishko
Copy link
Collaborator Author

blishko commented Sep 12, 2024

That's why I created the issue :)
I am just not sure when I will get to that.

@msooseth msooseth added the enhancement New feature or request label Sep 16, 2024
@msooseth
Copy link
Collaborator

msooseth commented Sep 16, 2024

I think what happened is that the abi-encoder fuzzer can sometimes generate a pretty complicated calldata that takes forever to encode. I definitely observed this and it was pretty frustrating. I have opened #554.

I have also labelled this as enhancement, because it doesn't actually affect any user, it's "only" an enhancement for us :)

@msooseth
Copy link
Collaborator

So the new additions to #555 could be the trick. There was not only nondeterminsim but a potential bug when running multi-threaded thanks to some monadic magic + concurrently.

@blishko
Copy link
Collaborator Author

blishko commented Oct 4, 2024

I think you were right that the behaviour I was observing were the property-based tests that generate different expressions every time.

@blishko blishko closed this as completed Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants