Skip to content

Commit ab7bb8d

Browse files
committed
resolve edge case if both binary and release builds are not cached
1 parent 84e6040 commit ab7bb8d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ci/praktika/native_jobs.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,19 @@ def check_affected_jobs():
398398

399399
affected_artifacts = []
400400
unaffected_jobs_with_artifacts = {}
401-
# NOTE (strtgbb): We always want the build artifacts for our report and regression tests.
401+
all_required_artifacts = set()
402+
403+
# NOTE (strtgbb): We always want these build artifacts for our report and regression tests.
402404
# If we make FinishCIReport and regression tests into praktika jobs, we can remove this.
403-
all_required_artifacts = set(["CH_AMD_RELEASE", "CH_ARM_RELEASE"])
405+
if "CIReport" in workflow.additional_jobs:
406+
all_required_artifacts.update(["CH_AMD_RELEASE", "CH_ARM_RELEASE"])
407+
if (
408+
"Regression" in workflow.additional_jobs
409+
and "regression" not in workflow.custom_data.ci_exclude_tags
410+
):
411+
all_required_artifacts.update(["CH_AMD_BINARY"])
412+
if "aarch64" not in workflow.custom_data.ci_exclude_tags:
413+
all_required_artifacts.update(["CH_ARM_BINARY"])
404414

405415
for job in workflow.jobs:
406416
# Skip native Praktika jobs

0 commit comments

Comments
 (0)