Skip to content

feat(e2e): add optional ref input to e2e action#60

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

feat(e2e): add optional ref input to e2e action#60
abhijith-darshan merged 1 commit into
mainfrom
feat/e2e-ref

Conversation

@abhijith-darshan
Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional ref input to the workflows/e2e composite action
  • When provided, the checkout step uses the given commit SHA, branch, or tag
  • When omitted (default ""), actions/checkout falls back to the default branch — preserving existing nightly behaviour

Why

The ci-e2e-run.yaml workflow in cloudoperators/greenhouse is triggered via issue_comment, which always runs from the default branch. Without a ref input, the e2e action always checks out main instead of the PR's code.

Test plan

  • Nightly e2e (no ref passed) still checks out main
  • Comment-driven e2e (PR SHA passed as ref) checks out the PR's commit

Allows callers to pin the checkout to a specific commit SHA, branch,
or tag. When omitted (empty string), actions/checkout falls back to
the default branch — preserving existing nightly behaviour.

Required for comment-driven e2e runs triggered via issue_comment,
where the workflow runs from main but needs to test the PR's code.

Signed-off-by: D072950 <abhijith.ravindra@sap.com>
@abhijith-darshan abhijith-darshan requested a review from a team as a code owner May 25, 2026 23:22
Copilot AI review requested due to automatic review settings May 25, 2026 23:22
Copy link
Copy Markdown

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

Adds an optional ref input to the workflows/e2e composite action so callers can control which commit/branch/tag of cloudoperators/greenhouse is checked out before running E2E, while keeping the default behavior unchanged when ref is not provided.

Changes:

  • Introduces a new optional ref input (default "") for the E2E composite action.
  • Passes inputs.ref into the actions/checkout step when checking out cloudoperators/greenhouse.

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

@abhijith-darshan abhijith-darshan merged commit f87e1e6 into main May 26, 2026
3 checks passed
@abhijith-darshan abhijith-darshan deleted the feat/e2e-ref branch May 26, 2026 07:50
abhijith-darshan added a commit to cloudoperators/greenhouse that referenced this pull request 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 added a commit to cloudoperators/greenhouse that referenced this pull request May 26, 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 to cloudoperators/greenhouse 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 to cloudoperators/greenhouse 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 to cloudoperators/greenhouse 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 to cloudoperators/greenhouse 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants