from babregen.review.gate import intake
print(intake.__name__)intake
Take in the downloaded rating file of the next stage.
The file is copied byte for byte to rating-<stage>.toml after these checks: the stage is the next one, its page_sha256 is the hash of a rebuild of the page, its seal_sha256 is the hash of seal.toml, its previous_sha256 is the hash of the rating file before it, every mutant of the page is rated once, the times are in order, and the proposals it names are the ones the page showed. After the last stage verdicts.toml is written (the second rating for a mutant that was not drawn, the third for one that was) and .gitignore is removed, so that sealed/ can be committed with the ratings.
| Name | Type | Description |
|---|---|---|
| Intaken | Intaken | The stage, the number of ratings and their verdicts. |
| Name | Type | Description |
|---|---|---|
ConfigurationError |
If the file is missing, the stage was taken in already, or it is not the next stage, or the step before it is not committed. | |
| Failed | If the file is invalid. |