Closed EmersonPrado closed 6 months ago
Double checked everything. I'm comfortable to have it reviewed
@jhoblitt Thanks for taking some time to review.
package dnfmodule
provider has some issues with dealing with streams:
dnfmodule
providerCould you provide a specific example in puppet code which does not work with the dnfmodule
provider but does work with this new type/provider? dnfmodule
does support profiles with the flavor
parameters. Are you stating that Puppet By Perforce has decided to depreciate the the dnfmodule
provider?
@EmersonPrado can you add your explanation to the README.md?
@jhoblitt I'll do as @bastelfreak suggested. This might answer your questions, and the quite likely same ones from other people.
@jhoblitt @bastelfreak Done
@jhoblitt About this other question: "Are you stating that Puppet By Perforce has decided to depreciate the the dnfmodule provider?":
dnfmodule
provider, but move its stream support to a dedicated resource (and, later, complete its profiles support, but this is another issue)@EmersonPrado please update the REFERENCE.md with bundle exec rake strings:generate:reference
(that's currently blocking the CI).
@bastelfreak Done. Still some errors, but I guess they're unrelated to the PR.
Could you provide a specific example in puppet code which does not work with the
dnfmodule
provider but does work with this new type/provider?dnfmodule
does support profiles with theflavor
parameters. Are you stating that Puppet By Perforce has decided to depreciate the thednfmodule
provider?
No, the dnfmodule
provider is not on the chopping block. What I believe Emerson is trying to do is clarify intent and also to provide a more flexible way to configure the multitude that is DNF.
Is there any change of this PR being merged? This looks like the perfect solution for a problem managing appstream modules I'm having...
@Xazziri the failing tests need to be fixed before we can merge this.
@Xazziri the failing tests need to be fixed before we can merge this.
The previous state of these tests were some failure apparently not related to the changes, but now there seems to be quite more failures than before. Unfortunately, now the tests just say "The logs for this run have expired and are no longer available". Guess I need to provoke another run to get current status.
@bastelfreak Good news! Guess someone fixed something upstream, and the tests now pass! @jhoblitt Could you pls review this PR now?
@EmersonPrado thanks for the work! Can you please rebase and remove commit 555306209c3216de00aebe5d1f01971824b67b8e and 023df4179d048e5731189907e366588f75f1088d?
Pull Request (PR) description
This PR adds a custom resource to freely enable/disable streams in DNF modules. The provider supports 4 different stream spec formats:
:default
- Enables default stream:present
- Enables default stream if no stream is enabled, otherwise keep currently enabled one:absent
- Disables current enabled stream, if any (that is: resets the module)<String>
- Enables specified streamThis Pull Request (PR) fixes the following issues
Fixes #310
WIP: though it passes the very limited spec tests and my manual tests, I pushed this in a hurry. Need to review later without tired eyes.