From b0c0ba12248a50a959ec3a643f56dbd6b908772d Mon Sep 17 00:00:00 2001 From: Gregory Giguashvili Date: Wed, 29 May 2024 09:07:51 +0000 Subject: [PATCH 1/2] Fix build_bootc_images to be more robust when processing versions --- test/bin/pyutils/build_bootc_images.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/bin/pyutils/build_bootc_images.py b/test/bin/pyutils/build_bootc_images.py index c2bf7ac31f..29be50272f 100644 --- a/test/bin/pyutils/build_bootc_images.py +++ b/test/bin/pyutils/build_bootc_images.py @@ -118,11 +118,17 @@ def set_rpm_version_info_vars(): FAKE_NEXT_MINOR_VERSION = str(int(MINOR_VERSION) + 1) SOURCE_VERSION_BASE = common.run_command_in_shell(f"rpm -q --queryformat '%{{version}}' {release_info_rpm_base}") + CURRENT_RELEASE_VERSION = "" + CURRENT_RELEASE_REPO = "" current_version_repo = common.run_command_in_shell(f"source {SCRIPTDIR}/get_rel_version_repo.sh; get_rel_version_repo {MINOR_VERSION}") - CURRENT_RELEASE_VERSION, CURRENT_RELEASE_REPO = current_version_repo.split(',') + if len(current_version_repo): + CURRENT_RELEASE_VERSION, CURRENT_RELEASE_REPO = current_version_repo.split(',') + PREVIOUS_RELEASE_VERSION = "" + PREVIOUS_RELEASE_REPO = "" previous_version_repo = common.run_command_in_shell(f"source {SCRIPTDIR}/get_rel_version_repo.sh; get_rel_version_repo {PREVIOUS_MINOR_VERSION}") - PREVIOUS_RELEASE_VERSION, PREVIOUS_RELEASE_REPO = previous_version_repo.split(',') + if len(previous_version_repo): + PREVIOUS_RELEASE_VERSION, PREVIOUS_RELEASE_REPO = previous_version_repo.split(',') RHOCP_MINOR_Y = "" RHOCP_MINOR_Y1 = "" From 620fa955a7a1c98b16dea51c32da917099a5f83e Mon Sep 17 00:00:00 2001 From: Gregory Giguashvili Date: Wed, 29 May 2024 10:21:21 +0000 Subject: [PATCH 2/2] Use y-2 rhocp repository for bootc builds --- test/bootc-sources/microshift_repo_config.sh.template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/bootc-sources/microshift_repo_config.sh.template b/test/bootc-sources/microshift_repo_config.sh.template index 855bd16454..4e29651e8a 100644 --- a/test/bootc-sources/microshift_repo_config.sh.template +++ b/test/bootc-sources/microshift_repo_config.sh.template @@ -33,6 +33,7 @@ EOF } config_centos9_repos() { + # The y-1 version repository is guaranteed to be available on the mirror cat > "${OCP_MIRROR_REPO_FILE}" < "${OCP_RHOCP_REPO_FILE}" <