Expand description
Composite steps: child steps grouped under one name.
A composite step has no command of its own. Its children are steps like any other, each cached by itself, and the group is flattened when a job is planned, so the scheduler, the cache and the result file only ever see leaves. A cache unit is the other kind of step with children: it is kept whole, and its children are cached only as part of it.
Flattening a composite step P:
- each child
Cbecomes a step namedP/C, and a nested composite’s childrenP/C/D; - a child runs after what
Pruns after, and hasP’s prechecks; - an artefact
Pexports,C.OUT, is read fromP/C’sOUT, and a step that only runs afterPruns after every child.
Structs§
- Groups 🔒
- What flattening a level of steps made of its composite steps: the leaves each became, and where each of its exports is written.
Functions§
- flatten
- Replace every composite step in
steps, and in the children of cache units, with its children, named from it. - flatten_
group 🔒 - The leaves a composite step
parentbecomes, under its name, and where each of its exports is written. - flatten_
level 🔒 - named
- The steps a name given on the command line stands for: the step of that name, or every leaf of the composite step of that name.
- rewire 🔒
- Point
stepat the leaves of the composite steps it reads from or runs after.