Skip to main content

Module resolved_run

Module resolved_run 

Source
Expand description

The decisions of one run, each with the input that gave it.

resolve_run takes the raw fallow_config::RunInputs of one surface, loads and validates the config, and decides the selection and the production mode of each analysis and each run setting. The result is one ResolvedRun with a resolved config per production mode.

Modules§

steps
The steps of a config load: validate, flatten the production mode, resolve with the environment, and collect the workspace metadata.

Structs§

AuditBaseDecision
The base ref candidates of one audit.
BaseSide
The base side of a comparison with a base ref.
PerAnalysis
One value for each analysis that has a production mode.
ProductionInputs
The production inputs of one run, before the config. The config is a separate argument of decide_production.
ResolvedRun
Every decision of one run, with its cause. The fields are private and the type has no Default, no Clone and no &mut self method, so a run stays as the resolver made it.
RunSettings
The settings of one run. Every mode entry of the run has these values.
Runnable
An analysis that runs. Only ResolvedRun::analysis makes one, so a skipped analysis has no config and no session.
TypeAwareConfigInput
The config input of decide_type_aware.
TypeAwareSettings
The type-aware settings of one run.

Enums§

AnalysisSlot
One analysis of a run: it runs, or the run skips it with a reason.
BaseConfig
Which config file the base side of a comparison with a base ref reads.
EmptyCause
What a run plan leaves out when it selects no analysis.
InputField
The field of the run inputs that an input error names.
InputProblem
What is wrong with an input.
ResolveError
The error of resolve_run.

Functions§

available_threads
The default thread count of a run: the available parallelism of the host, else 1.
decide_audit_base
Decide the base ref candidates of an audit from the run inputs. A run of another command has none.
decide_production
The production mode of each analysis, with the input that decides it.
decide_type_aware
Decide the type-aware settings of a run of command from the given inputs, the environment snapshot and the config.
resolve_base_run
Resolve the base side of a comparison with a base ref: the inputs of head on the base root, with the config file of the BaseConfig rule. The base run prints no progress.
resolve_base_run_with_head_decisions
Resolve the base side of a comparison with a base ref as resolve_base_run does, with the decisions of head for the analyses: the base side runs each analysis that the head run runs, and no other, with the production mode of the head run. The config of the base side then cannot turn an analysis off or change a production mode, so the findings of the two sides compare.
resolve_run
Resolve the raw inputs of one run.