Update CI and clang-tidy for BAM support#35
Conversation
AdityaPandeyCN
commented
Mar 15, 2026
- Add libhts-dev across CI jobs
- Move ROOT install into clang-tidy container via install_commands
- Disable false-positive checks for C interop (casting-through-void, reinterpret-cast, branch-clone, header-guard)
- Fix coverage excludes
|
The reason to move the ROOT install into the clang-tidy container was because I suspect the old way installed ROOT on the host at |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #35 +/- ##
===========================================
+ Coverage 55.85% 57.03% +1.17%
===========================================
Files 16 16
Lines 1425 1394 -31
Branches 752 625 -127
===========================================
- Hits 796 795 -1
Misses 521 521
+ Partials 108 78 -30
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
There was a problem hiding this comment.
Can you undo all whitespace changes ?
0ef0a71 to
c367f95
Compare
| -readability-function-cognitive-complexity, | ||
| -readability-implicit-bool-conversion, | ||
| -cppcoreguidelines-avoid-magic-numbers, | ||
| -cppcoreguidelines-pro-type-reinterpret-cast, |
There was a problem hiding this comment.
The commit message does not explain why we suppress these checks.
Add libhts-dev across CI jobs. Install ROOT inside clang-tidy Docker container since host /opt/ is not mounted in the review container. Fix coverage excludes and duplicate codecov token. Suppress clang-tidy checks incompatible with htslib C interop: - bugprone-branch-clone: false positive on switch cases with different signedness casts (int8_t vs uint8_t) - bugprone-casting-through-void: htslib bam_aux_append requires casting typed pointers to const uint8_t* through const void* - cppcoreguidelines-pro-type-reinterpret-cast: unavoidable when converting between htslib byte buffers and typed pointers - llvm-header-guard: generates guard macros from CI container absolute path (/github/workspace/...) instead of project-relative Signed-off-by: AdityaPandeyCN <adityapand3y666@gmail.com>
c367f95 to
e10090c
Compare
|
@vgvassilev Please have a look. |
|
How |
|
For |
That was a valid issue in the code. You should have fixed your code. In case of bugs we do not suppress the checks but can add a NOLINT comment for the relevant occurrence. |
|
Apologies for this, have reverted back the suppression |