Skip to main content

Module parse

Module parse 

Source
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 like cql_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 named cql_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 a Workload.
resolve_scenario_includes
Resolve every IncludedScenario { name, children: [] } node produced by [parse_scenario_nodes] into one whose children hold a clone of the referenced scenario’s resolved nodes.