Skip to content

SONARJAVA-6235 Update orchestrator to 6.1.0.3962#5552

Merged
tomasz-tylenda-sonarsource merged 6 commits intomasterfrom
tt/orchestrator-version
Apr 10, 2026
Merged

SONARJAVA-6235 Update orchestrator to 6.1.0.3962#5552
tomasz-tylenda-sonarsource merged 6 commits intomasterfrom
tt/orchestrator-version

Conversation

@tomasz-tylenda-sonarsource
Copy link
Copy Markdown
Contributor

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource commented Apr 7, 2026

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Update orchestrator to 6.1.0.3962 SONARJAVA-6235 Update orchestrator to 6.1.0.3962 Apr 7, 2026
@hashicorp-vault-sonar-prod
Copy link
Copy Markdown
Contributor

hashicorp-vault-sonar-prod bot commented Apr 7, 2026

SONARJAVA-6235

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource marked this pull request as ready for review April 9, 2026 11:24
@sonar-review-alpha
Copy link
Copy Markdown

sonar-review-alpha bot commented Apr 9, 2026

Summary

Orchestrator 6.1.0.3962 brings breaking API changes that required updates to test code. The orchestrator locator API changed from configuration.locators() to using the Locators class directly — this was updated in 3 test files (JavaClasspathTest, JavaTest, JavaRulingTest).

The guava test now compiles with Java 17 instead of Java 8, which triggers detection of additional rules (S5194, S6126, S6201, S6206, S6208, S6212, S6355, S7158, S7476) and updates to existing ones. New expectation files capture these additional findings. Two maven properties were added to work around Java 17 incompatibilities: maven-bundle-plugin.version 5.1.4 and animal.sniffer.skip=true. The its/sources submodule was updated to track changes from the ruling_java PR.

What reviewers should know

Where to start: Check the 3 test code changes first (JavaClasspathTest, JavaTest, JavaRulingTest) — they're small and show the orchestrator API refactoring. The JavaRulingTest change explains the Java 8→17 switch and properties added.

New expectation files: S6212 and S6201 are large (1489 and 241 lines). These are legitimate findings from Java 17 analysis, not bugs. Focus on whether the volume seems reasonable rather than line-by-line inspection.

Potential review focus: Verify the three test API changes are correct (Locators constructor takes configuration). Check that animal.sniffer.skip=true and maven-bundle-plugin.version are appropriate workarounds. Confirm the its/sources update aligns with the ruling_java PR mentioned in the description.


  • Generate Walkthrough
  • Generate Diagram

🗣️ Give feedback

sonar-review-alpha[bot]

This comment was marked as outdated.

sonar-review-alpha[bot]

This comment was marked as outdated.

Copy link
Copy Markdown

@sonar-review-alpha sonar-review-alpha bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ✅

Clean, focused dependency upgrade. The three code changes (two Locators instantiation fixes and the Guava ruling test properties) are the correct adaptations to Orchestrator 6.x's API and JDK 21 compatibility requirements. The ruling golden-file updates are the expected downstream effect of switching Guava's analysis target from Java 1.8 to 17 — broader semantic resolution surfaces more S4738/S6212 findings, and two new rule snapshots are added (S5194 and S7476).

🗣️ Give feedback

Copy link
Copy Markdown
Contributor

@aurelien-coet-sonarsource aurelien-coet-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource enabled auto-merge (squash) April 10, 2026 15:21
@sonarqube-next
Copy link
Copy Markdown

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource merged commit cd2465e into master Apr 10, 2026
13 of 14 checks passed
@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource deleted the tt/orchestrator-version branch April 10, 2026 15:36
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.

2 participants