Skip to content

rhel10: extract package sets into a single YAML file (HMS-5817) - #1300

Merged
achilleas-k merged 3 commits into
osbuild:mainfrom
mvo5:images-yaml-pkgset-rhel10-2
Mar 14, 2025
Merged

achilleas-k merged 3 commits into
osbuild:mainfrom
mvo5:images-yaml-pkgset-rhel10-2

Conversation

@mvo5

@mvo5 mvo5 commented Mar 7, 2025 •

Copy link
Copy Markdown
Contributor

An improved version of #1283 based on #1298

This is ready, and once #1312 (or something similar) is merged we will have:

$ ./tools/gen-manifests-diff
no diff found to main

JIRA: HMS-5817

@mvo5
mvo5 force-pushed the images-yaml-pkgset-rhel10-2 branch 2 times, most recently from f9f285e to 360b099 Compare March 10, 2025 12:22
@mvo5 mvo5 changed the title rhel10: extract Fedora package sets into a single YAML file (2) rhel10: extract package sets into a single YAML file (2) Mar 10, 2025
@achilleas-k

Copy link
Copy Markdown
Member

I like this!

@mvo5

mvo5 commented Mar 10, 2025

Copy link
Copy Markdown
Contributor Author

I like this!

Wonderful! I can either cleanup this draft or we merge #1298 first (which is simpler to review) and then I rebase this one once merged - whatever is easier for you folks reviewing.

@mvo5
mvo5 force-pushed the images-yaml-pkgset-rhel10-2 branch from 360b099 to 81bd6b5 Compare March 11, 2025 08:41
mvo5 added 2 commits March 13, 2025 15:22
The new `common.Must()` helper can be used in e.g. tests that
want a short way of writing `NewFoo() (Foo, error)` or
`LoadBar() (Bar, error)`, e.g.
```go
map[string]rhel.PackageSetFunc{
    rhel.OSPkgsKey: func(t *rhel.ImageType) rpmmd.PackageSet {
	return common.Must(packagesets.Load(t, "bare-metal", nil))
    },
}
```
This commit makes the yaml loader deal with different layout
for the yaml directories and also deals with the fact that
go:embed does not support symlinks.

This is (hopefully) a temporary measure, I expect that eventually
there will be a `distros.yaml` or similar file that describes
the various distros supported and some details (like their data
dir).
@mvo5
mvo5 force-pushed the images-yaml-pkgset-rhel10-2 branch from 81bd6b5 to e27429b Compare March 13, 2025 15:26
@mvo5
mvo5 marked this pull request as ready for review March 13, 2025 15:28
@mvo5
mvo5 requested a review from a team as a code owner March 13, 2025 15:28
@mvo5 mvo5 changed the title rhel10: extract package sets into a single YAML file (2) rhel10: extract package sets into a single YAML file Mar 13, 2025
This replaces the rhel10 package sets with yaml files. Note that
it uses `common.Must` as a stopgap for now to bridge between
the packagesets.Load() helper and the rhel PackageSetFunc. This
will just go away once all rhel versions are converted.
@mvo5
mvo5 force-pushed the images-yaml-pkgset-rhel10-2 branch from e27429b to 8ea95f0 Compare March 14, 2025 10:50

@supakeen supakeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you, super cool stuff. More YAML!

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀

@achilleas-k
achilleas-k added this pull request to the merge queue Mar 14, 2025
Merged via the queue into osbuild:main with commit 29bc1eb Mar 14, 2025
mvo5 added a commit to mvo5/images that referenced this pull request Mar 17, 2025
Move the rhel9 packages into yaml. Similar to e.g. PR#1300.
The existing structure in code was tried to be preserved.

Tested via:
```console
$ ./tools/gen-manifests-diff
no diff found to main
```

Build on top of osbuild#1300
github-merge-queue Bot pushed a commit that referenced this pull request Mar 17, 2025
Move the rhel9 packages into yaml. Similar to e.g. PR#1300.
The existing structure in code was tried to be preserved.

Tested via:
```console
$ ./tools/gen-manifests-diff
no diff found to main
```

Build on top of #1300
@ochosi

ochosi commented Mar 31, 2025

Copy link
Copy Markdown
Contributor

/jira-epic HMS-5284

@schutzbot schutzbot changed the title rhel10: extract package sets into a single YAML file rhel10: extract package sets into a single YAML file (HMS-5817) Mar 31, 2025
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