Repository navigation
Conversation
2be191e to
4acb342
Compare
|
/pvf |
|
📊 Performance Validation complete Projects with unexpected PVF results:
|
14aad2f to
6bccb82
Compare
43c17ec to
e935883
Compare
e935883 to
9b032e2
Compare
9b032e2 to
afc6aad
Compare
|
/pvf |
|
📊 Performance Validation complete |
afc6aad to
33df63c
Compare
|
/pvf |
|
📊 Performance Validation complete |
3104146 to
4e971bf
Compare
4e971bf to
6a2208f
Compare
281a35c to
2fe9d92
Compare
2fe9d92 to
378df0b
Compare
378df0b to
9338562
Compare
9338562 to
58341e8
Compare
58341e8 to
c63cbae
Compare
|
/pvf |
|
@rombirli ❌ Your
|
c63cbae to
381a006
Compare
|
/pvf |
|
📊 Performance Validation complete |
|
…SonarQube Cloud use that frontend
…x-only bundled server
Code Review ✅ Approved 🔴 High risk 7 closed / 7 findingsAutomatically enabling bundled SemSitter for SonarQube Cloud and PVF changes parsing across those analyses and could alter results or fail runs on unsupported hosts. Bundles Linux amd64 and arm64 SemSitter servers and enables the SemSitter frontend for PVF and SonarQube Cloud analyses, failing rather than falling back to ECJ when the server cannot be used. Resolved the stale description about the flag and the shared /tmp re-copy on each configure, and corrected the flag-failure log message. No open issues remain. ✅ 7 closed✅ Quality: Description says the flag is no longer asked, but it still is
✅ Performance: Bundled server is re-copied to a shared /tmp path on every configure
✅ Quality: Flag-failure log now says ECJ is used when SemSitter is enabled
Closed: Bug: SONARCLOUD edition gate fails every non-Linux SonarQube Cloud scan
Closed: Performance: Each JVM leaves a new 20 MB server copy in ~/.sonar/semsitter
...and 2 more closed from earlier reviews Verification Rules 1/1 met Knowledge 🔎 1 Repos 4 inspected · PRs 4 inspectedFunctional validation No results Rules 1 passed 1 not applicable
Knowledge 🔎 1 informed a finding
Broader impact Repos 4 inspected PRs 4 inspectedCross-repo 4 repositories inspected 0 open impacts
Cross-PR 4 PRs inspected 0 open impacts
Auto-approval Not enabledFor more verification details, 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 |




Part 18 of 18 of JAVA-7392. Ticket: JAVA-7407.
DO NOT MERGE
Throwaway PR to run PVF with the SemSitter frontend on, on top of the whole stack.
JParserProvider.configure(Configuration, SonarRuntime), called byJavaSensor)udg-java-serverfor Linux amd64 and one for Linux arm64 are bundled, and extracted only during PVF (sensor.context.keyissonar.java.context) or on SonarQube Cloud (runtime editionSONARCLOUD, which is what the analysis-as-a-service reports). Other analyses, including ruling, stay on ECJSemSitterFlag.DEFAULTis unchanged (off)flowchart TD R[configure with runtime] --> X{executable configured?} X -->|yes| FL{flag on?} FL -->|yes| SS[SemSitterParser with that server] FL -->|no| ECJ[ECJ] X -->|no| G{PVF or SONARCLOUD edition?} G -->|no| FL2{flag on?} FL2 -->|yes| F[analysis fails: no executable] FL2 -->|no| ECJ G -->|yes| H{host Linux amd64 or arm64?} H -->|no or cannot extract| F2[analysis fails] H -->|yes| SB[SemSitterParser with the bundled server]Check it ran on SemSitter: the analyzer logs
The Java analyzer will use the SemSitter frontend with the bundled server <path>.once per analysis. The A3S benchmark on dev22 did not get SemSitter because the previous gate only knew PVF and x86_64, and A3S runs on arm64.The bundled binaries are the
linux-x86_64-muslandlinux-aarch64-muslrelease builds of a semsitter branch combining semsitter#5821 and semsitter#5018 on master (run 46429698527).The server is extracted to
~/.sonar/semsitter, or tojava.io.tmpdirwhen the home directory is missing or not writable (the case in the analysis-as-a-service, whereuser.homedoes not exist).sonar.java.internal.semsitter.fullSources(from the previous PR) is accepted here whenever the bundled server applies, since the bundled server turns the frontend on. Where there is no bundled server and the flag is off, it still fails the analysis.Summary by Gitar
BundledServershipping Linux amd64 and arm64 SemSitter servers, extracted for PVF or SonarQube CloudSemSitterParserProviderandJParserProvidersreceive theSonarRuntimevia newconfigureoverloadsonar.java.internal.semsitter.fullSourceswhen the bundled server appliesJavaSensorTestandSpringContextModelSensorTestdisabled, since the default runtime uses the Linux-only serversonar-java-pluginjar max size to 50000000 bytes to fit bundled binariesThis will update automatically on new commits.