Skip to content

🐛 fix: report e2e commit status to fork PR head SHA#840

Merged
clubanderson merged 1 commit intomainfrom
fix/ci-report-status-to-pr-head
Mar 4, 2026
Merged

🐛 fix: report e2e commit status to fork PR head SHA#840
clubanderson merged 1 commit intomainfrom
fix/ci-report-status-to-pr-head

Conversation

@clubanderson
Copy link
Copy Markdown
Contributor

Problem

When /trigger-e2e-full is commented on a fork PR, the issue_comment event always associates the workflow run with main (GitHub limitation). The previous fixes (PR #832, PR #839) correctly fixed the code checkout to use the PR's head SHA, but no commit status was reported back to the PR. This means:

  1. The PR shows no e2e check status after /trigger-e2e-full
  2. The Actions UI shows main's SHA, making it appear tests ran against main
  3. Prow/Tide can't see the check result on the PR

Fix

Mirrors the pattern already used in ci-e2e-openshift.yaml:

  • report-status job: Runs after e2e-tests for issue_comment events, calls repos.createCommitStatus() on the PR head SHA with the test result (success/failure)
  • Pending status step: Sets a pending commit status on the PR head SHA when e2e-tests starts, giving immediate feedback
  • Image tag fix: Replaces GITHUB_SHA with pr_head_sha in the image tag so logs show the actual code being built
  • statuses: write permission: Added to e2e-tests and report-status jobs

Testing

  • YAML syntax validated
  • Pattern matches the proven ci-e2e-openshift.yaml implementation
  • Skipped e2e-tests correctly report failure (not pending) when prerequisite fails

Closes #831

When /trigger-e2e-full is commented on a fork PR, the issue_comment
event always associates the workflow run with main (GitHub limitation).
Without explicit status reporting, the PR shows no e2e check status,
making it appear the tests ran against main.

Fix:
- Add report-status job that calls repos.createCommitStatus on the
  PR head SHA after e2e-tests complete (mirrors ci-e2e-openshift.yaml)
- Add pending status step at e2e-tests start for immediate PR feedback
- Replace GITHUB_SHA with pr_head_sha in image tag so logs show the
  actual code being tested
- Add statuses:write permission to e2e-tests and report-status jobs

Closes #831

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

GPU Pre-flight Check ✅

GPUs are available for e2e-openshift tests. Proceeding with deployment.

Resource Total Allocated Available
GPUs 50 12 38
Cluster Value
Nodes 16 (7 with GPUs)
Total CPU 993 cores
Total Memory 10383 Gi
GPUs required 4 (min) / 6 (recommended)

Copy link
Copy Markdown
Collaborator

@mamy-CS mamy-CS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @clubanderson I was just looking at this issue. /lgtm

@clubanderson clubanderson merged commit 4d93581 into main Mar 4, 2026
17 of 18 checks passed
@clubanderson clubanderson deleted the fix/ci-report-status-to-pr-head branch March 4, 2026 17:33
@clubanderson
Copy link
Copy Markdown
Contributor Author

@mamy-CS please test and report findings in slack so we know today if this works or not.

zdtsw added a commit to zdtsw-forking/workload-variant-autoscaler that referenced this pull request Mar 10, 2026
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.

CI: /trigger-e2e-full runs full e2e against latest main instead of PR head

2 participants