Skip to content

CI: Add SonarCloud integration for abbenay - #106

Draft
Hrithik-Gavankar wants to merge 1 commit into
mainfrom
feat/sonar-cloud-integration
Draft

CI: Add SonarCloud integration for abbenay#106
Hrithik-Gavankar wants to merge 1 commit into
mainfrom
feat/sonar-cloud-integration

Conversation

@Hrithik-Gavankar

Copy link
Copy Markdown
Contributor

Summary

  • Add sonar-project.properties for SonarCloud analysis of the TypeScript monorepo (packages/daemon, packages/vscode).
  • Update CI to generate daemon coverage (lcov.info), upload it as a SonarCloud artifact, and store PR metadata for branch analysis.
  • Add a finalize workflow that runs after CI and uploads results to SonarCloud (same pattern as other Ansible DevTools repos, e.g. vscode-ansible).

SonarCloud project details

  • Organization: redhat-developer
  • Project key: redhat-developer_abbenay
  • Coverage: packages/daemon/coverage/lcov.info
  • CI secret required: CICD_ORG_SONAR_TOKEN_CICD_BOT

Blockers / follow-up

SonarCloud access for the redhat-developer org is required before this can fully work. A separate ticket has been raised to:

  • Create/import the redhat-developer/abbenay project in SonarCloud
  • Grant DevTools team access
  • Configure the CI token in GitHub Actions secrets

Until that is done, the finalize workflow is expected to fail.

Test plan

  • CI passes (lint-and-test, build, package-python)
  • Daemon coverage artifact (sonar-coverage) is uploaded
  • After SonarCloud access is granted, finalize workflow completes successfully
  • SonarCloud shows analysis results on the PR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant