Skip to content

fix(ci): pass PR SHA as ref to e2e action and drop redundant checkout#2027

Merged
abhijith-darshan merged 1 commit into
mainfrom
fix/e2e-run-ref
May 26, 2026
Merged

fix(ci): pass PR SHA as ref to e2e action and drop redundant checkout#2027
abhijith-darshan merged 1 commit into
mainfrom
fix/e2e-run-ref

Conversation

@abhijith-darshan
Copy link
Copy Markdown
Contributor

@abhijith-darshan abhijith-darshan commented May 25, 2026

Description

Passes ref: <PR head SHA> to the cloudoperators/common/workflows/e2e composite action so e2e tests run against the PR's code rather than main. Drops the now-redundant Checkout PR head step (the common action handles checkout internally) and removes the job-level GITHUB_TOKEN env that caused duplicate Authorization headers on the internal git fetch.

Depends on cloudoperators/common#60.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

Copilot AI review requested due to automatic review settings May 25, 2026 23:25
@abhijith-darshan abhijith-darshan requested a review from a team as a code owner May 25, 2026 23:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the ad-hoc PR-triggered E2E runner workflow to ensure the E2E composite action checks out and runs against the PR head SHA (rather than defaulting to the repository default branch), and removes redundant checkout/token configuration that interfered with the action’s internal checkout.

Changes:

  • Pass ref: ${{ needs.parse.outputs.sha }} into cloudoperators/common/workflows/e2e so E2E runs against the PR head SHA.
  • Remove the explicit “Checkout PR head” step from the e2e job (checkout handled inside the common E2E action).
  • Remove job-level GITHUB_TOKEN env from the e2e job to avoid duplicate Authorization headers during internal checkout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci-e2e-run.yaml Outdated
IvoGoman
IvoGoman previously approved these changes May 26, 2026
The e2e action now accepts a ref input (cloudoperators/common#60).
Passing the PR head SHA ensures the correct code is tested rather than
the default branch. Also removes the now-redundant Checkout PR head
step and the job-level GITHUB_TOKEN env that caused duplicate
Authorization headers.

Depends on: cloudoperators/common#60

Signed-off-by: abhijith-darshan <abhijith.ravindra@sap.com>
@abhijith-darshan abhijith-darshan merged commit ca18816 into main May 26, 2026
8 checks passed
@abhijith-darshan abhijith-darshan deleted the fix/e2e-run-ref branch May 26, 2026 09:21
k-fabryczny pushed a commit that referenced this pull request May 29, 2026
…#2027)

The e2e action now accepts a ref input (cloudoperators/common#60).
Passing the PR head SHA ensures the correct code is tested rather than
the default branch. Also removes the now-redundant Checkout PR head
step and the job-level GITHUB_TOKEN env that caused duplicate
Authorization headers.

Depends on: cloudoperators/common#60

Signed-off-by: abhijith-darshan <abhijith.ravindra@sap.com>
k-fabryczny pushed a commit that referenced this pull request May 29, 2026
…#2027)

The e2e action now accepts a ref input (cloudoperators/common#60).
Passing the PR head SHA ensures the correct code is tested rather than
the default branch. Also removes the now-redundant Checkout PR head
step and the job-level GITHUB_TOKEN env that caused duplicate
Authorization headers.

Depends on: cloudoperators/common#60

Signed-off-by: abhijith-darshan <abhijith.ravindra@sap.com>
Signed-off-by: Klaudiusz Fabryczny <klaudiusz.fabryczny@sap.com>
k-fabryczny pushed a commit that referenced this pull request May 29, 2026
…#2027)

The e2e action now accepts a ref input (cloudoperators/common#60).
Passing the PR head SHA ensures the correct code is tested rather than
the default branch. Also removes the now-redundant Checkout PR head
step and the job-level GITHUB_TOKEN env that caused duplicate
Authorization headers.

Depends on: cloudoperators/common#60

Signed-off-by: abhijith-darshan <abhijith.ravindra@sap.com>
k-fabryczny pushed a commit that referenced this pull request May 29, 2026
…#2027)

The e2e action now accepts a ref input (cloudoperators/common#60).
Passing the PR head SHA ensures the correct code is tested rather than
the default branch. Also removes the now-redundant Checkout PR head
step and the job-level GITHUB_TOKEN env that caused duplicate
Authorization headers.

Depends on: cloudoperators/common#60

Signed-off-by: abhijith-darshan <abhijith.ravindra@sap.com>
Signed-off-by: Klaudiusz Fabryczny <klaudiusz.fabryczny@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants