Skip to content

Add debt-scan tooling script for technical debt triage#18003

Closed
xiangfu0 wants to merge 2 commits intoapache:masterfrom
xiangfu0:cleanup-debt-scan-tooling
Closed

Add debt-scan tooling script for technical debt triage#18003
xiangfu0 wants to merge 2 commits intoapache:masterfrom
xiangfu0:cleanup-debt-scan-tooling

Conversation

@xiangfu0
Copy link
Copy Markdown
Contributor

Summary

  • Add scripts/debt-scan.sh for automated technical debt scanning
  • Counts TODO/FIXME per module in main source Java files only
  • Excludes test resources, fixtures, example data, and non-code files
  • Highlights TODOs lacking issue references (e.g., TODO(PINOT-...))
  • Produces a clean per-module summary table with -h help flag

Sample output

Module                                       TODO    FIXME  Untracked
pinot-controller                              120        2        120 ⚠
pinot-core                                    170        0        168 ⚠
pinot-segment-local                           134        3        134 ⚠
...
TOTAL                                         840        6        838

Test plan

  • Script runs without errors on the repo
  • Output matches manual grep spot-checks
  • Exclusion patterns correctly filter test resources and fixtures

🤖 Generated with Claude Code

Pinot Cleanup Agent and others added 2 commits March 27, 2026 02:43
Add scripts/debt-scan.sh that produces a per-module summary of TODO and
FIXME comments in main source code, excluding test resources, fixtures,
and non-code files. The script highlights TODOs without issue references
to help prioritize cleanup work.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.36%. Comparing base (ba0c0e0) to head (20420c9).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #18003   +/-   ##
=========================================
  Coverage     63.36%   63.36%           
  Complexity     1543     1543           
=========================================
  Files          3200     3200           
  Lines        194114   194114           
  Branches      29893    29893           
=========================================
+ Hits         122993   123010   +17     
+ Misses        61461    61440   -21     
- Partials       9660     9664    +4     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-11 63.29% <ø> (+0.02%) ⬆️
java-21 63.30% <ø> (-0.01%) ⬇️
temurin 63.36% <ø> (+<0.01%) ⬆️
unittests 63.36% <ø> (+<0.01%) ⬆️
unittests1 55.50% <ø> (-0.02%) ⬇️
unittests2 34.30% <ø> (+0.02%) ⬆️

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xiangfu0 xiangfu0 closed this Mar 27, 2026
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