Skip to content

PREQ-10217 Discover Gradle publication artifact IDs from Maven paths - #443

Merged
tomverin merged 1 commit into
masterfrom
bugfix/tom/PREQ-10217-gradle-publications
Nov 10, 2026
Merged

tomverin merged 1 commit into
masterfrom
bugfix/tom/PREQ-10217-gradle-publications

Conversation

@tomverin

@tomverin tomverin commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Problem

PREQ-10217: sonar-plugin-api 14.3.0.5639 was promoted to Repox without a Maven Central bundle.

Confirmed against Repox build info for sonar-plugin-api/5639: module IDs contain Gradle project names (shared, test-fixtures, manifest, plugin-api), while the artifact filenames and Maven repository paths contain their published artifact IDs (sonar-plugin-api-shared, sonar-plugin-api-test-fixtures, sonar-plugin-manifest, sonar-plugin-api). The current filename parser consequently returns no artifacts.

Change

  • Group module artifacts by the published artifact ID from the Maven repository path, requiring the group, version and filename to agree with the module/artifact metadata.
  • Preserve module-ID discovery for extractors without Maven paths and the existing companion, classifier, POM-only and signature handling.
  • Require a filename separator after the artifact/version prefix, avoiding partial-prefix matches when validating publication paths.
  • Leave ARTIFACTS_TO_PUBLISH and binaries publication unchanged. Adding explicit artifacts to sonar-plugin-api would also change its binaries.sonarsource.com uploads because publishToBinaries is enabled.

Validation

  • All 243 Python tests pass on Python 3.12.
  • Regression coverage for all four sonar-plugin-api publications, Gradle metadata, multiple publications per project, invalid/missing paths, and private-group filtering in the Central download loop.
  • Replayed the real build-info module/artifact metadata locally: before = empty list; after = all four publications (plus the three declared Gradle metadata artifacts).
  • git diff --check passes.

Recovery still pending

This change does not publish the already-promoted version. Do not re-run the release. Use scripts/manual-maven-central-sync.sh sonar-plugin-api 5639 with configured JFrog CLI and a valid Vault session, then verify all four coordinates on Maven Central. Local Vault authentication currently fails with an invalid token; no Central deployment was created or published.

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

PREQ-10217

@gitar-bot

gitar-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Deriving Maven publication coordinates from repository paths changes release artifact selection; mismatches could omit or misidentify artifacts in Central bundles.

Discovers Gradle publication artifact IDs from Maven repository paths so sonar-plugin-api publications are found when module IDs differ from published artifact IDs. No issues found.

Verification Rules 1/2 met Knowledge ✅ 3 Repos 2 inspected · PRs 3 inspected
Rules 1 failed 1 passed 1 not applicable

❌ Internal artifact registries - Repo consumes packages directly from public PyPI (main/Pipfile source https://pypi.org/simple; pip install in build.yml and main/Dockerfile without Repox config); route through Repox api/pypi/sonarsource-pypi/simple. This is pre-existing and not introduced by this PR.
✅ Repository license compliance

Functional validation No results

Knowledge ✅ 3 expectations met

Expectation met Maven Central module artifact selection expectation met
Expectation met POM-only modules need a Central entry expectation met
Expectation met Parse artifact details from build-info filenames expectation met

Broader impact Repos 2 inspected PRs 3 inspected
Cross-repo 2 repositories inspected 0 open impacts

SonarSource/sonar-plugin-api Inspected
SonarSource/sonarqube-roslyn-sdk-template-plugin Inspected

Cross-PR 3 PRs inspected 0 open impacts

PR 359: Update SonarSource/sonar-plugin-api monorepo to v14.3.0.5639 Inspected
PR 8356: Update SonarSource/sonar-plugin-api monorepo to v14.3.0.5639 Inspected
PR 2441: Update dependency org.sonarsource.api.plugin:sonar-plugin-api to v14.3.0.5639 Inspected

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

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

@sonarqubecloud

Copy link
Copy Markdown

@tomverin
tomverin marked this pull request as ready for review November 10, 2026 09:49
@tomverin
tomverin requested a review from a team as a code owner November 10, 2026 09:49
@tomverin
tomverin merged commit 2c4ce7f into master Nov 10, 2026
23 checks passed
@tomverin
tomverin deleted the bugfix/tom/PREQ-10217-gradle-publications branch November 10, 2026 13:21
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