Add support for Fedora ELN#1840
Merged
kontura merged 2 commits intorpm-software-management:mainfrom Mar 5, 2026
Merged
Conversation
I'd like to start running tests on ELN as a precursor for RHEL 11 because we need to diverge RHEL 11 from Fedora (disabling modularity) and thus I want a test coverage. Adding Behave to a pip input file like this does not replace Behave we already install from RPM on Fedora. It's behaves as a fallback. (Behave as RPM will added later once ELN fixes rust compiler <fedora-eln/eln#461>.)
We compile the tested software according to %rhel RPM macro. To skip or condition tests correctly, we need to handle Fedora ELN as RHEL when evaluating behave tags. Old dection had these problems: distro.id() parses /etc/os-release. That file declares ELN in VARIANT constant, but distro.id() does not recognizes that (correctly because ELN is still a Fedora project). Also /etc/os-release does not contain the RHEL version. This patch overrides the distr.id() detection with querying RPM library for %rhel macro. The same what we use when building the software.
kontura
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'd like to start running tests on ELN as a precursor for RHEL 11 because we need to diverge RHEL 11 from Fedora (disabling modularity) and thus I want a test coverage.
This patch set corrects ci-dnf-stack to be able to build a container and to recognize Fedora ELN as RHEL.
I locally tested createrepo_c test suite to pass when built against ELN and minimization/content-resolver-input#1576 worked around by installing an expire plugin. After merging this change, I will start enabling CI for ELN in in createrepo_c repository. Then I will review and enable dnf5 suite for ELN.