Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add sonarcloud scanning #935

Closed
wants to merge 4 commits into from

Conversation

sawood14012
Copy link
Member

@sawood14012 sawood14012 commented Nov 23, 2023

Hi, Since JVM is a complex repo the sonar cloud automatic scan would not work and i would like to split it into 2 scans like this and 2 corresponding projects in sonar cloud

https://issues.redhat.com/browse/STONEBLD-1940
https://issues.redhat.com/browse/KONFLUX-737

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_JAVA }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=redhat-appstudio-1_jvm-build-service-java
Copy link
Collaborator

@rnc rnc Nov 23, 2023

Choose a reason for hiding this comment

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

This will end up running tests duplicating (and duplicating) work done in other workflows. Why can't a single workflow be used? Note also #936 which reduces the CI load somewhat (as well as fixing coverage reporting).

sonar.sourceEncoding=UTF-8

# Exclusions for copy-paste detection
sonar.cpd.exclusions=**/*test*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this only for the GoLang scanning? Can this be a hidden file or specified directly in the workflow?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes this is only for golang and this cannot be a hidden file i want this in the repo as i have for all the RHTAP repos

Copy link
Collaborator

Choose a reason for hiding this comment

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

@rnc
Copy link
Collaborator

rnc commented Nov 23, 2023

Will this cause the run to fail if the sonar run complains? i.e. can it be configured to notify only?

Copy link
Contributor

openshift-ci bot commented Apr 3, 2024

@sawood14012: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/jvm-build-service-in-repo-e2e 0e21b0f link true /test jvm-build-service-in-repo-e2e
ci/prow/jvm-build-service-e2e 0e21b0f link true /test jvm-build-service-e2e

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rnc rnc closed this Jun 5, 2024
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