From d375e9da181bc8921a9d01cd68dfea1657a0b7ab Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Wed, 29 May 2024 10:20:50 +0200 Subject: [PATCH] Fix native build stats uploading for "simple with space" IT Follow up to https://github.com/quarkusio/quarkus/pull/39784 Resolves: ``` jq: error: Could not open file /home/runner/work/quarkus/quarkus/./integration-tests/simple: No such file or directory ``` by treating each line returned by `find` as a single path instead of further breaking it down by space. --- .github/workflows/ci-actions-incremental.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 5ce9f73749934..292ce8c8a1c7d 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -1195,8 +1195,9 @@ jobs: fi tar -xf build-stats.tgz echo "Tag to be used for uploads: '${TAG}'" + IFS=$'\n' for bs in $(find ./ -name \*build-output-stats.json); do - jq . $(pwd)/$bs + jq . "$(pwd)/$bs" # import the stat curl -s -w '\n' -H "Content-Type: application/json" \ -H "token: $UPLOAD_TOKEN" --post302 --data "@$(pwd)/$bs" "$COLLECTOR_URL/import?t=${TAG}&runnerid=${runner_info_id}" | tee stat_id.json @@ -1208,6 +1209,7 @@ jobs: exit 1 fi done + build-report: runs-on: ubuntu-latest name: Build report