Skip to content

Add support for Fedora ELN#1840

Merged
kontura merged 2 commits intorpm-software-management:mainfrom
ppisar:behave_on_eln
Mar 5, 2026
Merged

Add support for Fedora ELN#1840
kontura merged 2 commits intorpm-software-management:mainfrom
ppisar:behave_on_eln

Conversation

@ppisar
Copy link
Contributor

@ppisar ppisar commented Mar 4, 2026

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.

ppisar added 2 commits March 4, 2026 14:42
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.
@ppisar ppisar marked this pull request as ready for review March 4, 2026 14:36
@ppisar ppisar requested a review from pkratoch March 4, 2026 14:39
@kontura kontura merged commit 93869ee into rpm-software-management:main Mar 5, 2026
12 of 13 checks passed
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.

2 participants