Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions test/bin/pyutils/build_bootc_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
PULL_SECRET = common.get_env_var('PULL_SECRET', f"{HOME_DIR}/.pull-secret.json")
# Switch to quay.io/centos-bootc/bootc-image-builder:latest if any new upstream
# features are required
BIB_IMAGE = "registry.redhat.io/rhel9/bootc-image-builder:latest"
BIB_IMAGE = "registry.stage.redhat.io/rhel9-eus/rhel-9.6-bootc-image-builder:9.6"
GOMPLATE = common.get_env_var('GOMPLATE')
MIRROR_REGISTRY = common.get_env_var('MIRROR_REGISTRY_URL')
FORCE_REBUILD = False
Expand Down Expand Up @@ -362,7 +362,7 @@ def should_skip(file):
common.record_junit(bf_path, "pull-bootc-bib", "OK", start)

# Read the image reference
bf_imgref = common.read_file(bf_outfile).strip()
bf_imgref = common.read_file_valid_lines(bf_outfile).strip()

# If not already local, download the image to be used by bootc image builder
if not bf_imgref.startswith('localhost/'):
Expand All @@ -388,7 +388,6 @@ def should_skip(file):
build_args += [
BIB_IMAGE,
"--type", "anaconda-iso",
"--local",
bf_imgref
]
start = time.time()
Expand Down
11 changes: 11 additions & 0 deletions test/bin/pyutils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,17 @@ def read_file(file_path: str):
return content


def read_file_valid_lines(file_path: str):
"""Read the file contents skipping empty and commented lines and return them to the caller"""
content = []
with open(file_path, 'r') as file:
for line in file:
sline = line.strip()
if sline and not sline.startswith('#'):
content.append(line)
return ''.join(content)


def append_file(file_path: str, content: str):
"""Append the specified content to a file"""
with open(file_path, 'a') as file:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM registry.stage.redhat.io/rhel9-eus/rhel-9.6-bootc:9.6
# Note:
# This is a workaround for the problem described in https://issues.redhat.com/browse/USHIFT-5584.
# Revert to the rhel-9.6 base image when it is in GA.
#
# FROM registry.stage.redhat.io/rhel9-eus/rhel-9.6-bootc:9.6
FROM quay.io/centos-bootc/centos-bootc:stream9

# Build arguments
ARG USHIFT_RPM_REPO_NAME=microshift-local
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
registry.stage.redhat.io/rhel9-eus/rhel-9.6-bootc:9.6
# Note:
# This is a workaround for the problem described in https://issues.redhat.com/browse/USHIFT-5584.
# Revert to the rhel-9.6 base image when it is in GA.
#
# registry.stage.redhat.io/rhel9-eus/rhel-9.6-bootc:9.6
quay.io/centos-bootc/centos-bootc:stream9
7 changes: 6 additions & 1 deletion test/scenarios-bootc/periodics/el96-crel@brew-standard1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ scenario_remove_vms() {
remove_vm host1
}

# Note:
# This is a workaround for the problem described in https://issues.redhat.com/browse/USHIFT-5584.
# Revert to the rhel-9.6 base image when it is in GA.
#
# --variable "EXPECTED_OS_VERSION:9.6" \
scenario_run_tests() {
run_tests host1 \
--variable "EXPECTED_OS_VERSION:9.6" \
--variable "EXPECTED_OS_VERSION:9" \
suites/standard1/ suites/selinux/validate-selinux-policy.robot
}
7 changes: 6 additions & 1 deletion test/scenarios-bootc/presubmits/el96-src@standard-suite1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ scenario_remove_vms() {
remove_vm host1
}

# Note:
# This is a workaround for the problem described in https://issues.redhat.com/browse/USHIFT-5584.
# Revert to the rhel-9.6 base image when it is in GA.
#
# --variable "EXPECTED_OS_VERSION:9.6" \
scenario_run_tests() {
run_tests host1 \
--variable "EXPECTED_OS_VERSION:9.6" \
--variable "EXPECTED_OS_VERSION:9" \
suites/standard1/ suites/selinux/validate-selinux-policy.robot
}