Skip to content

chore(codeql): honor XML reader switch annotations - #2668

Merged
thorstendb-ARM merged 1 commit into
mainfrom
chore/xmlreader-codeql-comments
Oct 22, 2026
Merged

thorstendb-ARM merged 1 commit into
mainfrom
chore/xmlreader-codeql-comments

Conversation

@thorstendb-ARM

Copy link
Copy Markdown
Contributor

Changes

Document the four intentional single-case BOM switches with
codeql[cpp/trivial-switch] comments and an extensibility rationale.
Extend the existing SARIF upload filter to honor accepted source suppressions
only for this rule in libs/xmlreader/src/XML_Reader.cpp.

Related to #2667.

Validation

Workflow YAML and 45 synthetic filter cases passed. Existing main SARIF output
remains unchanged; simulated annotations remove exactly the four intended findings.
Confirmation by a CodeQL run is pending.

Checklist

  • Filter behavior checked with targeted cases.
  • Manual testing: not required; executable C++ code is unchanged.
  • Security impact reviewed: filtering requires the exact rule, file and source suppression.
  • Documentation: rationale added beside the switches.
  • Dependencies and TPIP: unchanged.

@thorstendb-ARM
thorstendb-ARM marked this pull request as ready for review October 22, 2026 12:23
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Test Results

  5 files   -    40   39 suites   - 126   3m 38s ⏱️ - 10m 30s
185 tests  - 1 550  168 ✅  - 1 550  17 💤 ± 0  0 ❌ ±0 
509 runs   - 3 644  458 ✅  - 3 626  51 💤  - 18  0 ❌ ±0 

Results for commit 2cd6f3e. ± Comparison against base commit b6a936c.

This pull request removes 1550 tests.
CodeGenerator ‑ Check
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsDeviceLimitAtArchitectureBoundary/CA15
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsDeviceLimitAtArchitectureBoundary/CA5
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsDeviceLimitAtArchitectureBoundary/CA7
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsDeviceLimitAtArchitectureBoundary/CA9
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsDeviceLimitAtArchitectureBoundary/CM3
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsDeviceLimitAtArchitectureBoundary/CM33
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsLastSupportedInterrupt/CA15
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsLastSupportedInterrupt/CA5
CpuInterruptLimits/SvdInterruptTest ‑ AcceptsLastSupportedInterrupt/CA7
…

♻️ This comment has been updated with latest results.

@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.45%. Comparing base (b6a936c) to head (2cd6f3e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2668   +/-   ##
=======================================
  Coverage   87.45%   87.45%           
=======================================
  Files         207      207           
  Lines       33545    33545           
=======================================
  Hits        29336    29336           
  Misses       4209     4209           
Flag Coverage Δ
buildmgr-cov 89.51% <ø> (ø)
packchk-cov 80.09% <ø> (ø)
packgen-cov 88.66% <ø> (ø)
projmgr-cov 95.01% <ø> (ø)
svdconv-cov 74.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@thorstendb-ARM
thorstendb-ARM merged commit ef98267 into main Oct 22, 2026
105 checks passed
@thorstendb-ARM
thorstendb-ARM deleted the chore/xmlreader-codeql-comments branch October 22, 2026 13:52
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.

3 participants