Skip to content

Always use seed argument directly#2516

Merged
achilleas-k merged 9 commits into
osbuild:mainfrom
achilleas-k:something-with-the-seed
Jul 14, 2026
Merged

Always use seed argument directly#2516
achilleas-k merged 9 commits into
osbuild:mainfrom
achilleas-k:something-with-the-seed

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

In 155ae59 we added SeedArgFor() which derives the RNG seed from the seed option combined with the distribution and architecture names. This isn't necessary any more and only complicates things.

Always use the rngseed directly.

avitova and others added 7 commits July 13, 2026 11:25
Wire new CLI flags --bootc-remote and --image-size through manifest so
that test configs can be built via image-builder build/manifest.

Related: HMS-10855
This commit swaps usage of build in tests to using image-builder
directly.
After swapping from build to image-builder in tests, it is possible to
use options instead of solely just a config file. This commit extracts
options from the json config: --ostree-ref, --ostree-url,
--ostree-parent, --bootc-installer-payload-ref, --bootc-remote,
--image-size, and --extra-repo. It also extracts the blueprint part of
the config into a standalone file, so that it can be used for building
with image-builder.
The commit also changes find_image_file function which now looks for
different filename, since image-builder creates a different file than
./bin/build.

Related: HMS-10855
The test keep failing due to missing fuse. Disabling the test since this
is experimental.
For uploaders for both AWS and Azure, we check for missing arguments,
and fail early when uploading, and skip upload during build when the
flag is not provided. For openstack, we do not do that. As a result,
upload to openstack fails. This commit adds a check for
--openstack-image before creating an openstack uploader and fails with
ErrUploadConfigNotProvided if not provided.
Rename the 'manifest' variable to 'mf' and the serialised manifest
variable from 'mf' to 'mfs'.  We need to use the 'manifest' package.
Builds in CI now use image-builder, which by default generates manifests
with the librepo instead of the curl source.  We need to generate
manifests in a compatible way, otherwise we will keep rebuilding every
image in every CI run.
@achilleas-k achilleas-k requested review from a team and thozza as code owners July 13, 2026 15:29
Always use the rngseed directly.  There's no need to derive it from the
distro and architecture name anymore.
@achilleas-k achilleas-k force-pushed the something-with-the-seed branch 2 times, most recently from 53f2da5 to b23bac4 Compare July 13, 2026 15:40
@supakeen

Copy link
Copy Markdown
Member

This is rebased on top of #2462 is that correct?

@achilleas-k achilleas-k force-pushed the something-with-the-seed branch from b23bac4 to d2ca267 Compare July 13, 2026 15:41
supakeen
supakeen previously approved these changes Jul 13, 2026
@achilleas-k

Copy link
Copy Markdown
Member Author

This is rebased on top of #2462 is that correct?

Yes, sorry. I should have mentioned: This is stacked on #2462 and #2514.

croissanne
croissanne previously approved these changes Jul 13, 2026
@achilleas-k achilleas-k enabled auto-merge July 13, 2026 16:35
@achilleas-k

Copy link
Copy Markdown
Member Author

https://gitlab.com/redhat/services/products/image-builder/ci/images/-/jobs/15319989224

⚫ No manifest changes detected. Generating null config.

🎉

@achilleas-k achilleas-k dismissed stale reviews from croissanne and supakeen via c57edbf July 13, 2026 18:26
@achilleas-k

Copy link
Copy Markdown
Member Author

Found an issue with RHEL. Fixed it.

RHEL manifests set the RHSM fact.  If the gen-manifests fact does not
match the one from 'image-builder build', the CI cache wont work
properly for RHEL images.
@achilleas-k achilleas-k force-pushed the something-with-the-seed branch from c57edbf to 800d092 Compare July 13, 2026 18:37
@achilleas-k achilleas-k added this pull request to the merge queue Jul 14, 2026
Merged via the queue into osbuild:main with commit d1d04bd Jul 14, 2026
50 checks passed
@achilleas-k achilleas-k deleted the something-with-the-seed branch July 14, 2026 10:07
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