User Details
- User Since
- May 5 2022, 12:10 PM (82 w, 3 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- PWangai-WMF [ Global Accounts ]
Wed, Nov 29
Tue, Nov 28
Tue, Nov 21
Wed, Nov 15
Mon, Nov 6
It seems to be working fine with our sonar scanner version. We can go ahead and update extensions Jenkins jobs.
Thank you @hashar I will monitor the codehealth jobs to ensure they are running smoothly.
Nov 1 2023
Oct 31 2023
It appears they are enforcing the minimum scanner version that can be used with Java 17 to be version 5.x. Although from limited research I have seen some who had scanner v4.8^ could run it in Java 17. We can only know for sure by trying after we have a Java 17 image available.
Oct 29 2023
As an aside, I've always wondered if there's any value in running code coverage via SonarCloud in addition to the bespoke CI job. The coverage generated by SonarCloud has several shortcomings such as:
- It's based on unit tests, and ignores integration tests
- It's not published on doc.wikimedia.org
- It doesn't work well with stacked patches
Oct 17 2023
@Aklapper : Thanks, I will make sure to add the project tags in future.
Sonar can use any node version as long as its not a deprecated version. Inherit from our standard node16 image seems like the most optimal way to go :)
Oct 12 2023
This issue has been resolved in T348724: Update sonar scanner node version from v14 to v16 .
Oct 9 2023
Oct 2 2023
Sep 28 2023
For the moment I have changed CheckUser's quality gate to not give coverage alerts until we figure out the coverage issues
One can set the path manually under the project settings (Your Project > Administration > General Settings > Languages > PHP > Tests and Coverage > Files)
Waiting for the next report to see if it picks up anything
not sure about this but pull request analysis seems to be available starting in Developer Edition, which is a paid version.
Sep 13 2023
Thank you. I have created a service.template file and it now picks buildservice as default. The tool seems to be running fine. I will mark this task as resolved :)
Hi, normally I build the image: toolforge build start https://gitlab.wikimedia.org/toolforge-repos/gitlab-sonarqubebot.git
Sep 12 2023
Sep 11 2023
Sep 5 2023
Aug 10 2023
Aug 1 2023
Jul 18 2023
Jul 10 2023
Jun 19 2023
Jun 12 2023
Violations are reported as comments on gitlab after each commit.
I am marking the task as resolved, Incase of questions or issues feel free to reopen the task or slack me.
Jun 7 2023
Feel free to mark the task as resolved
Jun 6 2023
May 31 2023
Thanks. The solution works fine. I will now mark the task as resolved.
May 29 2023
Or is it possible to write a script that creates the file manually and adds contents to the file every time a new build succeeds?
Thanks @dcaro . This build service is awesome !! :- ) I need to store my secret env variables in a file called .env , and when I shell into the build service and create the file manually, the moment I exit shell the file dissapears. When I pull the file through code update it works perfectly, but this file should not be accessible publicly, so when I remove it from git the moment new code builds the file will be removed as well. How should I go about this?
May 25 2023
Using the build service the image runs succesfully locally, So I followed the documetation in my tool's instance. The build succeeds because I get the following results
May 24 2023
Thank you @fnegri . I prefer to go ahead with the CloudVPS project as it will give me more room and freedom to experiment
May 22 2023
May 11 2023
May 9 2023
@pfischer Thanks for your help in making sure everything works correctly.
I am closing this task. I got the access I needed to the respective groups.
Step one is now complete. The next step will be creating a bot that reports violations as comments on gitlab after each commit
May 8 2023
May 4 2023
Currently working on search-platform group
I should be able to set this up next week once Release Eng. is done sorting out my Gitlab access
May 1 2023
Hi Gehel, I will setup a sonar template that can be imported for maven projects in Gitlab
Apr 11 2023
Apr 5 2023
This extension has only one test. The test is already in async mode . All I am going to do is update the dependencies.
Mar 30 2023
@Daimona It would be helpful if you looked at the test to see if we could find a permanent solution. When I run the test multiple times locally on my machine, it doesn't fail, but somehow in CI it keeps failing. I have tried different approaches, but none seem to be stable in CI. Reopening the task.
Hey @MarcoAurelio , I am working on stablising the few flaky tests that keep randomly failing.