-
Notifications
You must be signed in to change notification settings - Fork 92
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
Generate benchcomp.yaml
documentation from schema
#2593
Conversation
To make filenames in a future commit less ambiguous.
This commit switches the data validation package from `cerberus` to `schema`. This is because schema is able to emit the schema in a standardized format that can later be rendered into HTML. This will be implemented in a future commit.
This commit adds the schema of benchcomp.yaml to the Kani book to document how benchcomp configuration files are written. The code will be used in future commits for documenting the parser and visualizer formats.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
A typo in https://github.com/model-checking/kani/blob/main/tools/benchcomp/benchcomp/visualizers/__init__.py#L134. extra_colums -> extra_columns
|
||
{{#include ../gen_src/BenchcompYaml.md}} | ||
|
||
A minimal example of such a file is: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to have a paragraph to explain the workflow of a variant in this configuration.
Description of changes:
This PR adds a validation schema for the benchcomp configuration file format, as well as code to emit that schema into the Kani book. This is in preparation for further PRs that will add similar schemas for the format that a benchcomp parser should emit, and the format that benchcomp visualizers should expect, both of which will also be rendered in the book.
Here is a rendered version.
Resolved issues:
Resolves #2592
Related RFC:
None
Call-outs:
N/A
Testing:
Rendered version](https://karkhaz.github.io/kani/benchcomp-conf.html) on my fork
No
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.