SONARJAVA-6641 Fix ruling diff not working for some projects#5809
SONARJAVA-6641 Fix ruling diff not working for some projects#5809romainbrenguier wants to merge 4 commits into
Conversation
Ruling Diff SummaryDetected changes in 10 rule files: 0 issues removed, 10 issues added. S112 (
|
|
❌ Ruling needs updating. A fix PR has been created: #5810 Please review and merge it into your branch. |
Update ruling expectation for testing
590f014 to
98ddeba
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5810 Please review and merge it into your branch. |
…rver symlink - Change submodules checkout from 'true' to 'recursive' to include nested submodules (eclipse-jetty, eclipse-jetty-similar-to-main, eclipse-jetty-similar-to-main-small) - Add step to create symlink for sonar-server sources at expected location (its/sources/sonar-server -> sonarqube-6.5/server/sonar-server) This fixes the '(source file not found at this revision)' errors in ruling diff comments. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
❌ Ruling needs updating. A fix PR has been created: #5810 Please review and merge it into your branch. |
Point to core-languages-tooling-public@romain/read-sources-from-disk which reads source files from disk instead of git show, fixing support for nested submodules (eclipse-jetty) and non-standard layouts (sonar-server). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
❌ Ruling needs updating. A fix PR has been created: #5810 Please review and merge it into your branch. |
CI failed: Integration tests are failing due to discrepancies in analysis output and invalid pointer configurations, suggesting that recent changes to ruling logic or file-reading mechanisms have invalidated existing test expectations.OverviewMultiple integration test failures were observed across the FailuresRuling Diff Assertion Failure (confidence: high)
Invalid File Pointer Error in LITS (confidence: high)
Summary
Code Review ✅ ApprovedUpdates ruling diff CI workflows to use recursive submodules and correct symlink paths for the sonar-server subproject. Updated expected test resources align with current output requirements. Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |





This is to test the workflows.
Part of
Summary by Gitar
.github/workflows/ruling-diff-comment.ymlto usesubmodules: recursiveand create a symlink forsonar-serverto fix pathing issues.romain/read-sources-from-diskversion ofruling-diff-comment.60expectations across multiple JSON ruling files inits/ruling/src/test/resources/.This will update automatically on new commits.