Skip to content
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

test: compare osbuild version for image builds and don't specify boot mode #318

Merged
merged 6 commits into from
Dec 19, 2023

Conversation

achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Dec 13, 2023

This PR was originally written to test builds for osbuild/osbuild#1493.
Changes:

@achilleas-k achilleas-k added the WIP+test Work in progress but run Gitlab CI. label Dec 13, 2023
@achilleas-k achilleas-k force-pushed the test/osbuild/devpaths branch 4 times, most recently from 8fb290c to c775681 Compare December 13, 2023 20:36
@achilleas-k achilleas-k force-pushed the test/osbuild/devpaths branch 2 times, most recently from a1e588f to 60c296a Compare December 13, 2023 23:46
@achilleas-k
Copy link
Member Author

Embarrassing typo fixed 😳

@dustymabe
Copy link

There were three test failures from Shutzbot, but I'm not sure I understand the failures. Looks like they built the disk images fine and uploaded them to AWS and launched instances, but something after instance launch failed?

Screenshot 2023-12-13 at 23-11-58 Pipeline · Red Hat _ Red Hat Services _ Products _ Image Builder _ ci _ images CI · GitLab

@achilleas-k
Copy link
Member Author

I think the thing the failures have in common is that they're all BIOS only. I think the issue is that when we boot them we don't specify so maybe they're defaulting to UEFI in EC2. But that doesn't explain why they succeeded in the past, unless something changed with our uploader or the AWS library defaults.

@achilleas-k
Copy link
Member Author

Oops, there it is: 15e9d28

@achilleas-k achilleas-k force-pushed the test/osbuild/devpaths branch 2 times, most recently from 8895afd to ec19b05 Compare December 15, 2023 02:22
@achilleas-k
Copy link
Member Author

I'm going to clean this up (remove the osbuild PR pin) and mark it ready since I found a few issues while setting it up.

@achilleas-k achilleas-k changed the title WIP: test osbuild PR 1493 test: compare osbuild version for image builds and don't specify boot mode Dec 15, 2023
osbuild PR osbuild/osbuild#1493 changes a small
detail in the way device paths are passed into the stage.  Let's start
using it to catch any issues.

osbuild/osbuild@dfd59a3
We want to move some of the functions into the testlib module so lets
move the script there first and have it import the module.
Record the osbuild commit ID from the Schutzfile in the build info when
a build is successful.
If a commit ID isn't specified, record it as "RELEASE" to signify that
the osbuild version is the one in the distro repos.
If the osbuild version and commit ID don't match, schedule the config
for a build.

This makes sure that changes in osbuild which don't affect the manifest
get retested.  This can catch bugs that weren't caught in osbuild and is
useful for testing internal osbuild functionality changes.

This commit also fixes a typo in the build info.json:
obuild-version -> osbuild-version
We might specify it in the future, knowing which mode each image
supports, but for now let's leave it off.

This reverts commit 15e9d28.
@achilleas-k achilleas-k marked this pull request as ready for review December 15, 2023 15:57
@achilleas-k achilleas-k removed the WIP+test Work in progress but run Gitlab CI. label Dec 15, 2023
Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@achilleas-k achilleas-k added this pull request to the merge queue Dec 19, 2023
Merged via the queue into osbuild:main with commit d159ce1 Dec 19, 2023
8 checks passed
@achilleas-k achilleas-k deleted the test/osbuild/devpaths branch December 21, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants