Merge unit and smoke-test coverage in CI #531
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 313 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #531"
general
weight: 0.35
jonbartels
CI already ran the unit tests with JaCoCo (
-Pcoverage=true), but the data stayed inside the Docker builder image. This PR exports it, records coverage of the server while the smoke tests run, and merges both into a single report, published as theCoverage Reportartifact. Coverage is off onmain, as before.Changes
stageCoveragegathers the unit-test.execfiles, the JaCoCo agent and the CLI intobuild/coverage. The Dockerfile exports that folder with the test results.ci/coverage.compose.ymlattaches the agent to the server whenJACOCO_AGENTis set.configure-from-envsplitsVMOPTIONSon commas, so the agent gets onlydestfileand records every class. The report is limited to our own jars.ci/run-configuration.shstops the server with a 120s timeout beforedown, so the agent can write its data on shutdown. Java is PID 1 through theexecchain, so it receives the SIGTERM.ci/coverage-report.shmerges all the data against the distribution jars the smoke tests ran. It fails if any of the inputs are missing.coveragejob merges them.verification-metadata.xmlregenerated on a cold cache with CI's flags.Sonar
./gradlew sonar -Dsonar.host.url=... -Dsonar.token=...analyzes the project with the merged report (build/coverage/report/coverage.xml). The URL and token stay on the command line. Every module points at that report, because otherwise JaCoCo's per-module default overrides it. The project key defaults tooieand can be changed with-Dsonar.projectKey. SonarCloud also needs-Dsonar.organization.ci/coverage-report.shnow works on the local build layout, so anyone can produce the report (steps inci/README.md). The CI job lays its artifacts out the same way.Testing
build dist stageCoverage -PdisableSigning=true -Pcoverage=truepasses dependency verification.🤖 Generated with Claude Code