From f37bee5de18bc037f9688e22e95f42c3bffdc793 Mon Sep 17 00:00:00 2001 From: Jaroslav Bachorik Date: Fri, 28 Aug 2026 18:26:40 +0200 Subject: [PATCH] ci: guard amd64 post-test steps with set_enabled When a matrix job is disabled (e.g. 8-ibm slow tests), the checkout step is skipped but Generate Unwinding Report / Add Unwinding Report / Upload build artifacts only gated on success() && matrix.config, so they run without a checked-out repo and fail with exit code 127 (command not found). Add steps.set_enabled.outputs.enabled == 'true' to those guards. --- .github/workflows/test_workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_workflow.yml b/.github/workflows/test_workflow.yml index f0702d4edc..d611384666 100644 --- a/.github/workflows/test_workflow.yml +++ b/.github/workflows/test_workflow.yml @@ -186,17 +186,17 @@ jobs: exit 1 fi - name: Generate Unwinding Report - if: success() && matrix.config == 'debug' + if: success() && matrix.config == 'debug' && steps.set_enabled.outputs.enabled == 'true' run: | ./gradlew -PCI :ddprof-test:unwindingReport --no-daemon - name: Add Unwinding Report to Job Summary - if: success() && matrix.config == 'debug' && hashFiles('ddprof-test/build/reports/unwinding-summary.md') != '' + if: success() && matrix.config == 'debug' && steps.set_enabled.outputs.enabled == 'true' && hashFiles('ddprof-test/build/reports/unwinding-summary.md') != '' run: | echo "## 🔧 Unwinding Quality Report - ${{ matrix.java_version }} (amd64)" >> $GITHUB_STEP_SUMMARY cat ddprof-test/build/reports/unwinding-summary.md >> $GITHUB_STEP_SUMMARY - name: Upload build artifacts uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - if: success() + if: success() && steps.set_enabled.outputs.enabled == 'true' with: name: (build) test-linux-glibc-amd64 (${{ matrix.java_version }}, ${{ matrix.config }}, ${{ inputs.slow_tests && 'slow' || 'regular' }}) path: build/