Skip to content

[CI] Test installed headers for include errors #19543

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hageboeck
Copy link
Member

Add a new step to the CI. In this step, every installed header (except for TMVA) is checked for syntax errors.
If the header doesn't include all headers it depends on, this will provoke a compiler error. This means that this header works by accident, because it's included in another TU that was already including the relevant dependencies.
This is less aggressive than IncludeWhatYouUse, but still validates that all headers can be included standalone.

Add a script that checks all installed headers for syntax errors.
This tests if they can be included standalone.
@hageboeck hageboeck self-assigned this Aug 5, 2025
Copy link

github-actions bot commented Aug 5, 2025

Test Results

    21 files      21 suites   3d 11h 45m 44s ⏱️
 3 250 tests  3 250 ✅ 0 💤 0 ❌
66 527 runs  66 527 ✅ 0 💤 0 ❌

Results for commit d5ef6e68.

♻️ This comment has been updated with latest results.

- Use root-config to figure out the C++ standard to use. Fall back to 17
  if root-config fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant