Expand description
YAML workload parser and normalizer.
Parses a YAML workload definition and normalizes all shorthand
forms into the canonical ParsedOp model.
Functions§
- normalize_
condition_ clause - Parse a YAML source into just the list of normalized ParsedOps.
Normalise an op-level
if:clause so callers can write expressions naturally. The downstream pipeline expects the condition to be either a binding-name reference ({name}) or an inline expression ({{expr}}). When the operator writes a bare expression likecql_dialect == 'cass', that doesn’t match either form and the conditional dispenser fails at init when it tries to look up a Polydat binding literally namedcql_dialect == 'cass'. - parse_
ops - parse_
workload - Parse a YAML workload string into a normalized Workload.
- parse_
workload_ from_ path - Path-based entry point: load a workload YAML from disk,
follow its
extends:chain (SRD-72), and parse the merged result into aWorkload. - resolve_
scenario_ includes - Resolve every
IncludedScenario { name, children: [] }node produced by [parse_scenario_nodes] into one whosechildrenhold a clone of the referenced scenario’s resolved nodes.