Skip to content

SONARJAVA-7339 Record SemSitter server answers for the translator tests - #6555

Draft
rombirli wants to merge 1 commit into
rombirli/semsitter-frontend-translatorfrom
rombirli/semsitter-recorded-documents
Draft

rombirli wants to merge 1 commit into
rombirli/semsitter-frontend-translatorfrom
rombirli/semsitter-recorded-documents

Conversation

@rombirli

Copy link
Copy Markdown
Contributor

Stacked on #6553.

These files are not authored. They are answers a real SemSitter server produced for the two small sources next to them (Outer.java and Routes.java).

  • *.textproto is the protobuf document the server returned for that source
  • *.types.json is the type declarations the server returned for that source

SemSitterTranslatorTest replays those recordings, so the enum-constructor and annotation-value checks do not need a running server. Re-record the files when the server output changes. Do not edit them by hand.

Summary

  • Check in the recorded documents and type dumps for Outer and Routes (about 10,300 lines)
  • Replay them in SemSitterTranslatorTest

Test plan

  • SemSitterTranslatorTest

@hashicorp-vault-sonar-prod

Copy link
Copy Markdown
Contributor

SONARJAVA-7339

@rombirli
rombirli force-pushed the rombirli/semsitter-recorded-documents branch from 9155321 to 08dc1c9 Compare November 24, 2026 08:30
These textproto and types.json files are the server's output for Outer.java and Routes.java. They are recorded, not written by hand.
@rombirli
rombirli force-pushed the rombirli/semsitter-recorded-documents branch from 08dc1c9 to 14bf510 Compare November 25, 2026 19:06
@gitar-bot

gitar-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
CI failed: The Ruling Update and Notify job failed because the upstream ruling QA job was cancelled, leaving no artifacts to download. The analyzer attributes this to upstream CI cancellation rather than the SemSitter translator test fixture changes, though this is not a confirmed diagnosis beyond the supplied evidence.

Overview

The Ruling Update and Notify job failed because the upstream ruling QA job was cancelled, leaving no artifacts to download. The analyzer attributes this to upstream CI cancellation rather than the SemSitter translator test fixture changes, though this is not a confirmed diagnosis beyond the supplied evidence.

Failures

Ruling Update and Notify failed: upstream ruling QA cancelled, no artifacts downloaded (not related to PR)

  • Type: infrastructure
  • Affected jobs: 139444523903
  • Related to change: no
  • Confidence: high
  • Root cause: The job detected needs.ruling-qa.result as cancelled and set ruling-failed=true. The notification action then found zero artifacts and failed while syncing them (No artifacts were downloaded). The PR changes add SemSitter translator test fixtures; the supplied evidence does not connect those changes to the cancellation or ruling-artifact upload, so this appears to be an upstream CI cancellation rather than a failure caused by the PR.
  • Suggested fix: Rerun the workflow with the ruling QA jobs allowed to complete and upload their actual_* artifacts before the notification job runs. If the ruling jobs were cancelled intentionally, adjust the workflow so the notification step handles cancellation without requiring artifacts.

Summary

  • Change-related failures: 0
  • Infrastructure/flaky failures: 1
  • Recommended action: Rerun the workflow with the ruling QA jobs allowed to complete and upload their actual_* artifacts before the notification job runs. If the ruling jobs were cancelled intentionally, adjust the workflow so the notification step handles cancellation without requiring artifacts.
Code Review ✅ Approved 🟢 Low risk

The PR adds translator test fixtures and replay coverage only, leaving production behavior and interfaces unchanged.

Checks in SemSitter server recordings (textproto documents and type declarations) for the Outer.java and Routes.java test sources so SemSitterTranslatorTest can replay them without a running server. No issues found.

Verification Rules 2/3 met PRs 1 inspected
Rules 1 failed 2 passed 2 not applicable

❌ Repository license compliance - LICENSE.txt contains SONAR Source-Available License v1.0 text while the central exception for sonar-java expects LGPL-3.0 (pom.xml also declares SSALv1); confirm the intended license with the owners rather than rewriting legal text.
✅ Internal artifact registries
✅ Release secrets usage

Functional validation No results

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

PR 6553: SONARJAVA-7339 Parse with the SemSitter translator behind the feature flag 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

@sonarqube-next

Copy link
Copy Markdown
Contributor

Quality Gate failed Quality Gate failed

Failed conditions
305 New issues
27.1% Coverage on New Code (required ≥ 90%)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE SonarQube for IDE

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically

@github-actions github-actions Bot added the stale label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant