runner
runner
¶
Validation runner that orchestrates all checks.
The ValidationRunner collects all registered checks, runs them against a configuration, and aggregates the results.
Classes¶
ValidationRunner
¶
Orchestrates validation checks against a configuration.
The runner collects issues from all checks, sorts them by severity, and provides summary information for reporting.
Initialize with a list of checks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
checks
|
list[ValidationCheck] | None
|
List of validation checks to run. If None, uses default checks. |
None
|
Source code in src/marianne/validation/runner.py
Methods:¶
add_check
¶
validate
¶
Run all validation checks against the configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
JobConfig
|
Parsed JobConfig object |
required |
config_path
|
Path
|
Path to the config file |
required |
raw_yaml
|
str
|
Raw YAML text for line number extraction |
required |
Returns:
| Type | Description |
|---|---|
list[ValidationIssue]
|
List of all issues found, sorted by severity (errors first) |
Source code in src/marianne/validation/runner.py
get_exit_code
¶
Determine exit code based on issues found.
Returns:
| Name | Type | Description |
|---|---|---|
0 |
int
|
No errors (warnings/info OK) |
1 |
int
|
One or more ERROR-severity issues |
Source code in src/marianne/validation/runner.py
has_errors
¶
count_by_severity
¶
Count issues by severity level.
Source code in src/marianne/validation/runner.py
Functions:¶
create_default_checks
¶
Create the default set of validation checks.
Returns all built-in checks in recommended execution order.
Source code in src/marianne/validation/runner.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 | |