[xwiki/xwiki-commons] 0e9de6: [Misc] Build only the modules a pull request chang...
Branch: refs/heads/sonar-pr-incremental Home: https://github.com/xwiki/xwiki-commons Commit: 0e9de6f62230f5b5b8db76dadf7287f26a94c581 https://github.com/xwiki/xwiki-commons/commit/0e9de6f62230f5b5b8db76dadf7287... Author: Vincent Massol <[email protected]> Date: 2026-08-27 (Thu, 27 Aug 2026) Changed paths: M .github/workflows/sonar-pr.yml Log Message: ----------- [Misc] Build only the modules a pull request changes in its SonarCloud analysis * Select the modules owning the files the pull request changes and pass them to the build and to sonar:sonar with -pl, instead of building and scanning the whole reactor. A pull request analysis reports on its own new code only and every condition of the XWiki quality gate is on a new code metric, so an untouched module can neither contribute an issue nor fail the gate. * Select every ancestor aggregator of a changed module along with it, and always select the root: sonar:sonar rebuilds the project tree out of the reactor and fails on an orphan module or on a reactor with no top level project. * Fall back to the whole reactor when the root pom or an aggregator pom changed. * Add the snapshot profile to the build, the modules left out of the selection now being downloaded rather than built. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-commons/settings/notifications
participants (1)
-
XWiki Notifications