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

Add Include what you use #2214

Merged
merged 4 commits into from
Jul 5, 2023
Merged

Add Include what you use #2214

merged 4 commits into from
Jul 5, 2023

Conversation

esigo
Copy link
Member

@esigo esigo commented Jul 1, 2023

related to #2054 (issue)

Changes

Adds Include what you use to the CI jobs that use clang.
The CI will not fail, only warning messages will be added e.g. here.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@esigo esigo requested a review from a team July 1, 2023 14:20
@codecov
Copy link

codecov bot commented Jul 1, 2023

Codecov Report

Merging #2214 (40de7b7) into main (31f218c) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2214   +/-   ##
=======================================
  Coverage   87.51%   87.51%           
=======================================
  Files         169      169           
  Lines        4889     4889           
=======================================
  Hits         4278     4278           
  Misses        611      611           

see 2 files with indirect coverage changes

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as is.

This allows to see IWYU reports in the build logs, so we can start to take action and do some cleanup, even when reading logs to find issues is tedious (download the build log, search it).

Possible improvements, the CI most likely will need:

  • a way to filter out IWYU complaints on code we do not own (third party headers, generated protobuf code)
  • a way to summarize which file is / is not compliant, so that reading or searching logs is easier

This can be done later, once the code is cleaned up, so we can enforce a pass/fail result in CI.

Not sure if/how the github CI can report a warning, so it gets visibility in the overall build, and yet allow the build to pass.

Copy link
Member

@owent owent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@esigo esigo changed the title [RFC] Add Include what you use Add Include what you use Jul 4, 2023
@esigo esigo merged commit 5466c5b into open-telemetry:main Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants