Skip to content

Conversation

@lmbollen
Copy link
Member

@lmbollen lmbollen commented Jun 27, 2025

CI fails stochastically on some tests due to conservative settings of eStopAfterEmpty.

This pull request adjusts the implementation of propWithModel to give the user more control over the stalling generation. Furthermore it makes setting eoStopAfterEmpty optional and adds a default derivation method.

This default is conservative, some circuits might rely on the last transaction for it to start producing data so we assume maximum stalling. Do note that this new configuration severely lowers the default number of stall moments to 10. Problems that arise only when there are more than 10 individual stall moments will never be caught be the default configuration.

However, I don't expect this to be the case for 99% of the circuits, making it a sensible default.

@lmbollen lmbollen force-pushed the lucas/improve-expect-options branch 5 times, most recently from eee5090 to 483313b Compare July 2, 2025 10:13
Copy link
Member

@martijnbastiaan martijnbastiaan left a comment

Choose a reason for hiding this comment

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

Could you commit message please explain why you're making this change? (+PR title isn't very helpful)

@lmbollen lmbollen changed the title Extend ExpectOptions Add more simulation controls to ExpectOptions Jul 2, 2025
@lmbollen lmbollen force-pushed the lucas/improve-expect-options branch from 483313b to 50b3afd Compare July 2, 2025 13:42
Previous implementation of `propWithModel` could generate 100 stalls for every allowed sample
in `eoSampleMax` which could lead to unreasonably long simulations. This change introduces
`eoStallsMax` and `eoConsecutiveStalls` that offer more control over the stalling behavior
of `propWithModel`. Furthermore it makes setting `eoStopAfterEmpty` optional and adds a default derivation method.
@lmbollen lmbollen force-pushed the lucas/improve-expect-options branch from 50b3afd to 5c40aae Compare July 2, 2025 13:43
@lmbollen lmbollen merged commit cec1e7e into main Jul 2, 2025
9 checks passed
@lmbollen lmbollen deleted the lucas/improve-expect-options branch July 2, 2025 14:00
jaschutte pushed a commit to jaschutte/flakey-clash-protocols that referenced this pull request Jul 7, 2025
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