Skip to content

Conversation

kaworu
Copy link
Member

@kaworu kaworu commented Feb 18, 2025

af9ac19 introduced an issue where the cilium-cli connectivity check could panic when GITHUB_WORKFLOW_REF was not set as expected.

This commit changes the GITHUB_WORKFLOW_REF parsing logic using a regexp capture to extract the workflow name from GITHUB_WORKFLOW_REF and check whether the match was successful.

Fix #37705

@kaworu kaworu added kind/bug This is a bug in the Cilium logic. area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact. labels Feb 18, 2025
@kaworu kaworu self-assigned this Feb 18, 2025
@kaworu kaworu requested a review from a team as a code owner February 18, 2025 13:03
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Feb 18, 2025
@kaworu kaworu requested a review from joestringer February 18, 2025 13:04
af9ac19 introduced an issue where the
cilium-cli connectivity check could panic when GITHUB_WORKFLOW_REF was
not set as expected.

This commit changes the GITHUB_WORKFLOW_REF parsing logic using a regexp
capture to extract the workflow name from GITHUB_WORKFLOW_REF and check
whether the match was successful.

Reported-by: Martynas Pumputis <martynas@isovalent.com>
Signed-off-by: Alexandre Perrin <alex@isovalent.com>
@kaworu kaworu force-pushed the pr/kaworu/cilium-cli/fix-github-workflow-ref-parsing branch from ac38918 to 5d03fab Compare February 18, 2025 13:07
@kaworu
Copy link
Member Author

kaworu commented Feb 18, 2025

/test

Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. Works as expected.

@joestringer
Copy link
Member

We're even lucky enough to get a random failure in ci-clustermesh that demonstrates that this fixes the issue that was reported, as in the case where GITHUB_WORKFLOW_REF is unspecified it just ignores the workflow attribution rather than crashing: https://github.com/cilium/cilium/actions/runs/13392927898/job/37404692001#step:54:463 🎉

@kaworu
Copy link
Member Author

kaworu commented Feb 18, 2025

Hit #37718

@joestringer joestringer added this pull request to the merge queue Feb 18, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Feb 18, 2025
Merged via the queue into cilium:main with commit 47d3a25 Feb 18, 2025
64 checks passed
@kaworu kaworu deleted the pr/kaworu/cilium-cli/fix-github-workflow-ref-parsing branch February 19, 2025 06:51
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 cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. 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.

CI: Cilium Cluster Mesh upgrade (ci-clustermesh): (*ConnectivityTest).LogOwners panic
3 participants