|
18 | 18 | from .runtime import RunConfig |
19 | 19 | from .settings import Settings |
20 | 20 | from .utils import Shell, Utils |
| 21 | +from ci.defs.defs import ArtifactNames |
21 | 22 |
|
22 | 23 | assert Settings.CI_CONFIG_RUNS_ON |
23 | 24 |
|
@@ -403,17 +404,22 @@ def check_affected_jobs(): |
403 | 404 | # NOTE (strtgbb): We always want these build artifacts for our report and regression tests. |
404 | 405 | # If we make FinishCIReport and regression tests into praktika jobs, we can remove this. |
405 | 406 | if "CIReport" in workflow.additional_jobs: |
406 | | - all_required_artifacts.update(["CH_AMD_RELEASE", "CH_ARM_RELEASE"]) |
| 407 | + all_required_artifacts.update( |
| 408 | + [ |
| 409 | + ArtifactNames.CH_AMD_RELEASE, |
| 410 | + ArtifactNames.CH_ARM_RELEASE, |
| 411 | + ] |
| 412 | + ) |
407 | 413 | if ( |
408 | 414 | "Regression" in workflow.additional_jobs |
409 | 415 | and "regression" |
410 | 416 | not in workflow_config.custom_data.get("ci_exclude_tags", []) |
411 | 417 | ): |
412 | | - all_required_artifacts.update(["CH_AMD_BINARY"]) |
| 418 | + all_required_artifacts.update([ArtifactNames.CH_AMD_BINARY]) |
413 | 419 | if "aarch64" not in workflow_config.custom_data.get( |
414 | 420 | "ci_exclude_tags", [] |
415 | 421 | ): |
416 | | - all_required_artifacts.update(["CH_ARM_BINARY"]) |
| 422 | + all_required_artifacts.update([ArtifactNames.CH_ARM_BINARY]) |
417 | 423 | print(f"Including artifacts for custom jobs [{all_required_artifacts}]") |
418 | 424 |
|
419 | 425 | for job in workflow.jobs: |
|
0 commit comments