Skip to content

Commit 6551aa5

Browse files
committed
Fix upload of Develocity build scans
Don't tar them, as this was broken: we ended up uploading the build-scan-data directory instead of the tar, while still expecting a tar when dowloading, which made everything fail. We don't need tars anyway, as workflow artifacts are already zipped.
1 parent b44833b commit 6551aa5

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/ci-report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ jobs:
6666
run: |
6767
shopt -s nullglob # Don't run the loop below if there are no artifacts
6868
status=0
69+
mkdir -p ~/.gradle/
6970
for build_scan_data_directory in /tmp/downloaded-build-scan-data/*
7071
do
7172
rm -rf ~/.gradle/build-scan-data
72-
mkdir -p ~/.gradle/build-scan-data
73-
tar -xzf "$build_scan_data_directory/build-scan-data.tgz" -C ~/.gradle/build-scan-data \
73+
mv "$build_scan_data_directory" ~/.gradle/build-scan-data \
7474
&& ./gradlew --no-build-cache buildScanPublishPrevious || status=1
7575
done
7676
exit $status

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,9 @@ jobs:
114114
POPULATE_REMOTE_GRADLE_CACHE: ${{ github.event_name == 'push' && github.repository == 'hibernate/hibernate-orm' && 'true' || 'false' }}
115115
DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY }}"
116116

117-
# For jobs running on 'pull_request', tar and upload build scan data.
117+
# For jobs running on 'pull_request', upload build scan data.
118118
# The actual publishing must be done in a separate job (see ci-report.yml).
119119
# We don't write to the remote cache as that would be unsafe.
120-
- name: Tar build scan content pushed to subsequent jobs
121-
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
122-
run: tar -czf build-scan-data.tgz -C ~/.gradle/build-scan-data .
123120
- name: Upload GitHub Actions artifact for the Develocity build scan
124121
uses: actions/upload-artifact@v4
125122
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
@@ -219,13 +216,10 @@ jobs:
219216
RUNID: ${{ github.run_number }}
220217
run: ./ci/build-github.sh
221218
shell: bash
222-
# Tar and upload build scan data.
219+
# Upload build scan data.
223220
# The actual publishing must be done in a separate job (see ci-report.yml).
224221
# We don't write to the remote cache as that would be unsafe.
225222
# That's even on push, because we do not trust Atlas runners to hold secrets: they are shared infrastructure.
226-
- name: Tar build scan content pushed to subsequent jobs
227-
if: "${{ !cancelled() }}"
228-
run: tar -czf build-scan-data.tgz -C ~/.gradle/build-scan-data .
229223
- name: Upload GitHub Actions artifact for the Develocity build scan
230224
uses: actions/upload-artifact@v4
231225
if: "${{ !cancelled() }}"

0 commit comments

Comments
 (0)