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

[Code health] Include what you use cleanup, part 5 #3140

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

Conversation

marcalff
Copy link
Member

@marcalff marcalff commented Nov 13, 2024

Contributes to #2054

Changes

Please provide a brief description of the changes here.

  • continued the include-what-you-use cleanup
  • total number of warnings decreased from 37 in branch main, to 2 in this PR.
  • CI is now enforcing a pass/fail check, with some tolerance (<= 10 warnings)

Note that the cleanup is not completed, as some optional parts (OTLP GRPC) are not covered yet by the build in CI.
This will be handled in subsequent PRs.

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

netlify bot commented Nov 13, 2024

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 6c70301
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/6736984b777a0400099b2d5c

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.83%. Comparing base (497eaf4) to head (6c70301).
Report is 164 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3140      +/-   ##
==========================================
+ Coverage   87.12%   87.83%   +0.72%     
==========================================
  Files         200      195       -5     
  Lines        6109     6146      +37     
==========================================
+ Hits         5322     5398      +76     
+ Misses        787      748      -39     
Files with missing lines Coverage Δ
...telemetry/exporters/memory/in_memory_metric_data.h 100.00% <ø> (ø)
exporters/memory/src/in_memory_metric_data.cc 85.00% <ø> (ø)
...rs/memory/src/in_memory_metric_exporter_factory.cc 100.00% <ø> (ø)
...xporters/memory/test/in_memory_metric_data_test.cc 100.00% <ø> (ø)
...ters/memory/test/in_memory_metric_exporter_test.cc 100.00% <ø> (ø)
exporters/memory/test/in_memory_span_data_test.cc 100.00% <ø> (ø)
...orters/memory/test/in_memory_span_exporter_test.cc 100.00% <ø> (ø)
exporters/ostream/test/ostream_log_test.cc 96.18% <ø> (-0.04%) ⬇️
exporters/ostream/test/ostream_metric_test.cc 100.00% <ø> (ø)
exporters/ostream/test/ostream_span_test.cc 100.00% <ø> (ø)
... and 1 more

... and 106 files with indirect coverage changes

@marcalff marcalff marked this pull request as ready for review November 14, 2024 23:37
@marcalff marcalff requested a review from a team as a code owner November 14, 2024 23:37
@marcalff marcalff changed the title Include what you use cleanup, part 5 [Code health] Include what you use cleanup, part 5 Nov 14, 2024
@marcalff
Copy link
Member Author

@open-telemetry/cpp-contrib-approvers Ready for review.

@marcalff marcalff added the pr:please-review This PR is ready for review label Nov 14, 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.

1 participant