8000 Align main and stable branch workflows for availability of cilium-cli by joestringer · Pull Request #38138 · cilium/cilium · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Align main and stable branch workflows for availability of cilium-cli #38138

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

Merged
merged 3 commits into from
Mar 13, 2025

Conversation

joestringer
Copy link
Member
@joestringer joestringer commented Mar 12, 2025

This PR aims to tweak the GitHub workflows in the tree to be ambivalent about
the availability of the cilium-cli directory. This way we can ensure that the
main version of these workflows can align with the stable branch versions of
these workflows, which should simplify the branching process when we are coming
up towards a release period.

Requires: cilium/cilium-cli#2973
Related: #37319

Tested via #38170
Tested (v1.17.x) via #38141

@joestringer joestringer added release-note/ci This PR makes changes to the CI. backport/author The backport will be carried out by the author of the PR. needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch labels Mar 12, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Mar 12, 2025
@joestringer joestringer force-pushed the pr/joe/cli-workflow-stable-branch-maintainability branch from 1bfe0db to 3b1743f Compare March 12, 2025 02:43
Switch the image list to a bash array for easier manipulation. Then, if
the cilium-cli directory is not locally available, skip the wait for
that specific image. This should fix an issue on stable branches where
this action blocks forever due to the lack of a local cilium-cli
directory.

Signed-off-by: Joe Stringer <joe@cilium.io>
Add an expression to the image build workflows to require that the
'cilium-cli' directory exists in order to trigger the build for the
cilium CLI. When backported, this should allow us to keep 100% the same
GitHub workflows without making adjustments for the missing cilium-cli
directory.

Signed-off-by: Joe Stringer <joe@cilium.io>
With a new update to the cilium-cli GitHub action, it will automatically
pick an appropriate version of the CLI to install based on the
parameters passed into these workflows.

The goal here is that on main we install from an image built by the CI
by default, then on stable branches we'll substitute the CLI version in
the environment variables for a stable release. By passing all of the
parameters in however, we can avoid having to update each of the
workflows each time we create a stable branch.

The CILIUM_CLI_VERSION variable in the environment didn't seem to be
actively used so far, so resetting it to an empty string should not have
any repercussions as far as I can tell. It seems useful to retain for
stable branches however, so I kept it in place.

Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer force-pushed the pr/joe/cli-workflow-stable-branch-maintainability branch from 3b1743f to f4a2a43 Compare March 13, 2025 00:08
@joestringer joestringer marked this pull request as ready for review March 13, 2025 00:14
@joestringer joestringer requested review from a team as code owners March 13, 2025 00:14
@joestringer joestringer enabled auto-merge March 13, 2025 00:14
@joestringer joestringer requested a review from pchaigno March 13, 2025 00:14
@joestringer joestringer added backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. and removed needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch labels Mar 13, 2025
@joestringer
Copy link
Member Author

/test

Copy link
Contributor
@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

👍 from sig-servicemesh

@joestringer joestringer added this pull request to the merge queue Mar 13, 2025
Merged via the queue into main with commit be32933 Mar 13, 2025
314 of 319 checks passed
@joestringer joestringer deleted the pr/joe/cli-workflow-stable-branch-maintainability branch March 13, 2025 08:24
@github-actions github-actions bot added backport-done/1.17 The backport for Cilium 1.17.x for this PR is done. and removed backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. labels Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/author The backport will be carried out by the author of the PR. backport-done/1.17 The backport for Cilium 1.17.x for this PR is done. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0