-
Notifications
You must be signed in to change notification settings - Fork 54
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
rpmmd: add module_hotfixes flag to RepoConfig #284
Conversation
7ad2d6a
to
18315c5
Compare
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.
Needs some tests added, and current hash values need updating :)
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.
Looks good, a quick test at least for the dnfjson
conversion code is indeed quite crucial.
The aim here was not to change the hash if the flag is not set, I've clearly failed. |
e9d57c9
to
a7913fa
Compare
Alright, we are 🍏 here, I've added a test, but quite a simle one, if you'd have an idea what else we should cover, let me know pls, so we can get this in 🙏 |
nit: the commit message needs |
a7913fa
to
5c0a0a0
Compare
Hehe, true, indeed, thx, good catch 🙏 |
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.
Thanks for your PR! This looks fine AFAICT (take it with a grain of salt, I'm relatively new to this codebase) as a short term fix. I have some inline comments and if my assumptions are correct I would love to have a followup for them - I'm happy to volunteer if you are busy of course :)
b3cdcf2
to
ad8372f
Compare
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.
Thank you for this and also for the followup. This looks very nice and straightforward now.
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.
Thanks for the changes. However, I found one problem which I consider a blocker.
In addition to that, I realized that you didn't modify the dnf-json
copy in this repository, which then makes the newly added repo config value be ignored by it in testing. Please modify it in the same way as you did in the osbuild-composer PR.
ad8372f
to
da60f7a
Compare
Adds module_hotfixes flag to all repo types so it can be used during osbuild. This enables users to disable modularity filtering on specific repositories.
da60f7a
to
508bc58
Compare
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.
LGTM, thanks!
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.
Looks good to me, thanks!
Just testing if our current CI tests would have caught osbuild#284 (comment) Signed-off-by: Tomáš Hozza <[email protected]>
This is a regression test for an issue found during the review of PR#284 [0]. The issue was that ``` ModuleHotfixes *bool `json:"module_hotfixes"` ``` lacked the required `omitempty` which may cause issues with dnfjson. As a quick and easy way to prevent this in the future this commit adds a small test that ensures that we notice any missing `omitempty`. Note that the `rpmmd` part is not strictly needed but it feels more correct to do the check in both places that use a repoConfig. [0] osbuild#284 (comment)
This is a regression test for an issue found during the review of PR#284 [0]. The issue was that ``` ModuleHotfixes *bool `json:"module_hotfixes"` ``` lacked the required `omitempty` which may cause issues with dnfjson. As a quick and easy way to prevent this in the future this commit adds a small test that ensures that we notice any missing `omitempty`. Note that the `rpmmd` part is not strictly needed but it feels more correct to do the check in both places that use a repoConfig. [0] osbuild#284 (comment)
This is a regression test for an issue found during the review of PR#284 [0]. The issue was that ``` ModuleHotfixes *bool `json:"module_hotfixes"` ``` lacked the required `omitempty` which may cause issues with dnfjson. As a quick and easy way to prevent this in the future this commit adds a small test that ensures that we notice any missing `omitempty`. Note that the `rpmmd` part is not strictly needed but it feels more correct to do the check in both places that use a repoConfig. [0] osbuild#284 (comment)
This is a regression test for an issue found during the review of PR#284 [0]. The issue was that ``` ModuleHotfixes *bool `json:"module_hotfixes"` ``` lacked the required `omitempty` which may cause issues with dnfjson. As a quick and easy way to prevent this in the future this commit adds a small test that ensures that we notice any missing `omitempty`. Note that the `rpmmd` part is not strictly needed but it feels more correct to do the check in both places that use a repoConfig. [0] #284 (comment)
Adds module_hotfixes flag to all repo types so it can be used during osbuild. This enables users to disable modularity filtering on specific repositories.
relates to: osbuild/osbuild-composer#3821