Skip to content

[DO NOT MERGE] Demo ruling review-time survey - #6562

Closed
BartLucien wants to merge 1 commit into
masterfrom
demo/ruling-review-time-survey
Closed

BartLucien wants to merge 1 commit into
masterfrom
demo/ruling-review-time-survey

Conversation

@BartLucien

Copy link
Copy Markdown
Contributor

DO NOT MERGE. This draft PR is a temporary demonstration of the ruling diff review-time survey. No Jira ticket should be created for it.

  • Pins ruling-diff-comment to SonarSource/core-languages-tooling-public@d23bc854d3d4c58fae40d2058ba9f704f460dab3, the current head of romain/ap-1497.
  • Arbitrarily removes one S1128 finding from the Guava ruling baseline so the action has a concrete diff to display. This is intentionally not a valid analyzer change.
  • Disables the Pull Request Created Jira automation on this branch before the PR opens.
  • Grants issues: write so the action can add its survey reactions.

Expected result: one ruling diff comment ending with the review-time survey and five bot-added reactions, each initially counted as one. This demonstrates the branch as implemented; it does not implement an empty poll.

Validation: both workflow files parse as YAML, the modified SARIF parses as JSON and contains exactly one fewer finding, and git diff --check passes. Ruling tests were not run because the baseline change is intentionally artificial.

@github-actions

Copy link
Copy Markdown
Contributor

Ruling Diff Summary

Detected changes in 1 rule files: 1 issues removed, 0 issues added.

S1128 (java) on guava - 1 issues removed, 0 issues added

Removed src/com/google/common/cache/LocalCache.java (line 67, column 8, end column 27)

Remove this unused import 'java.util.Map.Entry'.
        62 | import java.util.AbstractQueue;
        63 | import java.util.AbstractSet;
        64 | import java.util.Collection;
        65 | import java.util.Iterator;
        66 | import java.util.Map;
>>>     67 | import java.util.Map.Entry;
                    ^^^^^^^^^^^^^^^^^^^
        68 | import java.util.NoSuchElementException;
        69 | import java.util.Queue;
        70 | import java.util.Set;
        71 | import java.util.concurrent.Callable;
        72 | import java.util.concurrent.ConcurrentLinkedQueue;

PR author and reviewer: how much active time did you each spend checking the ruling changes?
Click one reaction below. Count reading the diff/report and checking source; exclude waits and fixes.

👍 ≤5 min · 😄 >5–15 min · 🎉 >15–30 min · 😕 Didn’t check · 👀 >30 min

This survey is for validation purposes. It will be removed by the end of December 2026.

@gitar-bot

gitar-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
CI failed: The single finding for job 138352978502 shows only cache misses, warnings, and successful diff-report, artifact-upload, and cleanup steps, with no identifiable failing step. Its relationship to the PR is unclear, so no failure is attributed to the change; the full job log should be checked to confirm.

Overview

The single finding for job 138352978502 shows only cache misses, warnings, and successful diff-report, artifact-upload, and cleanup steps, with no identifiable failing step. Its relationship to the PR is unclear, so no failure is attributed to the change; the full job log should be checked to confirm.

Failures

No blocking failures were identified.

Summary

  • Change-related failures: 0
  • Infrastructure/flaky failures: 0
Code Review ✅ Approved 🔴 High risk

Adding issues: write gives the ruling workflow issue-mutation authority, so an action error could post unintended comments or reactions.

Adds a temporary demo of the ruling diff review-time survey by pinning ruling-diff-comment to a specific commit, removing one S1128 finding from the Guava ruling baseline, disabling the Jira PR-created automation, and granting issues: write for survey reactions. No issues found.

Verification Rules 3/4 met Knowledge ✅ 1 PRs 4 inspected
Rules 1 failed 3 passed 1 not applicable

❌ Approved GitHub Actions runners - Several workflows (releasability, PrepareNextIteration, mark-prs-stale, ToggleLockBranch, cleanup-cache, pr-cleanup, build.yml, ReleasabilityCheck, UpdateRuleMetadata) use retired sonar-xs-public runner labels; migrate them to sonar-xs or github-ubuntu-latest-s, per the internal GitHub Actions runners policy.
✅ Internal artifact registries
✅ Release secrets usage
✅ Repository license compliance

Functional validation No results

Knowledge ✅ 1 expectation met

Expectation met Ruling tests: JDK 21, submodule sources, not run locally expectation met

Broader impact PRs 4 inspected
Cross-PR 4 PRs inspected 0 open impacts

PR 115: AP-1497: Add review-time survey to ruling diff comments Inspected
PR 6558: JAVA-7382 Fix S1128 FPs when --release option shadows non-public members of JDK Inspected
PR 6550: AP-1498: Activate AI-enhanced ruling diff reviews Inspected
PR 6457: RC-354 Pin core-languages-tooling-public actions to the current master commit Inspected

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Tip

Comment Gitar fix CI or enable auto-apply: gitar auto-apply:on

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@datadog-sonarsource

Copy link
Copy Markdown

Pipelines

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 1 Pipeline job failed

Build | Ruling QA (warp-custom-ubuntu-24-04, without-sonarqube-project, LATEST_RELEASE)

View more details · View in GitHub Actions

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0dc72c5 | Docs | View more details | Give us feedback!

@sonarqube-next

Copy link
Copy Markdown
Contributor

@BartLucien BartLucien closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant