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

ci/ipsec: Fix version retrieval for downgrades to closest patch release #30503

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

qmonnet
Copy link
Member

@qmonnet qmonnet commented Jan 29, 2024

Julian reports that the IPsec upgrade/downgrade workflow still has a flake that we expected to be gone, now that the fix is released patch version 1.13.11. As it turns out, the workflow does not pick and downgrade to the latest patch release, but to the one before that, because the script would decrement the value found in file VERSION. We don't need this, VERSION already contains the last patch release that was published, not the one to come.

Fixes: 56dfec2 ("contrib/scripts: Support patch releases in print-downgrade-version.sh")
Fixes: #28815

Cc @pchaigno just FYI

This commit brings two fixes to the script that we use to determine to
which version we should upgrade/downgrade in some CI workflows.

The first fix is the most important one. When looking for the closest
patch version, make the script return the value in VERSION instead of
decrementing it. The rationale is that for stable branches, VERSION
already points to the latest patch release, there is no need to decrease
it further! This fix does not affect the output for the calculation of
the previous minor version number.

The second fix is simply the addition of an error message in case the
minor version number is 0, to get some explicit error instead of a
silent failure if we ever reach Cilium 2.0.0.

Updated samples of numbers from VERSION and the corresponding values
returned:

    VERSION         Previous minor  Previous patch release

    1.14.3          v1.13           v1.14.3
    1.14.1          v1.13           v1.14.1
    1.14.0          v1.13           <error>
    1.14.1-dev      v1.13           v1.14.1
    1.15.0-dev      v1.14           <error>
    1.13.90         v1.12           <error>
    2.0.1           <error>         v2.0.1

Fixes: 56dfec2 ("contrib/scripts: Support patch releases in print-downgrade-version.sh")
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
@qmonnet qmonnet added kind/bug/CI This is a bug in the testing code. release-note/ci This PR makes changes to the CI. needs-backport/1.12 needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch feature/ipsec Relates to Cilium's IPsec feature needs-backport/1.15 This PR / issue needs backporting to the v1.15 branch labels Jan 29, 2024
@qmonnet qmonnet requested a review from a team as a code owner January 29, 2024 11:19
@qmonnet qmonnet requested a review from bimmlerd January 29, 2024 11:19
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from main in 1.12.19 Jan 29, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from main in 1.13.12 Jan 29, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from main in 1.14.7 Jan 29, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from main in v1.15.0-rc.1 Jan 29, 2024
@qmonnet
Copy link
Member Author

qmonnet commented Jan 29, 2024

/ci-ipsec-upgrade

@julianwiedmann
Copy link
Member

cc @cilium/sig-clustermesh , as .github/workflows/tests-clustermesh-upgrade.yaml is also using the script.

@qmonnet
Copy link
Member Author

qmonnet commented Jan 29, 2024

/test

Copy link
Member

@julianwiedmann julianwiedmann left a comment

Choose a reason for hiding this comment

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

ta!

@giorio94
Copy link
Member

cc @cilium/sig-clustermesh , as .github/workflows/tests-clustermesh-upgrade.yaml is also using the script.

Thanks for the ping! The clustermesh workflow is not strictly affected because it only tests downgrades to the previous minor version, not to the patch one.

@julianwiedmann julianwiedmann added this pull request to the merge queue Jan 29, 2024
Merged via the queue into main with commit 5581963 Jan 29, 2024
225 of 229 checks passed
@julianwiedmann julianwiedmann deleted the pr/qmonnet/ipsec/ci-upgrade-patch-version-fix branch January 29, 2024 16:55
@joamaki joamaki mentioned this pull request Jan 30, 2024
7 tasks
@joamaki joamaki added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Jan 30, 2024
@joamaki joamaki mentioned this pull request Jan 30, 2024
28 tasks
@joamaki joamaki added the backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. label Jan 30, 2024
@github-actions github-actions bot added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. labels Jan 31, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.13 to Backport done to v1.13 in 1.13.12 Jan 31, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Backport done to v1.13 in 1.13.12 Jan 31, 2024
@joamaki joamaki mentioned this pull request Jan 31, 2024
17 tasks
@joamaki joamaki added backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. and removed needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch labels Jan 31, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from main to Backport pending to v1.14 in 1.14.7 Jan 31, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Backport done to v1.13 in 1.13.12 Jan 31, 2024
@aanm aanm added this to Backport pending to v1.15 in 1.15.1 Jan 31, 2024
@aanm aanm removed this from Backport pending to vv1.15.0-rc in v1.15.0-rc.1 Jan 31, 2024
@aanm aanm removed this from Backport pending to v1.15 in 1.15.1 Jan 31, 2024
@aanm aanm added backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. and removed backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. labels Jan 31, 2024
@aanm aanm added this to Backport done to v1.15 in v1.15.0-rc.1 Jan 31, 2024
@github-actions github-actions bot added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. and removed backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. labels Feb 7, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Backport pending to v1.14 in 1.14.7 Feb 7, 2024
@nbusseneau nbusseneau mentioned this pull request Feb 8, 2024
2 tasks
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Backport done to v1.14 in 1.14.7 Feb 8, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from main to Backport pending to v1.12 in 1.12.19 Feb 8, 2024
@github-actions github-actions bot added backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. and removed backport-pending/1.12 labels Feb 9, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.12 to Backport done to v1.12 in 1.12.19 Feb 9, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed this from Backport done to v1.12 in 1.12.19 Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. feature/ipsec Relates to Cilium's IPsec feature kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
No open projects
1.13.12
Backport done to v1.13
1.14.7
Backport done to v1.14
v1.15.0-rc.1
Backport done to v1.15
Development

Successfully merging this pull request may close these issues.

None yet

7 participants