Skip to content

fix: update Jackson 2 and restore actual coverage reporting - #4

Merged
loong10k merged 2 commits into
mainfrom
fix/main-jackson-coverage
Nov 3, 2026
Merged

loong10k merged 2 commits into
mainfrom
fix/main-jackson-coverage

Conversation

@loong10k

@loong10k loong10k commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Main pins Jackson 2.17.2, and Surefire overwrites the JaCoCo agent argument, causing coverage reporting and checks to be skipped. Upgrade the Jackson 2 BOM/databind to 2.22.4 while retaining com.fasterxml.jackson APIs and JDK 17. Pass the coverage agent through a dedicated late-evaluated property with an empty fallback for direct Surefire calls.

Preserve whitespace-only stdout as a text node and add Jackson 2 scalar/null/malformed-output regressions.

Validation: JDK 17 clean verify: 557 tests, zero failures/errors/skips. Real line coverage is 1886/2295 (82.18%), below the unchanged 90% target. Existing haltOnFailure=false still warns; this is not coverage compliance. Direct surefire:test passes all 9 stdout parser tests without prepare-agent. Dependency tree resolves databind/core 2.22.4 and annotations 2.22 via the BOM.

Upstream security patch notes: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.22.4

@loong10k
loong10k marked this pull request as ready for review November 3, 2026 19:16
@loong10k
loong10k merged commit 673774a into main Nov 3, 2026
1 check passed
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.

1 participant