Skip to content

ci: handle fork PR benchmark reports#2293

Open
zeitlinger wants to merge 1 commit into
mainfrom
fix/pr-benchmark-report-fork-prs
Open

ci: handle fork PR benchmark reports#2293
zeitlinger wants to merge 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant