From fc10e994193534cdef7186e47ebbe84f0c579bd3 Mon Sep 17 00:00:00 2001 From: Sergey Nikolaev Date: Tue, 30 Jun 2026 15:32:05 +0700 Subject: [PATCH] ci: fix final status for CLT-only test runs Skip MCL runtime artifact checks when build jobs are intentionally gated off. CLT-only cached-image runs set run_builds=false, so runtime cache probes and runtime builds are skipped by design. --- .github/workflows/test.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c17b4b45ac..1358a38ce6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1198,16 +1198,20 @@ jobs: failed=1 fi fi - for entry in "${runtime_results[@]}"; do - name="${entry%%:*}" - rest="${entry#*:}" - cache_hit="${rest%%:*}" - build_result="${rest#*:}" - if [[ "$cache_hit" != "true" && "$build_result" != "success" ]]; then - echo "$name: no cached runtime artifact and build result was $build_result" - failed=1 - fi - done + if [[ "${{ needs.meta.outputs.run_builds }}" == "true" ]]; then + # Runtime artifacts are required only when build/ubertest jobs run. + # CLT-only cached-image runs intentionally skip both runtime cache probes and runtime builds. + for entry in "${runtime_results[@]}"; do + name="${entry%%:*}" + rest="${entry#*:}" + cache_hit="${rest%%:*}" + build_result="${rest#*:}" + if [[ "$cache_hit" != "true" && "$build_result" != "success" ]]; then + echo "$name: no cached runtime artifact and build result was $build_result" + failed=1 + fi + done + fi if [[ "$failed" -ne 0 ]]; then echo "* Overall: failure" >> "$GITHUB_STEP_SUMMARY" echo "One or more build/test jobs failed"