[AAASM-3962] 🔧 (ci): Align Codecov & SonarCloud coverage report set#200
Conversation
Codecov had no ignore while sonar.coverage.exclusions excludes agent_assembly/types.py, so the two tools measured different scopes. Add the matching Codecov ignore so both share one coverage denominator. Refs AAASM-3962
Record that both tools consume the same pytest-cov coverage_*.xml set and that any residual coverage-% delta is engine-level, not a regression, and note the codecov.yml/sonar exclusion lockstep. Refs AAASM-3962
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Claude Code — PR review CI state: 🟢 GREEN. 17/17 checks passed, 0 failed (unit + integration builds, both CodeQL analyses, Scope vs AAASM-3962 (Epic AAASM-3959): All AC met.
Side effects: None. Ready to merge? YES — CI fully green, both AC satisfied, config-only change with no behavioral risk. (Pending the required ≥1 Pioneer-team approval, which is the only remaining gate.) |



Description
Align the Codecov and SonarCloud coverage measurement scope for python-sdk.
Both tools already consume the same coverage report set — the pytest-cov
coverage_*.xmlfiles produced from.coveragerc. In CI, thesonarcloud_finishjob scans the downloaded
coverage_all-test.xml(matched bysonar.python.coverage.reportPaths=coverage*.xml), and the external reusableworkflow uploads the same per-suite
coverage_*.xmlfiles to Codecov. The reportsource was therefore already aligned; the only gap was that
codecov.ymlhad noignorewhilesonar.coverage.exclusions=agent_assembly/types.pyexcludes thatpath, so the two tools measured different denominators.
Changes:
🔧 (config): addignore: ["agent_assembly/types.py"]tocodecov.yml,mirroring
sonar.coverage.exclusions.📝 (config): document insonar-project.propertiesthat both tools consume thesame
coverage_*.xmlreport set, and that any residual coverage-% delta isengine-level (SonarCloud analyzer vs coverage.py line counting), not a regression.
No report-path-alignment commit was needed: the produced report files are already
the shared source both sides read.
Type of Change
Breaking Changes
Related Issues
Closes AAASM-3962
Testing
Config-only change to CI coverage tooling scope. Validated both files parse
(
yaml.safe_loadforcodecov.yml; properties file is comment/value edits only).Checklist