Conversation
|
@nucleogenic Note that the sonar.cfamily.cache.enabled option is deprecated and will be removed with the next major SonarQube release. The SonarQube documentation contains the details. |
Hi @uweseimet, thanks for making me aware. I can see the deprecation notice in the SonarQube docs: Looking at the SonarCloud docs, this doesn't seem to be deprecated yet? I can't find any reference to the new properties being available for SonarCloud. |
3af406d to
b0e9455
Compare
|
@nucleogenic As far as I can tell SonarCloud is regularly updated with the latest SonarQube version. Since SonarCloud is a hosted SonarQube instance as far as properties are concerned they are those also supported by SonarQube. |
|
I tried introducing the new properties, but they were ignored. The scanner gives this output: (https://github.com/akuker/RASCSI/actions/runs/3435586763/jobs/5728119135) I also checked to see if we are using the latest scanner version, which we seem to be:
https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-cli/ I am not familiar enough with the SonarSource solutions to provide any further insight beyond we're not getting deprecation warnings at the moment. Regardless, it will be an easy change to make in the future. |
|
@nucleogenic I'm not sure whether I correctly understand: The respective option can become ineffective any time. When this happens, what is going to be the impact? If there is any impact, how will it be resolved, i.e. what is the easy change? |
|
@nucleogenic One more question regarding "Fixed broken/false positive C++ unit test execution step". What was broken here? I'm asking because I have not noticed anything that does not work with the C++ unit tests and the C++ code analysis. |
|
@uweseimet My current understanding is that the properties are not deprecated in SonarCloud yet. Can you provide a source to suggest otherwise? I can't find one. The properties can be renamed easily in the future, of course, when they are supported. Let me know if you have any concerns? |
|
@nucleogenic I would like to learn what is going to happen once these properties are not supported anymore. This can happen any time with a SonarCloud maintenance update. What will be the impact on the github action, and what has to be done in order to fix that? What does have to be renamed how? |
The new properties don't appear to be supported via SonarCloud yet, so it doesn't appear to be an option for us to update them right now. You could apply this argument to any feature of SonarCloud, of course.
The change would be: Interestingly, the docs state SonarQube defaults to
There isn't a deprecation notice - as far as I can see - in the SonarCloud documentation. Since SonarQube is in practice a separate offering, I think we can only make decisions based on the SonarCloud docs. |
See here (before): Vs here (after): When the command returned a non-zero exit code (e.g. command error, failing tests), GitHub Actions still reported the step as successful, because |
|
@nucleogenic Thanks a lot for elaborating on the SonarQube property issue and on the C++ analysis issue! Regarding SonarCloud, it is essentially a SonarQube instance, so anything related to SonarQube will also become relevant for SonarCloud, SonarCloud cannot be that different from SonarQube, because they are just running SonarQube in a special environment. This is quite similar to the relationship of Jenkins to CloudBees, for instance, the latter offering a multi-team solution on top of Jenkins. |
386bcc4 to
9bd0f9d
Compare
23bcbe8 to
be7bcff
Compare
…ud cache, introduce parallel execution where possible
be7bcff to
b481f74
Compare
|
Kudos, SonarCloud Quality Gate passed! |
|
Hi @akuker @uweseimet @rdmark, I am going to merge this PR now. If there are problems with the GitHub Actions workflows following these changes, please let me know and I will review ASAP. |
|
@nucleogenic There appears to be a problem, indeed: Github Actions does not show any running workflow after the merge. I would have expected the C++ build and code analysis to be run for the develop branch, just like before. |
|
Thanks @uweseimet, I agree. I've raised a draft PR for this, but will test on my fork to keep the PR history here clean. |










Introduction
This change set contains proposed changes to the GitHub Actions workflows for the project.
Changes
flake8andblackfor Python;stylelintandprettierfor CSS)Execution Behaviour
(Note: the paths in
on->pull_request->pathsare checked against all commits in the PR, not just the latest push.)Future Improvements
@nucleogenic-update-github-actionswith@developinbuild_code.yml