forked from official-stockfish/fishtest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validation is done after the creation of runs and before writing finished runs to disk. If a finished run fails validation then this is logged but the run is otherwise treated normally. No attempt has been made to make the schema as tight as possible. For example most numbers should be positive but this constraint is ignored by the schema. The main purpose of the schema is to document the structure of the rundb. The reason it is also used for validation in some cases is to ensure that if the structure of the rundb changes then the schema is updated to reflect this change. For a description of the schema format see the README.md file of https://github.com/vdbergh/vtjson The validation code is included in this PR but it can be installed as an independent package via pip install vtjson Validating a run with 500 tasks (which is a lot these days) takes 12 ms on an AWS t2.micro using Python 3.11.
- Loading branch information
1 parent
c7fcc11
commit aa4291f
Showing
10 changed files
with
946 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.