Skip to content

Add a fedora-cis sanity test using Packit / Testing Farm#13903

Merged
jan-cerny merged 1 commit into
ComplianceAsCode:masterfrom
comps:fedora-cis
Sep 18, 2025
Merged

Add a fedora-cis sanity test using Packit / Testing Farm#13903
jan-cerny merged 1 commit into
ComplianceAsCode:masterfrom
comps:fedora-cis

Conversation

@comps
Copy link
Copy Markdown
Collaborator

@comps comps commented Sep 17, 2025

Description:

Add a simple remediation + remediation + scan test for CIS on Fedora, running on Testing Farm, using a Packit-built SSG RPM.

The .packit.yaml code churn is due to me renaming tests/tmt-plans to tests/tmt and then having a /plans/ and /tests/ under it, for tmt-specific plans and (fmf) tests.

Rationale:

As far as I understood, the idea is to use the profile (and a vendor-neutral distro like Fedora) to demonstrate https://github.com/complytime and its features, and to hopefully get wider adoption of the project.

I'm adding it as a non-Contest fmf test after some debates with @matusmarhefka, where we concluded that the cost of maintaining Fedora compatibility for a strictly RHEL-specific test suite would pose a significant maintenance overhead.

Doing it separately is not perfect (as we don't get any waiver logic, multi-test html reports, etc.) and any failing rules have to be either fixed during a PR that broke them, or "waived" by unselecting the entire rule (see an existing list inside the test), but it's probably still less work than trying to hack non-RHEL support to Contest.

Note the TODO in the test - currently, it PASSes no matter the found failures. This is to allow other PRs to fix the issues gradually, without a failing CI test being present for (potentially) many weeks.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Sep 17, 2025
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Sep 17, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@comps comps force-pushed the fedora-cis branch 3 times, most recently from 52e9bd2 to 0ed2a47 Compare September 17, 2025 20:55
@comps comps closed this Sep 18, 2025
@comps comps reopened this Sep 18, 2025
The .packit.yaml code churn is due to me renaming tests/tmt-plans
to tests/tmt and then having a /plans/ and /tests/ under it, for
tmt-specific plans and (fmf) tests.

Signed-off-by: Jiri Jaburek <comps@nomail.dom>
@comps comps marked this pull request as ready for review September 18, 2025 12:09
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Sep 18, 2025
@jan-cerny jan-cerny self-assigned this Sep 18, 2025
@jan-cerny jan-cerny added this to the 0.1.79 milestone Sep 18, 2025
@jan-cerny jan-cerny added Test Suite Update in Test Suite. CIS CIS Benchmark related. Fedora Fedora product related. labels Sep 18, 2025
Copy link
Copy Markdown
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

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

I have checked the produced HTML report of the testing farm jobs on all three Fedora versions.

@jan-cerny jan-cerny merged commit 9a866a8 into ComplianceAsCode:master Sep 18, 2025
135 of 136 checks passed
@comps comps deleted the fedora-cis branch September 30, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CIS CIS Benchmark related. Fedora Fedora product related. Test Suite Update in Test Suite.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants