-
Notifications
You must be signed in to change notification settings - Fork 94
Generate bootc-image-builder test jobs dynamically and enable all tests [HMS-11073] #2539
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
Open
achilleas-k
wants to merge
11
commits into
osbuild:main
Choose a base branch
from
achilleas-k:bib/test-build-iso
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
330ea18
gitlab: enable all bootc-image-builder tests
achilleas-k f3fbf00
gitlab: generate bootc-image-builder jobs dynamically
achilleas-k 2c9dff4
bootc-image-builder: merge test_progress into test_opts
achilleas-k 10b0d8a
bootc-image-builder: enable cross-arch test cases
achilleas-k a76d949
bootc-image-builder/test: raise error for missing registry
achilleas-k f3366ea
bootc-image-builder/test: add anconda-iso fixture
achilleas-k 068742c
gitlab: disable bootc-image-builder pxe tests
achilleas-k 8c8eefd
bootc-image-builder/test: fix formatting of cs10 osinfo for ISO
achilleas-k 663ef55
bootc-image-builder/test: fix Fedora 44 ISO osinfo
achilleas-k 6f6c2e5
bootc-image-builder/test: skip booting cross-arch images
achilleas-k c2e8ac9
gitlab: skip bootc-image-builder test_build_iso on aarch64
achilleas-k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,23 @@ | ||
| import platform | ||
|
|
||
| import pytest | ||
| from test_build_disk import ( # pylint: disable=unused-import | ||
| assert_disk_image_boots, build_container_fixture, gpg_conf_fixture, | ||
| image_type_fixture, registry_conf_fixture, shared_tmpdir_fixture) | ||
|
|
||
| # pylint: disable=unused-import | ||
| from test_build_disk import (ImageBuildResult, assert_disk_image_boots, | ||
| build_container_fixture, gpg_conf_fixture, | ||
| image_type_fixture, registry_conf_fixture, | ||
| shared_tmpdir_fixture) | ||
| from testcases import gen_testcases | ||
|
|
||
|
|
||
| # This testcase is not part of "test_build_disk.py:test_image_boots" | ||
| # because it takes ~30min on the GH runners so moving it into a | ||
| # separate file ensures it is run in parallel on GH. | ||
| @pytest.mark.skipif(platform.system() != "Linux", reason="boot test only runs on linux right now") | ||
| @pytest.mark.parametrize("image_type", gen_testcases("qemu-cross"), indirect=["image_type"]) | ||
| @pytest.mark.skip("disabled while rewriting to boot in AWS") | ||
| def test_image_boots_cross(image_type): | ||
| assert_disk_image_boots(image_type) | ||
|
|
||
|
|
||
| @pytest.mark.skipif(platform.system() != "Linux", reason="boot test only runs on linux right now") | ||
| @pytest.mark.parametrize("image_type", gen_testcases("qemu-cross"), indirect=["image_type"]) | ||
| def test_image_builds_cross(image_type: ImageBuildResult): | ||
| assert image_type.img_path.exists() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do you want to leave a comment also into the file that these will be skipped, so that the naming is not confusing?
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.
I don't mind either way. I think since I have the task open, I'll want to get to it soon, so I don't expect it to stay like that for long (famous last words).