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

Set up Sonar #9847

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

Set up Sonar #9847

wants to merge 2 commits into from

Conversation

pdurbin
Copy link
Member

@pdurbin pdurbin commented Aug 29, 2023

DRAFT UNTIL WE ADD GITHUB ACTIONS

What this PR does / why we need it:

We'd like to set up Sonar to check pull requests.

Which issue(s) this PR closes:

Special notes for your reviewer:

We'll be adding GitHub Actions to do the equivalent of what I ran at tech hours:

export SONAR_TOKEN=xxxx
mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=IQSS_dataverse

@poikilotherm already set this up for us for the xoai library, for example: https://github.com/gdcc/xoai/blob/xoai-5.0.0/.github/workflows/build_test_analyze.yml#L38

Suggestions on how to test this:

Check if Sonar reports are updated.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No.

Is there a release notes update needed for this change?:

Not sure a release note is necessary.

Additional documentation:

No, but we should add some.

@github-actions

This comment has been minimized.

@bencomp
Copy link
Contributor

bencomp commented Aug 31, 2023

These properties were required to run this:

export SONAR_TOKEN=xxxx
mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=IQSS_dataverse
@coveralls
Copy link

Coverage Status

coverage: 19.969%. remained the same when pulling 2e6555f on 9846-sonar into ed81893 on develop.

@github-actions

This comment has been minimized.

@bencomp
Copy link
Contributor

bencomp commented Oct 5, 2023

@pdurbin no (specific) promises, but do you need help with this?

@pdurbin
Copy link
Member Author

pdurbin commented Oct 5, 2023

Yes! Well, to be more specific, this issue has not been prioritized so no one on the core team is actively working on it. If you'd like to help, that would be great! Perhaps we could start a topic about Sonar in #dev at https://chat.dataverse.org (Zulip).

@scolapasta
Copy link
Contributor

If you are still interested in this PR, can you please merge and resolve any merge conflicts with the latest from develop? If so, we can prioritize reviewing and QAing the changes. If we don’t hear from you by May 22, 2024, we’ll go ahead and close this PR (it can always be reopened after that date, if there is still interest).

Conflicts:
modules/dataverse-parent/pom.xml
@pdurbin
Copy link
Member Author

pdurbin commented Apr 24, 2024

@scolapasta I just resolved the merge conflicts. Please prioritize! 😄

Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:9846-sonar
ghcr.io/gdcc/configbaker:9846-sonar

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

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.

Set up Sonar
4 participants