Module plan

Source
Expand description

Plan construction: phases, launch lines, environments, tool calls.

The planner is pure. run executes the commands built here.

Structs§

Cmd
One subprocess the driver starts.
Deselected
A line that the target’s selector left out.
Plan
The plan file plan writes: every phase of a run, with its commands.
PlanPhase
One phase of a plan.
Planner
Builds the commands of one target’s run of a build list.
StemSeq
Hands out log stems that stay unique across a whole run.
Unit
A build unit: the whole list, or one shard list.

Constants§

PHASES
Every phase, in the order a run goes through them.

Functions§

build_plan
Build the whole plan for one target and list.
module_rel
Module path of an easyconfig relative to <modules_root>/all, without extension.
read_units
Read the units a stack shard run wrote into dir.
shell_line
Render a command as one shell-quoted line.
unique_stems
Log stems, unique across the lines.
valid_job_id
A scheduler job id: digits only, positive, no leading zero.
wants_rebuild
Whether a build list line asks for a rebuild, by whole options only.
without_robot
Line options for a fetch with the robot disabled: a bare --robot goes, and the last --robot=P stays at the front of the search path so the line’s easyconfig is still found. EasyBuild searches P then --robot-paths, which --robot-paths=P:X keeps; P: is P followed by the default paths.