You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/04/07 08:40:15 UTC

[PR] CAMEL-23274: Add incremental coverage to SonarCloud PR analysis [camel]

gnodet opened a new pull request, #22469:
URL: https://github.com/apache/camel/pull/22469

   [CAMEL-23274](https://issues.apache.org/jira/browse/CAMEL-23274)
   
   ## Summary
   
   Follow-up to #22468 (core coverage) and #22247 (incremental build rationalization).
   
   - Add per-module JaCoCo coverage for PR-affected components by reusing the incremental-build action with `-Dcoverage`
   - Add `jacoco:report` goal to the `coverage` profile in `parent/pom.xml` so each tested module generates its own XML report
   - Update `sonar.coverage.jacoco.xmlReportPaths` to include both per-module and aggregated report paths
   
   ## Coverage strategy
   
   | Scope | Approach | Report path |
   |---|---|---|
   | Core modules | Aggregated report via `coverage` module (camel-core tests exercise classes across camel-core-model, camel-core-processor, etc.) | `coverage/target/site/jacoco-aggregate/jacoco.xml` |
   | Components | Per-module reports (each component's tests cover its own classes) | `*/target/site/jacoco/jacoco.xml` |
   
   ## Dependencies
   
   - Depends on #22247 (incremental-build action)
   - Builds on #22468 (core coverage baseline)
   
   ## Test plan
   
   - [ ] Verify per-module JaCoCo reports are generated for tested components
   - [ ] Verify SonarCloud picks up both aggregated and per-module coverage data
   - [ ] Verify incremental-build works with `-Dcoverage` in MVND_OPTS


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23274: Add incremental coverage to SonarCloud PR analysis [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22469:
URL: https://github.com/apache/camel/pull/22469#issuecomment-4197691575

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `build-all`, `build-dependents`, `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23274: Add incremental coverage to SonarCloud PR analysis [camel]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on PR #22469:
URL: https://github.com/apache/camel/pull/22469#issuecomment-5059531208

   _Claude Code on behalf of @gnodet_
   
   @apupier Thanks for the question! The SonarCloud PR analysis results will show up in two places once this is merged and active on `apache/camel`:
   
   1. **PR quality gate status check** — a pass/fail check (`SonarCloud Code Analysis`) appears in the PR checks section, showing the quality gate result.
   2. **SonarCloud PR decoration** — SonarCloud posts a comment on each PR with a summary of new code coverage, duplications, and any issues detected.
   
   The reason you didn't see results on the test PR (https://github.com/gnodet/camel/pull/15) is that SonarCloud is configured only for the `apache/camel` organization project. The fork `gnodet/camel` doesn't have the `SONAR_TOKEN` secret or a SonarCloud project, so while the build step runs (producing coverage reports and compiled classes), the actual Sonar analysis step is skipped.
   
   Once this PR is merged into `apache/camel:main`, any new PR to `apache/camel` will get the full analysis visible directly on the PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23274: Add incremental coverage to SonarCloud PR analysis [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22469:
URL: https://github.com/apache/camel/pull/22469#issuecomment-4204631141

   <!-- ci-tested-modules -->
   :information_source: CI did not run targeted module tests (root project files changed).
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/24123216533)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org