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

Explicitly state FindOpenSCAP cmake so it loads before it's used. #12538

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

ggbecker
Copy link
Member

Description:

  • Sometimes it could happen that the OSCAP_VERSION was being used without being defined first. This makes sure that whenever the variables are attempted to be used, they are defined.

Fix a problem where cmake would define --schematron option even if the OSCAP would be greater or equal than 1.3.5.

Review Hints:

  • Since this seems to be a "race condition" type of problem, it's not that trivial to reproduce it. We'll be seeing this getting fixed in some productization runs.

Sometimes it could happen that the OSCAP_VERSION was being used without
being defined first. This makes sure that whenever the variables are
attempted to be used, they are defined.

Fix a problem where cmake would define --schematron option even if the
OSCAP would be greater or equal than 1.3.5.
@ggbecker ggbecker added the bugfix Fixes to reported bugs. label Oct 24, 2024
@ggbecker ggbecker added this to the 0.1.75 milestone Oct 24, 2024
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

@Mab879 Mab879 self-assigned this Oct 24, 2024
Copy link

codeclimate bot commented Oct 24, 2024

Code Climate has analyzed commit f2b9755 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 60.9% (0.0% change).

View more on Code Climate.

@ggbecker
Copy link
Member Author

It seems to have fixed the issue, for example:

      Start 40: validate-ssg-rhel10-ds.xml
40/42 Test #40: validate-ssg-rhel10-ds.xml .........................   Passed    0.34 sec

@Mab879 Mab879 merged commit 3b3fe36 into ComplianceAsCode:master Oct 25, 2024
103 of 104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes to reported bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants