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

Add simple validation to the philosophers benchmark #446

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

lbulej
Copy link
Member

@lbulej lbulej commented May 27, 2024

This started as a simple hash-based validation @BohdanQQ's fork from which I cherry-picked bits. Because there is no reason to validate hash of the output when we have the actual values, I modified the validation to validate the number of meals eaten directly and added an extra check that the forks have no owner at the end.

@lbulej lbulej marked this pull request as ready for review May 27, 2024 15:26
@lbulej lbulej force-pushed the topic/philosophers-validation branch from 5b9f32a to 4d8e9a8 Compare June 7, 2024 09:34
BohdanQQ and others added 2 commits June 7, 2024 11:36
Signed-off-by: BohdanQQ <40754203+BohdanQQ@users.noreply.github.com>

Validate 'meals eaten' in the philosophers benchmark
Forks should not be owned by anyone and the philosophers
should have consumed the expected number of meals.

Also removes the extraneous run method.
@lbulej lbulej force-pushed the topic/philosophers-validation branch from 4d8e9a8 to f0ffa52 Compare June 7, 2024 09:38
@lbulej
Copy link
Member Author

lbulej commented Jun 7, 2024

Rebased to master after merging #444.

@lbulej lbulej assigned farquet and unassigned farquet Jun 7, 2024
@lbulej lbulej requested a review from axel22 June 11, 2024 20:18
@lbulej lbulej requested a review from ceresek June 19, 2024 15:23
Copy link
Collaborator

@farquet farquet left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@lbulej lbulej merged commit e7d66d1 into master Jul 17, 2024
13 checks passed
@lbulej lbulej deleted the topic/philosophers-validation branch July 17, 2024 09:53
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.

4 participants