-
Notifications
You must be signed in to change notification settings - Fork 54
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
image_changes: support multiple LTS #1424
Conversation
ci-automation/image_changes.sh
Outdated
# each line is major:year:(supported|unsupported) | ||
TUPLE=(${LINE//:/ }) | ||
MAJOR="${TUPLE[0]}" | ||
if [[ "${MAJOR_B}" = "${MAJOR}" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [[ "${MAJOR_B}" = "${MAJOR}" ]]; then | |
if [[ "${MAJOR_B}" = "${MAJOR}" ]] && [[ "${channel}" = "lts" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or:
SUFFIX=
if [[ ${channel} = 'lts' ]]; then
curl …
while read …; do …; done <lts-info
rm -f lts-info
fi
Fix for main branch: #1425 |
5b68330
to
4390fc6
Compare
@@ -51,6 +51,22 @@ function _image_changes_impl() { | |||
source sdk_container/.repo/manifests/version.txt | |||
local vernum="${FLATCAR_VERSION}" | |||
|
|||
MAJOR_B=$(echo "${FLATCAR_VERSION}" | cut -d . -f 1) | |||
|
|||
if [ "${channel}" = "lts" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot to put SUFFIX=
before the if
in case the channel is not LTS. Bash will bail out because of unbound variable SUFFIX
below.
When we support two LTS, the oldest one is compare to the newer one (e.g lts-2022 is compared to lts-2023). We now read the 'lts-info' file to find the right version to compare (e.g lts-2022 is compared to the 'current-2022') Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
4390fc6
to
7577382
Compare
Cherry-picked to:
|
When we support two LTS, the oldest one is compared to the newer one (e.g lts-2022 is compared to lts-2023).
We now read the 'lts-info' file to find the right version to compare (e.g lts-2022 is compared to the 'current-2022')
To be backported to flatcar-3033 / flatcar-3510