Skip to content

ci: handle fork PR benchmark reports - #2293

Merged
zeitlinger merged 1 commit into
mainfrom
fix/pr-benchmark-report-fork-prs
Jul 9, 2026
Merged

ci: handle fork PR benchmark reports#2293
zeitlinger merged 1 commit into
mainfrom
fix/pr-benchmark-report-fork-prs

Conversation

@zeitlinger

Copy link
Copy Markdown
Member

Summary

Fix the PR Benchmark Report workflow for forked PR benchmark runs like #2252, where workflow_run.pull_requests and commits/{sha}/pulls can both be empty for the upstream repository.

Changes

  • Resolve the PR number from the uploaded benchmark artifact names first.
  • Fall back to the workflow run head repository owner and branch via repos/{owner}/{repo}/pulls.
  • Keep the existing commit-SHA lookup as a final fallback.
  • Remove the artifact ZIP download Accept: application/octet-stream header because gh api rejected it during local replay.

Validation

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger
zeitlinger marked this pull request as ready for review July 8, 2026 15:25
@zeitlinger
zeitlinger merged commit 4a6958a into main Jul 9, 2026
19 checks passed
@zeitlinger
zeitlinger deleted the fix/pr-benchmark-report-fork-prs branch July 9, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants