Skip to main content

review.gate.check

review.gate.check(spec, directory)

Verify a gate directory as far as it has come, before and after the reveal.

Always checked: the hashes of the reports and of gate.toml, seal.toml against its facts, the hashes of sealed/* where the files are present (before the last stage is taken in, sealed/ is read by hash only), the chain of the rating files, the blind page rebuilt, the order of the commits (seal.toml before the blind rating, each rating before the next), that the rating files and verdicts.toml equal their committed version (the newest ones may wait for their commit, which is a note) and the times. Once verdicts.toml exists, sealed/ must be present and is read: the second and third page are rebuilt, the plant is checked (the assignment differs from the first proposal, the shown proposal is the second for a drawn mutant and the first for the others, the drawn count follows vocab.drawn_count) and the verdicts (the second rating if not drawn, the third if drawn). A page is verifiable with the babregen that built it: if the running version is not the babregen_version of gate.toml, the page hashes and the page files are not compared, the other checks run, and a note names the version needed.

Returns

Name Type Description
Checked Checked What fails, what could not be verified here, and the stage reached.

Raises

Name Type Description
ConfigurationError If the directory holds no gate.toml.

Examples

from babregen.review.gate import check

print(check.__name__)
check