Skip to content

Commit

Permalink
test: allow failures on Fedora 41
Browse files Browse the repository at this point in the history
Add a list of distro versions that are allowed to fail in CI.  When a
distro matches one in the list, the 'allow_failure' property of the job
is set to 'true'.
  • Loading branch information
achilleas-k committed Apr 5, 2024
1 parent cd5a912 commit 186e1b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/scripts/generate-build-config
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build/{distro}/{arch}/{image_type}/{config_name}:
variables:
RUNNER: aws/fedora-39-{arch}
INTERNAL_NETWORK: "{internal}"
allow_failure: {can_fail}
"""


Expand Down Expand Up @@ -81,7 +82,8 @@ def generate_configs(build_requests, pipeline_file):
config_name=config_name, config=config_path,
container_push=container_push_cmd,
internal="true" if "rhel" in distro else "false",
image_path=image_path))
image_path=image_path,
can_fail="true" if distro in testlib.DISTROS_CAN_FAIL else "false"))
print("✅ DONE!")


Expand Down
4 changes: 3 additions & 1 deletion test/scripts/generate-ostree-build-config
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build/{distro}/{arch}/{image_type}/{config_name}:
needs:
- pipeline: "$PARENT_PIPELINE_ID"
job: generate-ostree-build-config-{distro}-{arch}
allow_failure: {can_fail}
"""


Expand Down Expand Up @@ -297,7 +298,8 @@ def generate_configs(build_requests, container_configs, pipeline_file, configs_d
config_name=config_name, config=build_config_path,
start_container=container_cmd,
internal="true" if "rhel" in distro else "false",
image_path=image_path))
image_path=image_path,
can_fail="true" if distro in testlib.DISTROS_CAN_FAIL else "false"))
print("✅ DONE!")


Expand Down
3 changes: 3 additions & 0 deletions test/scripts/imgtestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
SCHUTZFILE = "Schutzfile"
OS_RELEASE_FILE = "/etc/os-release"

# allow failures on devel distro versions like rawhide
DISTROS_CAN_FAIL = ["fedora-41"]

# ostree containers are pushed to the CI registry to be reused by dependants
OSTREE_CONTAINERS = [
"iot-container",
Expand Down

0 comments on commit 186e1b0

Please sign in to comment.