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

CI include-what-you-use #2629

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Conversation

marcalff
Copy link
Member

@marcalff marcalff commented Apr 5, 2024

Fixes #2052

Contributes to #2054

Changes

Please provide a brief description of the changes here.

  • Add an include-what-you-use build in CI
    • Upload the logs as an artifact, so warnings can be investigated
  • Cleanup for the following areas:
    • SDK, common library
    • SDK, traces library

Remaining work

The following is to be implemented later, once cleanup is completed:

  • Count the number of remaining iwyu warnings
  • Fail the build if there are unresolved warnings

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

Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.59%. Comparing base (497eaf4) to head (a17827b).
Report is 64 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2629      +/-   ##
==========================================
+ Coverage   87.12%   87.59%   +0.47%     
==========================================
  Files         200      188      -12     
  Lines        6109     5847     -262     
==========================================
- Hits         5322     5121     -201     
+ Misses        787      726      -61     
Files Coverage Δ
...lude/opentelemetry/sdk/common/global_log_handler.h 63.16% <ø> (-9.06%) ⬇️
...lude/opentelemetry/sdk/trace/random_id_generator.h 100.00% <ø> (ø)
sdk/include/opentelemetry/sdk/trace/tracer.h 100.00% <ø> (ø)
...k/include/opentelemetry/sdk/trace/tracer_context.h 100.00% <ø> (ø)
sdk/src/common/base64.cc 82.40% <ø> (ø)
sdk/src/common/env_variables.cc 98.53% <ø> (ø)
sdk/src/common/platform/fork_unix.cc 100.00% <ø> (ø)
sdk/src/resource/resource.cc 96.30% <ø> (ø)
sdk/src/resource/resource_detector.cc 100.00% <ø> (ø)
sdk/src/trace/batch_span_processor.cc 92.43% <ø> (ø)
... and 10 more

... and 56 files with indirect coverage changes

@marcalff marcalff marked this pull request as ready for review May 20, 2024 07:24
@marcalff marcalff requested a review from a team as a code owner May 20, 2024 07:24
@marcalff marcalff added the pr:please-review This PR is ready for review label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:please-review This PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] Add a include-what-you-use build
1 participant