Skip to content

Commit 3f98367

Browse files
authored
Merge pull request #8909 from quarto-dev/gha/buckets-creation-error
2 parents 81ad716 + e5c0c8f commit 3f98367

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test-smokes-parallel.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ jobs:
4545
- name: Create Job for tests
4646
id: tests-buckets
4747
run: |
48-
echo "BUCKETS=$(./run-parallel-tests.sh -n=${{ inputs.nBuckets || 20 }} --json-for-ci --timing-file=timing-for-ci.txt | jq -rc 'def lpad(n): tostring | if (n > length) then ((n - length) * "0") + . else . end; to_entries | map(.key |= tostring)| map({ num: .key| tonumber | (. + 1) | lpad(2), files: .value | tojson }) | {buckets: .}')" >> "$GITHUB_OUTPUT"
48+
BUCKETS=$(./run-parallel-tests.sh -n=${{ inputs.nBuckets || 20 }} --json-for-ci --timing-file=timing-for-ci.txt | jq -rc 'def lpad(n): tostring | if (n > length) then ((n - length) * "0") + . else . end; to_entries | map(.key |= tostring)| map({ num: .key| tonumber | (. + 1) | lpad(2), files: .value | tojson }) | {buckets: .}')
49+
if [ -z $BUCKETS ]; then
50+
echo "::error::Failed to create buckets. Something possibly wrong in run-parallel-tests.sh."
51+
exit 1
52+
fi
53+
echo "BUCKETS=$BUCKETS" >> "$GITHUB_OUTPUT"
4954
working-directory: tests
5055
- name: Read buckets
5156
run: |
@@ -65,6 +70,7 @@ jobs:
6570
echo $matrix
6671
echo $matrix | jq .
6772
echo $matrix | json2yaml
73+
6874
run-smoke-tests:
6975
needs: jobs-matrix
7076
name: Running Tests buckets ${{ matrix.buckets.num }}

0 commit comments

Comments
 (0)