Skip to content

[CI] build iwyu #3459

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

Merged
merged 3 commits into from
Jun 4, 2025
Merged

[CI] build iwyu #3459

merged 3 commits into from
Jun 4, 2025

Conversation

dbarker
Copy link
Member

@dbarker dbarker commented Jun 3, 2025

Fixes #3453

Build iwyu to upgrade to version 0.22 and fix the segfault.

Changes

  • adds an iwyu install script and uses it in the ci workflow and devcontainer
  • install grpc with apt on the iwyu ci runner
  • remove installing iwyu apt package elsewhere

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 Jun 3, 2025

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

Name Link
🔨 Latest commit 09e0dae
🔍 Latest deploy log https://app.netlify.com/projects/opentelemetry-cpp-api-docs/deploys/683f3dcd16ee5f0008e8496d

Copy link

codecov bot commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.89%. Comparing base (d2e7289) to head (09e0dae).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3459      +/-   ##
==========================================
+ Coverage   89.88%   89.89%   +0.02%     
==========================================
  Files         212      212              
  Lines        6942     6942              
==========================================
+ Hits         6239     6240       +1     
+ Misses        703      702       -1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marcalff
Copy link
Member

marcalff commented Jun 3, 2025

Looks good.

Suggested changes:

In iwyu.yml, in the count warning section, print the iwyu version.

In the same place, raise WARNING_LIMIT to 122, to make CI pass with warnings.

It seem recent versions of iwyu report different diagnostics, causing new warnings.

Assuming that the new diagnostics with a recent iwyu version are more accurate and corresponds to bugs fixed in the tool, we have no choice but comply with the updated diagnostics then.

Warnings to be cleaned in a separate PR, to get down to 0 again.

…yu in the devcontainer. Remove installing the apt package of iwyu
@dbarker dbarker marked this pull request as ready for review June 3, 2025 14:53
@dbarker dbarker requested a review from a team as a code owner June 3, 2025 14:53
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, thanks for the fix.

@marcalff marcalff merged commit 1ede230 into open-telemetry:main Jun 4, 2025
117 of 123 checks passed
@dbarker dbarker deleted the ci_build_iwyu branch July 10, 2025 16:44
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.

Segmentation fault in iwyu ci job
3 participants