-
Notifications
You must be signed in to change notification settings - Fork 0
Reduce Sonar Bugs from 37 to 0 (Quality Gate Recovery) #216
Description
Component
Other
Description
User Story
As a platform maintainer, I want to fix all current Sonar-reported bugs so that the framework passes the quality gate and remains stable for capability authors.
Business Value
Restores release confidence, lowers production risk, and prevents quality debt from growing across core engine and adapters.
Scope
Fix the currently reported 37 bugs in code covered by the quality gate, including required regression tests for each bug family.
Out of Scope
New features, refactors not tied to a bug fix, CI workflow redesign, and non-bug code smells unless directly required for bug resolution.
Acceptance Criteria
- Sonar Bugs metric is 0 for the main branch quality gate run.
- All fixed bugs are linked to tracked issue tickets.
- Each bug family includes at least one unit test and one integration/non-regression test.
- Full test suite passes in CI and locally (
mvn clean test --no-transfer-progress). - No increase in vulnerabilities; no breaking changes in public behavior.
Implementation Tasks
- Export and triage all 37 bugs by severity and root-cause family.
- Create bug tickets and map each Sonar issue to a ticket.
- Implement fixes in small PR batches by bug family (critical/high first).
- Add and run unit + integration tests per bug family.
- Re-run quality gate after each merge and track remaining bug count daily.
- Close tickets only after quality gate confirms resolution.
Definition of Done
- Quality gate passes with 0 bugs.
- All related tickets are resolved with linked PRs.
- Test coverage for changed paths is maintained or improved.
- Sprint demo includes before/after metrics (37 to 0) and regression evidence.
Estimate
8 story points (or 5-6 engineering days, depending on bug complexity and CI cycle time).
Risks
- Hidden coupling in engine modules may cause regression during fixes.
- Some Sonar findings may require broader architectural adjustments.
- CI cycle time can slow down iterative merge batches.
Risk Mitigation
- Fix by family in small PRs.
- Add regression tests before each fix.
- Run quality gate incrementally after each merged batch.
If you want, I can also produce this in a Jira-ready format with fields for Epic Link, Story Points, Labels, Components, and a pre-filled task checklist.Sprint Story Draft
Story Title
Reduce Sonar Bugs from 37 to 0 (Quality Gate Recovery)
User Story
As a platform maintainer, I want to fix all current Sonar-reported bugs so that the framework passes the quality gate and remains stable for capability authors.
Business Value
Restores release confidence, lowers production risk, and prevents quality debt from growing across core engine and adapters.
Scope
Fix the currently reported 37 bugs in code covered by the quality gate, including required regression tests for each bug family.
Out of Scope
New features, refactors not tied to a bug fix, CI workflow redesign, and non-bug code smells unless directly required for bug resolution.
Acceptance Criteria
- Sonar Bugs metric is 0 for the main branch quality gate run.
- All fixed bugs are linked to tracked issue tickets.
- Each bug family includes at least one unit test and one integration/non-regression test.
- Full test suite passes in CI and locally (
mvn clean test --no-transfer-progress). - No increase in vulnerabilities; no breaking changes in public behavior.
Implementation Tasks
- Export and triage all 37 bugs by severity and root-cause family.
- Create bug tickets and map each Sonar issue to a ticket.
- Implement fixes in small PR batches by bug family (critical/high first).
- Add and run unit + integration tests per bug family.
- Re-run quality gate after each merge and track remaining bug count daily.
- Close tickets only after quality gate confirms resolution.
Definition of Done
- Quality gate passes with 0 bugs.
- All related tickets are resolved with linked PRs.
- Test coverage for changed paths is maintained or improved.
- Sprint demo includes before/after metrics (37 to 0) and regression evidence.
Estimate
8 story points (or 5-6 engineering days, depending on bug complexity and CI cycle time).
Risks
- Hidden coupling in engine modules may cause regression during fixes.
- Some Sonar findings may require broader architectural adjustments.
- CI cycle time can slow down iterative merge batches.
Risk Mitigation
- Fix by family in small PRs.
- Add regression tests before each fix.
- Run quality gate incrementally after each merged batch.
If you want, I can also produce this in a Jira-ready format with fields for Epic Link, Story Points, Labels, Components, and a pre-filled task checklist.
Steps to Reproduce
Review the Sonar Bugs from the Quality Gate Recovery
Capability File (if relevant)
Logs & Stacktrace
Version
v1.0.0-alpha1
Runtime
JVM