@@ -253,15 +253,15 @@ jobs:
253253 name : Download results
254254 uses : actions/download-artifact@v4
255255 with :
256- path : /tmp/buildkit-bench
256+ path : /tmp/buildkit-bench-result
257257 pattern : bench-results-*
258258 merge-multiple : true
259259 -
260260 name : Download candidates
261261 uses : actions/download-artifact@v4
262262 with :
263263 name : candidates
264- path : /tmp/buildkit-bench
264+ path : /tmp/buildkit-bench-result
265265 -
266266 name : Set up Docker Buildx
267267 uses : docker/setup-buildx-action@v3
@@ -272,6 +272,15 @@ jobs:
272272 -
273273 name : Checkout
274274 uses : actions/checkout@v4
275+ -
276+ name : Create metadata files
277+ run : |
278+ cp ./testconfig.yml /tmp/buildkit-bench-result/
279+ echo "$(date +'%Y%m%d-%H%M%S')" > /tmp/buildkit-bench-result/name.txt
280+ env|sort > /tmp/buildkit-bench-result/env.txt
281+ if [ -f "$GITHUB_EVENT_PATH" ]; then
282+ cp $GITHUB_EVENT_PATH /tmp/buildkit-bench-result/gha-event.json
283+ fi
275284 -
276285 name : Generate HTML report
277286 uses : docker/bake-action@v5
@@ -281,18 +290,14 @@ jobs:
281290 provenance : false
282291 set : |
283292 *.cache-from=type=registry,ref=${{ env.BUILDKIT_CACHE_REPO }}:tests-base
284- *.contexts.tests-results=cwd:///tmp/buildkit-bench
293+ *.contexts.tests-results=cwd:///tmp/buildkit-bench-result
285294 *.output=./bin/report
286295 env :
287296 BAKE_ALLOW_REMOTE_FS_ACCESS : 1
288297 -
289- name : Include additional files to report directory
298+ name : Include results to report
290299 run : |
291- cp -r /tmp/buildkit-bench/* ./testconfig.yml ./bin/report/
292- env|sort > ./bin/report/env.txt
293- if [ -f "$GITHUB_EVENT_PATH" ]; then
294- cp $GITHUB_EVENT_PATH ./bin/report/gha-event.json
295- fi
300+ cp -r /tmp/buildkit-bench-result/* ./bin/report/
296301 -
297302 name : Upload report
298303 uses : actions/upload-artifact@v4
@@ -324,7 +329,7 @@ jobs:
324329 -
325330 name : Move reports
326331 run : |
327- reportDir=$(date +'%Y%m%d-%H%M%S' )
332+ reportDir=$(cat /tmp/buildkit-bench-report/name.txt )
328333 mkdir -p ./website/public/result/$reportDir
329334 mv /tmp/buildkit-bench-report/* ./website/public/result/$reportDir/
330335 if [ -d ./bin/gh-pages/result ]; then
0 commit comments