Module toolstate

Source
Expand description

Toolstate checks to keep tools building

Reachable via ./x.py test but mostly relevant for CI, since it isn’t run locally by default.

StructsΒ§

RepoState πŸ”’
ToolStateCheck

EnumsΒ§

ToolState
Whether a tool can be compiled, tested or neither

ConstantsΒ§

BETA_WEEK_START πŸ”’
OS πŸ”’
TOOLSTATE_DIR πŸ”’
Directory where the toolstate repo is checked out.

StaticsΒ§

NIGHTLY_TOOLS πŸ”’
STABLE_TOOLS πŸ”’

FunctionsΒ§

check_changed_files πŸ”’
checkout_toolstate_repo πŸ”’
Checks out the toolstate repo into TOOLSTATE_DIR.
commit_toolstate_change πŸ”’
This function commit_toolstate_change provides functionality for pushing a change to the rust-toolstate repository.
days_since_beta_promotion πŸ”’
Number of days after the last promotion of beta. Its value is 41 on the Tuesday where β€œPromote master to beta (T-2)” happens. The Wednesday after this has value 0. We track this value to prevent regressing tools in the last week of the 6-week cycle.
prepare_toolstate_config πŸ”’
Sets up config and authentication for modifying the toolstate repo.
print_error πŸ”’
publish_test_results πŸ”’
Updates the β€œhistory” files with the latest results.
read_old_toolstate πŸ”’
Reads the latest toolstate from the toolstate repo.
toolstate_repo πŸ”’

Type AliasesΒ§

ToolstateData πŸ”’