From dce297af43ee4d88b4f5b67db91a678e0d594f3e Mon Sep 17 00:00:00 2001 From: Toby Dylan Hocking Date: Fri, 13 Nov 2026 15:48:17 -0500 Subject: [PATCH 1/5] add picrd api key --- .github/workflows/performance-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index 38eb62ad34..a0439290f1 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -69,7 +69,7 @@ jobs: shell: bash run: | uploadImage() { - curl --fail --retry 3 -sS -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.image_url // empty' || true + curl --fail --retry 3 -sS -H "Authorization: Bearer $PICRD_API_KEY" -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.image_url // empty' || true } PREVIEW_URL=$(uploadImage .ci/atime/tests_preview_facet.png) ALL_URL=$(uploadImage .ci/atime/tests_all_facet.png) From a8b111aea7f080ef04bc1c3c2fe7a34a0e185a0d Mon Sep 17 00:00:00 2001 From: Toby Dylan Hocking Date: Fri, 13 Nov 2026 15:53:02 -0500 Subject: [PATCH 2/5] add env var --- .github/workflows/performance-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index a0439290f1..c97af20fbb 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -65,6 +65,7 @@ jobs: - name: Post or update PR comment env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PICRD_API_KEY: ${{ secrets.PICRD_API_KEY }} PR_NUMBER: ${{ github.event.number }} shell: bash run: | From 8f54a482e5df64f5436dfae46223a6e967178baa Mon Sep 17 00:00:00 2001 From: Toby Dylan Hocking Date: Fri, 13 Nov 2026 16:08:54 -0500 Subject: [PATCH 3/5] rm image --- .github/workflows/performance-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index c97af20fbb..6c1c36d72f 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -70,7 +70,7 @@ jobs: shell: bash run: | uploadImage() { - curl --fail --retry 3 -sS -H "Authorization: Bearer $PICRD_API_KEY" -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.image_url // empty' || true + curl --fail --retry 3 -sS -H "Authorization: Bearer $PICRD_API_KEY" -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.url // empty' || true } PREVIEW_URL=$(uploadImage .ci/atime/tests_preview_facet.png) ALL_URL=$(uploadImage .ci/atime/tests_all_facet.png) From d20686abf143e7fd326689d36371f22dc41b6ce8 Mon Sep 17 00:00:00 2001 From: Toby Dylan Hocking Date: Fri, 13 Nov 2026 16:12:59 -0500 Subject: [PATCH 4/5] raw --- .github/workflows/performance-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index 6c1c36d72f..9137be7040 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -70,7 +70,7 @@ jobs: shell: bash run: | uploadImage() { - curl --fail --retry 3 -sS -H "Authorization: Bearer $PICRD_API_KEY" -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.url // empty' || true + curl --fail --retry 3 -sS -H "Authorization: Bearer $PICRD_API_KEY" -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.raw_url // empty' || true } PREVIEW_URL=$(uploadImage .ci/atime/tests_preview_facet.png) ALL_URL=$(uploadImage .ci/atime/tests_all_facet.png) From 9ec49099235bdefa01e4f77e9f026a7b9e5c5fe9 Mon Sep 17 00:00:00 2001 From: Ivan K Date: Sun, 29 Nov 2026 22:19:30 +0300 Subject: [PATCH 5/5] Skip image upload step for PRs from forks --- .github/workflows/performance-tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index 9137be7040..5287705930 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -68,6 +68,7 @@ jobs: PICRD_API_KEY: ${{ secrets.PICRD_API_KEY }} PR_NUMBER: ${{ github.event.number }} shell: bash + if: github.event.pull_request.head.repo.full_name == github.repository run: | uploadImage() { curl --fail --retry 3 -sS -H "Authorization: Bearer $PICRD_API_KEY" -F "file=@$1" -F "visibility=unlisted" https://picrd.com/api/upload | jq -r '.raw_url // empty' || true @@ -113,6 +114,4 @@ jobs: cat comment.md >> "$GITHUB_STEP_SUMMARY" - if [ "${{ github.event.pull_request.head.repo.full_name }}" = "$GITHUB_REPOSITORY" ]; then - gh pr comment "$PR_NUMBER" --edit-last --create-if-none -F comment.md - fi + gh pr comment "$PR_NUMBER" --edit-last --create-if-none -F comment.md