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

Fixes #932 #933

Merged
merged 1 commit into from Mar 5, 2022
Merged

Fixes #932 #933

merged 1 commit into from Mar 5, 2022

Conversation

Soroosh129
Copy link
Contributor

No description provided.

@Soroosh129
Copy link
Contributor Author

Should we update the error message in the deadline handler? It should be much rarer for a "misfire" of the deadline handler to occur, but not impossible.

Copy link
Collaborator

@edwardalee edwardalee left a comment

Choose a reason for hiding this comment

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

Soroush is right that this test can legitimately fail nondeterministically. In particular, if one of the deadline misses that is supposed to occur is bad enough (it misses by much more than expected), then the whole execution lag (physical time - logical time) gets large enough that subsequent reactions that are not supposed to miss the deadline will nevertheless miss the deadline. As @Soroosh129 suggested, we should probably update the error message. Perhaps instead of "Deadline miss handler invoked without deadline violation" we should say "Unexpected invocation the deadline miss handler. This could be indicative of true error, but it can also occur nondeterministically if the execution lag (physical time - logical time) gets large enough that the system cannot catch up."

@lhstrh
Copy link
Member

lhstrh commented Feb 9, 2022

A very similar failure has currently broken CI: https://github.com/lf-lang/lingua-franca/actions/runs/1815644555

@edwardalee edwardalee merged commit 9c18301 into master Mar 5, 2022
@edwardalee edwardalee deleted the tests-deadline-slack branch March 5, 2022 01:38
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.

None yet

3 participants