Skip to content

Commit 04f36fe

Browse files
authored
chore(ci): fix artifacts for benchmark archive (#14652)
1 parent 7ee684b commit 04f36fe

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/reuse.benchmark.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ jobs:
194194
sudo apt-get install -yq python3-jinja2
195195
- uses: actions/download-artifact@v3
196196
with:
197-
name: benchmark-${{ matrix.dataset }}
198-
path: benchmark/clickbench/results/${{ matrix.dataset }}
197+
name: benchmark
198+
path: benchmark/clickbench/results
199199
- name: Generate report and upload to R2
200200
working-directory: benchmark/clickbench
201201
env:
@@ -204,6 +204,12 @@ jobs:
204204
AWS_DEFAULT_REGION: auto
205205
AWS_ENDPOINT_URL: ${{ secrets.R2_ENDPOINT_URL }}
206206
run: |
207+
for result in results/*.json; do
208+
dataset=$(echo $result | sed -E 's/.*result-(\w+)-.*\.json/\1/')
209+
mkdir -p results/${dataset}/
210+
mv $result results/${dataset}/$(basename $result)
211+
done
212+
207213
aws s3 sync s3://benchmark/clickbench/release/${{ matrix.dataset }}/$(date --date='-1 month' -u +%Y)/$(date --date='-1 month' -u +%m)/ ./results/${{ matrix.dataset }}/ --no-progress
208214
aws s3 sync s3://benchmark/clickbench/release/${{ matrix.dataset }}/$(date -u +%Y)/$(date -u +%m)/ ./results/${{ matrix.dataset }}/ --no-progress
209215
./update_results.py --dataset ${{ matrix.dataset }} --release ${{ inputs.source_id }}

0 commit comments

Comments
 (0)