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

Defining a Schema for ReBench configuration files #74

Merged
merged 11 commits into from
Jun 8, 2018

Conversation

smarr
Copy link
Owner

@smarr smarr commented Jun 6, 2018

As part of approaching #6 (warning about unused stuff in config files) as well as in support of #66 (improving documentation), this PR adds a schema that can be used to validate ReBench's configuration files.

Currently, it includes a number of todos for cleanup, clarification, etc. So, pretty much work in progress. The experiments definition is also not yet at a point where it covers all relevant use cases.

Overall it is a little stricter, but is able to validate all test files I found with only minor changes (for instance renaming of old stuff), or avoiding using scalars where lists are expected (it's a little sad that this simplification might not be possible in some cases though).

@smarr smarr added the Feature label Jun 6, 2018
@smarr smarr added this to the v1.0 - Foundation milestone Jun 6, 2018
@coveralls
Copy link

coveralls commented Jun 6, 2018

Coverage Status

Coverage increased (+0.4%) to 81.609% when pulling da74414 on issue-6-schema-validation into c4c6720 on master.

smarr added 5 commits June 8, 2018 20:50
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Thus, we have to be explicit about the list, even for single item lists.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
The test was removed with 4ff9cf9

Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr force-pushed the issue-6-schema-validation branch from fda4972 to 74e10e2 Compare June 8, 2018 19:50
smarr added 5 commits June 8, 2018 21:32
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
The result is a bit more readable

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr force-pushed the issue-6-schema-validation branch from 3faceaa to ce054ed Compare June 8, 2018 20:39
Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr merged commit ac95d14 into master Jun 8, 2018
@smarr smarr deleted the issue-6-schema-validation branch June 8, 2018 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants