Skip to content
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

SRG Export XLSX in CMake #9811

Merged
merged 3 commits into from
Nov 15, 2022
Merged

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented Nov 11, 2022

Description:

This PR adds the ability to create the XLSX files from utils/create_srg_export from the build system.

Rationale:

This PR makes using the utils/srg_diff.py script much easier. Instead of running a four-step process (building, creating rule_dir_json, creating the SRG export, then creating the SRG Diff HTML report), this PR brings it to two steps (building the product and creating the SRG Diff HTML report).

Review Hints:

  • To activate the new build option, run a command like ADDITIONAL_CMAKE_OPTIONS="-DSSG_SRG_XLSX_EXPORT=ON" ./build_product -j9 rhel9

@Mab879 Mab879 added the Infrastructure Our content build system label Nov 11, 2022
@Mab879 Mab879 added this to the 0.1.65 milestone Nov 11, 2022
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

utils/rule_dir_json.py Outdated Show resolved Hide resolved
To make the script not output when used in things like the build system.
So that SRG diff creation process is taken from a four-step process to a two-step process.
@codeclimate
Copy link

codeclimate bot commented Nov 14, 2022

Code Climate has analyzed commit 2a10bef and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 47.2% (0.0% change).

View more on Code Climate.

Copy link
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 run the RHEL 9 build with the SSG_SRG_XSLX_EXPORT option turned on and I have found a generated XLSX export table.

@jan-cerny
Copy link
Collaborator

/packit test

@jan-cerny jan-cerny self-assigned this Nov 14, 2022
@Mab879
Copy link
Member Author

Mab879 commented Nov 14, 2022

/packit test

@jan-cerny
Copy link
Collaborator

The CI fail in Fedora rawhide is unrelated to this PR, it's caused by libxml2 ABI break, see https://bugzilla.redhat.com/show_bug.cgi?id=2139546

@jan-cerny jan-cerny merged commit ccc245d into ComplianceAsCode:master Nov 15, 2022
@Mab879 Mab879 deleted the srg_export_target branch November 15, 2022 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants