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: check for clangd diagnostics #2344

Merged
merged 1 commit into from
Nov 6, 2023
Merged

ci: check for clangd diagnostics #2344

merged 1 commit into from
Nov 6, 2023

Conversation

Riolku
Copy link
Contributor

@Riolku Riolku commented Nov 3, 2023

This is a followup from #2340, which adds a check to CI for clangd diagnostics. It is added to GCC because clang is the slower of the two linux runners right now.

The script itself spawns clangd and speaks Language Server Protocol to it. We open files, and clangd returns diagnostics (if any). This enables a fairly straightforward way of checking an arbitrary number of source files for warnings/errors.

Simply use make clangd-diagnostics to run the tool. The variables CLANGD_DIAGNOSTIC_INSTANCES and NUM_THREADS control the parallelism.

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4194475) 90.24% compared to head (b1efab7) 90.25%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2344      +/-   ##
==========================================
+ Coverage   90.24%   90.25%   +0.01%     
==========================================
  Files        1011     1011              
  Lines       32308    32308              
==========================================
+ Hits        29156    29160       +4     
+ Misses       3152     3148       -4     
Files Coverage Δ
src/binder/bind/ddl/bind_create_rdf_graph.cpp 100.00% <ø> (ø)
src/include/common/null_mask.h 100.00% <ø> (ø)
src/include/storage/storage_info.h 100.00% <ø> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Riolku Riolku requested a review from mewim November 3, 2023 19:34
@Riolku Riolku force-pushed the no-clangd-diagnostics branch 5 times, most recently from 884245f to f28b88d Compare November 3, 2023 23:50
@Riolku Riolku marked this pull request as ready for review November 4, 2023 00:01
@Riolku Riolku force-pushed the no-clangd-diagnostics branch 2 times, most recently from 00bad2c to fd86404 Compare November 4, 2023 00:03
Copy link
Member

@mewim mewim left a comment

Choose a reason for hiding this comment

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

I made a small fix to the Dockerfile and redeployed all the Linux runners

@Riolku Riolku force-pushed the no-clangd-diagnostics branch 2 times, most recently from 8253466 to 960fb89 Compare November 6, 2023 16:00
This is a followup from #2340, which adds a check to CI for clangd
diagnostics. It is added to GCC because clang is the slower of the two
linux runners right now.

The script itself spawns clangd and speaks Language Server Protocol to
it. We open files, and clangd returns diagnostics (if any). This enables
a fairly straightforward way of checking an arbitrary number of source
files for warnings/errors.

Simply use `make clangd-diagnostics` to run the tool. The variables
`CLANGD_DIAGNOSTIC_INSTANCES` and `CLANGD_DIAGNOSTIC_JOBS` control the
parallelism.
@Riolku Riolku merged commit 843167c into master Nov 6, 2023
12 checks passed
@Riolku Riolku deleted the no-clangd-diagnostics branch November 6, 2023 16:32
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.

2 participants