Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gha: fix conformance-ginkgo base branch retrieval #26085

Merged
merged 2 commits into from Jun 9, 2023

Conversation

giorio94
Copy link
Member

@giorio94 giorio94 commented Jun 9, 2023

Retrieving the base branch from github.base_branch does not work when the action is triggered by a comment, because that field is not populated. Let's retrieve it from the json information about the PR. Additionally, let's make sure that we use the correct URL to retrieve the PR information also when the workflow is triggered by a pull_request event.

Link to running workflow: https://github.com/cilium/cilium/actions/runs/5224161919/jobs/9432015821?pr=26085

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 9, 2023
@giorio94 giorio94 added area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact. labels Jun 9, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Jun 9, 2023
@giorio94 giorio94 force-pushed the pr/giorio94/conformance-gingo branch from e6f367a to c1b6017 Compare June 9, 2023 16:45
Let's make sure that we use the correct URL to retrieve the PR
information also when the workflow is triggered by a pull_request event.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Retrieving the base branch from github.base_branch does not work when
the action is triggered by a comment, because that field is not
populated. Let's retrieve it from the json information about the PR.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 force-pushed the pr/giorio94/conformance-gingo branch 2 times, most recently from c6d5c01 to d032acd Compare June 9, 2023 16:50
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for fixing this!

@giorio94 giorio94 marked this pull request as ready for review June 9, 2023 16:51
@giorio94 giorio94 requested review from a team as code owners June 9, 2023 16:51
@giorio94 giorio94 requested a review from brlbil June 9, 2023 16:51
@qmonnet qmonnet added the kind/bug/CI This is a bug in the testing code. label Jun 9, 2023
@giorio94
Copy link
Member Author

giorio94 commented Jun 9, 2023

Copy link
Contributor

@brlbil brlbil left a comment

Choose a reason for hiding this comment

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

LGTM

@aanm aanm merged commit bc013d5 into main Jun 9, 2023
49 checks passed
@aanm aanm deleted the pr/giorio94/conformance-gingo branch June 9, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake kind/bug/CI This is a bug in the testing code. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants