-
Notifications
You must be signed in to change notification settings - Fork 613
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
SonarCloud Analysis broken by recent update to sonar-scanner #1646
Comments
Addresses AcademySoftwareFoundation#1646 Signed-off-by: Cary Phillips <[email protected]>
Addresses #1646 Signed-off-by: Cary Phillips <[email protected]>
Hopefully resolved by #1647, thanks for the catch! |
I made the change and re-ran the analysis manually and it still failed. Any clue what's causing this? https://github.com/AcademySoftwareFoundation/openexr/actions/runs/8089544793/job/22105597370 |
The issue may be caused by running this job in the ci-openexr:2022 container which has too old a version of the Sonar client installed. Unfortunately releasing older versions of these containers to update the Sonar plugin would be a lot of work. In the CI WG we've discussed getting rid of the plugin completely to avoid this issue. Fortunately there's a reusable workflow to install the current Sonar plugin, OIIO uses it: Adding this to your analysis workflow should hopefully do the trick. |
…Foundation#1647) Addresses AcademySoftwareFoundation#1646 Signed-off-by: Cary Phillips <[email protected]>
Addresses #1646 Signed-off-by: Cary Phillips <[email protected]>
SonarCloud analysis for OpenEXR last succeeded in uploading results on 2024-01-13:
https://sonarcloud.io/project/overview?id=AcademySoftwareFoundation_openexr
The issue seems to be caused by the deprecation of the
sonar.login
parameter:https://github.com/AcademySoftwareFoundation/openexr/actions/runs/7945073818/job/21691265142
The documentation as well as OpenImageIO's analysis workflow indicates that it isn't necessary to set the token on the CLI, it should be sufficient to set the
SONAR_TOKEN
environment variable whichanalysis_workflow.yml
already does.Removing
-Dsonar.login=$SONAR_TOKEN
from thesonar-scanner
command line should hopefully be sufficient to restore the functionality of uploading results back to the SonarCloud site.A similar issue exists for Imath and I'll open an Issue agains that project as well.
The text was updated successfully, but these errors were encountered: