Run QA Workflow esgf_qa.run_qa
Public entry point and high-level orchestration for esgqa.
CheckerMetadata
dataclass
Resolved version and package provenance for one checker.
Source code in esgf_qa/checker_registry.py
13 14 15 16 17 18 19 | |
FileInventory
dataclass
Files and mappings consumed by the QA workflow.
Source code in esgf_qa/discovery.py
17 18 19 20 21 22 23 24 25 26 27 28 | |
RunConfig
dataclass
Validated configuration required by the QA workflow.
Source code in esgf_qa/cli.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
call_process_dataset(args)
Unpack multiprocessing arguments for :func:process_dataset.
Source code in esgf_qa/workers.py
355 356 357 | |
call_process_file(args)
Unpack multiprocessing arguments for :func:process_file.
Source code in esgf_qa/workers.py
350 351 352 | |
format_checker_version(checker, metadata)
Format a checker specification with its providing package version.
Source code in esgf_qa/checker_registry.py
93 94 95 96 97 98 99 100 101 102 103 104 105 | |
get_checker_metadata(checkers, checker_options=None)
Resolve checker versions and their providing distributions.
Source code in esgf_qa/checker_registry.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
get_default_result_dir()
Return the timestamped default result directory.
Source code in esgf_qa/run_qa.py
53 54 55 56 | |
get_dsid(files_to_check_dict, dataset_files_map_ext, file_path, project_ids)
Build a dataset identifier from its directory and filename.
Source code in esgf_qa/discovery.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |
get_installed_checker_versions()
Return installed checker versions grouped by checker name.
Source code in esgf_qa/checker_registry.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
main(argv=None)
Run the complete QA command-line workflow.
Source code in esgf_qa/run_qa.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | |
normalize_checker_specs(checkers_versions)
Normalize latest versions to Compliance Checker's unversioned form.
Source code in esgf_qa/checker_registry.py
108 109 110 111 112 113 | |
parse_options(opts)
Parse checker:option[:value] CLI options into a nested mapping.
Source code in esgf_qa/cli.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
process_dataset(dataset_id, dataset_files, checkers, checker_options, file_details, was_processed)
Run or reuse dataset-level consistency checks.
Source code in esgf_qa/workers.py
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 | |
process_file(file_path, checkers, checker_options, file_details, was_processed)
Run or reuse file-level checks for one file.
Source code in esgf_qa/workers.py
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 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 | |
reconcile_resume_inventory(inventory, config)
Report resume inventory changes and invalidate results for missing files.
Source code in esgf_qa/resume.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 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 | |
run_compliance_checker(file_path, checkers, checker_options=None)
Run Compliance Checker for one file, isolating checker-level failures.
Source code in esgf_qa/workers.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
run_dataset_collection_check(summary, checker, checker_fct, ds_map, files_to_check_dict, checker_options)
Run an all-dataset check and aggregate a runtime error if it fails.
Source code in esgf_qa/workers.py
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | |
track_checked_datasets(checked_datasets_file, checked_datasets)
Append dataset identifiers to a progress file.
Source code in esgf_qa/resume.py
345 346 347 348 349 350 | |