Timeline of events (These are still under discussion with the community and might change. Please look at the comments)
- Update oparent to remove SonarQube plugin and configure Jacoco https://gerrit.onap.org/r/#/c/oparent/+/98687/ (ETA Nov 22)
- Make an oparent release wit this change (ETA Nov 22)
- Present the teams with next steps to complete the table below (ETA Nov 25)
Task | Add SonarCloud variables in project's yaml files | Sandbox test | Review results | Comment on progress |
---|---|---|---|---|
Responsible | RelEng | Releng | PTL | |
Estimated Duration | 5 min | 15 min to 1 hr depending | 10 min per report | |
AAF | https://gerrit.onap.org/r/#/c/ci-management/+/98542/ | PASS | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | |
AAI | https://gerrit.onap.org/r/c/ci-management/+/98544 | PASS | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | |
APPC | https://gerrit.onap.org/r/c/ci-management/+/98545 | failed | CCSDK parent needs to migrate first | |
CCSDK | https://gerrit.onap.org/r/c/ci-management/+/98546 | most pass | Working with Dan to migrate ccsdk-parent | |
CLAMP | https://gerrit.onap.org/r/#/c/ci-management/+/98543/ | 1/2 pass | Tested and working for JDK13 but having issues with JavaScript (Contacted Sonar team) | |
CLI | https://gerrit.onap.org/r/c/ci-management/+/98547 | PASS | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | |
DCAE | https://gerrit.onap.org/r/c/ci-management/+/98548 | most failed | ||
Demo | https://gerrit.onap.org/r/#/c/ci-management/+/98549/ | fail | ||
DMAAP | https://gerrit.onap.org/r/#/c/ci-management/+/98550/ | fail | ||
ExtAPI | https://gerrit.onap.org/r/#/c/ci-management/+/98551/ | fail | ||
Holmes | https://gerrit.onap.org/r/#/c/ci-management/+/98552/ | fail | ||
Integration | No Sonar jobs to migrate | |||
Logging | https://gerrit.onap.org/r/#/c/ci-management/+/98554/ | fail | ||
Modeling | https://gerrit.onap.org/r/#/c/ci-management/+/98553/ | fail | ||
MSB | https://gerrit.onap.org/r/#/c/ci-management/+/98555/ | fail | ||
MultiCloud | https://gerrit.onap.org/r/#/c/ci-management/+/98556/ | fail | ||
Music | https://gerrit.onap.org/r/#/c/ci-management/+/98557/ | Pass | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | |
OOF | https://gerrit.onap.org/r/#/c/ci-management/+/98558/ | most fail | ||
OOM | No Sonar jobs to migrate | |||
O-parent | No Sonar jobs to migrate | |||
Policy | https://gerrit.onap.org/r/#/c/ci-management/+/98559/ | PASS | DONE | COMPLETED |
Portal | https://gerrit.onap.org/r/#/c/ci-management/+/98560/ | PASS | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | |
Portal SDK | https://gerrit.onap.org/r/#/c/ci-management/+/98568/ | PASS | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | 'npm install' failed which also fails |
SDC | https://gerrit.onap.org/r/#/c/ci-management/+/98561/ | most pass | ||
SDNC | https://gerrit.onap.org/r/#/c/ci-management/+/98562/ | PASS | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | |
SO | https://gerrit.onap.org/r/#/c/ci-management/+/98563/ | PASS | Gerrit ready, SonarCloud results pushed and waiting on committers to +1 my change if all looks ok | |
UUI | https://gerrit.onap.org/r/#/c/ci-management/+/98564/ | fail | ||
VFC | https://gerrit.onap.org/r/#/c/ci-management/+/98565/ | fail | ||
VID | https://gerrit.onap.org/r/#/c/ci-management/+/98566/ | PASS | Tech team to compare reports: SonarQube: https://sonar.onap.org/dashboard?id=org.onap.vid%3Avid-parent SonarCloud: https://sonarcloud.io/dashboard?id=onap_vid | Waiting on Tech team to review reports. |
VNFSDK | https://gerrit.onap.org/r/#/c/ci-management/+/98567/ | most pass | ||
VVP | https://gerrit.onap.org/r/#/c/ci-management/+/98569/ | fail |
SonarCloud migration notes
Ready to migrate? Things to consider and challenges faced with the currently migrated teams
- Teams will still be using the same Jenkins jobs
- SonarCloud is based on SonarQube 8.0 with +- some feature and plugin differences
- SonarQube will stay around for some time, but eventually will be deprecated (mid next year)
- Warnings in Quality Gates are no longer applicable in SonarCloud
- Teams using the "org.sonarsource.scanner.maven" plugin, might face issues during the migration since this plugin calls SonarQube directly.
- Releng will report these issues from the testing
- Teams will need to disable this plugin and configure jacoco like ODL does https://github.com/opendaylight/aaa/blob/master/pom.xml#L58-L93
- APPC example of this: https://gerrit.onap.org/r/#/c/appc/+/98197/
Changes needed to be done and stakeholders
RELENG: Modify project's yaml files to run Sonar on SonarCloud
RELENG: Test new runs in Sandbox and report failures
TECHTEAM: If failures are reported from the test, techteams help will be needed (Most likely related to dependencies and SonarQube specific plugins in the source)
TECHTEAM: Once test passes, review the final report and +1 Releng ci-management change
RELENG: Merge ci-management change
Testing the migration
The reports will now be posted under: https://sonarcloud.io/organizations/onap/projects
Jenkins jobs do not change.