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

Handle errors thrown from benchcomp column exprs #3145

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

karkhaz
Copy link
Contributor

@karkhaz karkhaz commented Apr 16, 2024

Prior to this commit, errors thrown when evaluating the text of a benchcomp extra column would crash benchcomp. This could happen, for example, if a column tries to compare an old variant with a new one, but no data for the old variant exists, as seen in this run:

https://github.com/model-checking/kani/actions/runs/8700040930/job/23859607740

Forcing the user to do error handling in the column text would make the text even more unwieldy than it already is, so this commit makes the column text evaluate to if an exception is raised during evaluation.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@karkhaz karkhaz added the Z-BenchCI Tag a PR to run benchmark CI label Apr 16, 2024
Prior to this commit, errors thrown when evaluating the text of a
benchcomp extra column would crash benchcomp. This could happen, for
example, if a column tries to compare an old variant with a new one, but
no data for the old variant exists, as seen in this run:

https://github.com/model-checking/kani/actions/runs/8700040930/job/23859607740

Forcing the user to do error handling in the column text would make the
text even more unwieldy than it already is, so this commit makes the
column text evaluate to **<ERROR>** if an exception is raised during
evaluation.
@karkhaz karkhaz force-pushed the kk-handle-bad-eval branch from ebf6ef4 to 42f9564 Compare April 16, 2024 21:34
@karkhaz karkhaz marked this pull request as ready for review April 16, 2024 21:53
@karkhaz karkhaz requested a review from a team as a code owner April 16, 2024 21:53
@karkhaz karkhaz marked this pull request as draft April 16, 2024 21:55
@karkhaz karkhaz marked this pull request as ready for review April 16, 2024 22:12
@karkhaz
Copy link
Contributor Author

karkhaz commented Apr 16, 2024

Here's an example fixed summary.

@karkhaz karkhaz enabled auto-merge (squash) April 16, 2024 23:00
@karkhaz karkhaz merged commit ec34e01 into model-checking:main Apr 16, 2024
23 checks passed
zpzigi754 pushed a commit to zpzigi754/kani that referenced this pull request May 8, 2024
Prior to this commit, errors thrown when evaluating the text of a
benchcomp extra column would crash benchcomp. This could happen, for
example, if a column tries to compare an old variant with a new one, but
no data for the old variant exists, as seen in this run:

https://github.com/model-checking/kani/actions/runs/8700040930/job/23859607740

Forcing the user to do error handling in the column text would make the
text even more unwieldy than it already is, so this commit makes the
column text evaluate to **<ERROR>** if an exception is raised during
evaluation.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-BenchCI Tag a PR to run benchmark CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants