8000 Improve profile stability test by jan-cerny · Pull Request #13476 · ComplianceAsCode/content · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve profile stability test #13476

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

Merged

Conversation

jan-cerny
Copy link
Collaborator

Description:

This PR changes the format of profile stability data for the profile stability test. This test compares selections in resolved profiles against a static reference data. We will change the way the profile stability data is stored. Instead of the resolved YAML file, the files will now be plain text that contain a sorted list of profile selections, one selection per line. The test script is updated accordingly. The script enforces sorting of the reference data.

This PR also contains a one-off script for automated conversion of profile stability data. The script is added and then removed.

Rationale:

  • The test compares only profile selections. It isn't necessary to store other profile keys.
  • Changes in other keys or in whitespace cause noise in git diff that needs to be managed manually. The new format prevents these inconveniences.
  • Easier for manual updates.

jan-cerny added 4 commits May 19, 2025 09:20
The test will work with plain selections data as reference data.
This will prevent situations with shifted formatting, extra keys
and similar inconveniences in `git diff`.
Copy link
codeclimate bot commented May 19, 2025

Code Climate has analyzed commit 32a55a1 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 61.9% (0.0% change).

View more on Code Climate.

@Mab879 Mab879 self-assigned this May 19, 2025
@Mab879 Mab879 added this to the 0.1.77 milestone May 19, 2025
@Mab879 Mab879 merged commit 1791679 into ComplianceAsCode:master May 19, 2025
107 of 108 checks passed
@Mab879 Mab879 added the Infrastructure Our content build system label Jun 2, 2025
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
0