SONARJAVA-6592 Use ruling-update action for automatic PR creation#5762
SONARJAVA-6592 Use ruling-update action for automatic PR creation#5762romainbrenguier wants to merge 4 commits into
Conversation
Code Review ✅ Approved 1 resolved / 1 findingsIntegrates automated ruling diff and notification workflows while optimizing test execution. The malformed JSON in java-S1448.json has been corrected, and no further issues were found. ✅ 1 resolved✅ Bug: java-S1448.json is invalid JSON (missing opening brace)
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 |
Ruling Diff SummaryDetected changes in 1 rule files: 12 issues removed, 0 issues added. S1488 (
|
08cf3c9 to
87da5e4
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5773 Please review and merge it into your branch. |
87da5e4 to
6ba94f6
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5773 Please review and merge it into your branch. |
6ba94f6 to
de666fc
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5773 Please review and merge it into your branch. |
Integrates the ruling-update-and-notify action to respond to Ruling QA failures. This job: - Runs after all ruling-qa matrix jobs complete - Only runs on pull requests - Posts ruling diff comments to PRs - Prepares for future fix PR creation (currently disabled) The sync-command needs to be implemented to download actual results from the ruling-qa job artifacts before enabling fix PR creation. Fix ruling-qa failure detection for matrix jobs Changed from checking contains(needs.ruling-qa.result, 'failure') to checking if needs.ruling-qa.result != 'success'. For matrix jobs, the result is only 'success' if ALL matrix jobs succeeded, otherwise it's 'failure'. Simplify ruling-update-notify workflow integration Removed complex sync-command - the action now handles artifact download automatically. The workflow just needs to specify the basic parameters. This makes integration much cleaner and easier to maintain. Simplify Ruling QA matrix to single job for testing Temporarily keep only one matrix item (without-sonarqube-project on sonar-m-public) to make testing of the ruling-update-notify action faster and simpler.
Delete workflow that duplicates what's done in build
Fix malformed JSON in ruling file
The file was missing the opening brace '{', causing JSON parse errors.
Fixed format:
- Before: "key": [values]...
- After: {"key": [values]...}
de666fc to
df079a0
Compare
|
❌ Ruling needs updating. A fix PR has been created: #5773 Please review and merge it into your branch. |
Code Review ✅ Approved 1 resolved / 1 findingsAutomates ruling synchronization and test notifications via a new CI job and optimizes CI cycles with updated test ignore annotations. The invalid JSON format in java-S1448.json has been resolved. ✅ 1 resolved✅ Bug: java-S1448.json is invalid JSON (missing opening brace)
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 |
|





Part of
Summary by Gitar
ruling-update-notifyjob to.github/workflows/build.ymlto automate ruling synchronization and failure notifications.java-S1448.jsonwithinits/ruling/src/test/resources/commons-beanutils/.java-S1234.jsontoits/ruling/src/test/resources/test-project/and removedits/ruling/src/test/resources/commons-beanutils/java-S1488.json.This will update automatically on new commits.