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

Setup CMakePresets.json #1840

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Setup CMakePresets.json #1840

wants to merge 6 commits into from

Conversation

Molter73
Copy link
Collaborator

@Molter73 Molter73 commented Sep 11, 2024

Description

A few basic presets have been setup, allowing to compile collector in release or debug mode, as well as using sanitizers and valgrind. CMakeUserPresets.json can be used to add other dedicated presets that people could need. Where possible, presets are now being used, sometimes providing other definitions that could be needed. In order to prevent presets from being broken by future changes, a schema validation pre-commit hook has been added that should also be enforced in CI.

Lastly, some option directives have been added to
collector/CMakeLists.txt as an additional effort to have a centralized place for these to be defined and provide default values for them.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

  • Run konflux build.
  • Check all jobs using the new presets work as intended.

@Molter73 Molter73 requested a review from a team as a code owner September 11, 2024 09:28
@Molter73 Molter73 added the konflux-build Run Konflux in PR. Push commit to trigger it. label Sep 11, 2024
A few basic presets have been setup, allowing to compile collector in
release or debug mode, as well as using sanitizers and valgrind.
CMakeUserPresets.json can be used to add other dedicated presets that
people could need. Where possible, presets are now being used, sometimes
providing other definitions that could be needed. In order to prevent
presets from being broken by future changes, a schema validation
pre-commit hook has been added that should also be enforced in CI.

Lastly, some option directives have been added to
collector/CMakeLists.txt as an additional effort to have a centralized
place for these to be defined and provide default values for them.
@Molter73
Copy link
Collaborator Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
konflux-build Run Konflux in PR. Push commit to trigger it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant