With multiple languages being used in ONAP we need to have support for code-coverage for all of them. Even though we use some common called SONAR for the PTLS to view the code coverage not all languages are supported. 

Since no one person will have the knowledge of tools and techniques in all the languages the plan we have is.

  1. Choose a pilot project for every language
  2. Work out a generic plan for that language which can be ported to all the projects under the same language
  3. Communicate the plan through ONAP discuss and the seccoom mailing list so that other projects with the same language can be sure that they can support it.
  4. Then the pilot project will implement the setup locally and then work with the PTL for the pilot project and LF to get the tools installed.

Responsibilities of the pilot project

  1. Come with a generic proposal to get the reports generated in SONAR.
  2. Come up with the tools and techniques that are required.
  3. Get the tools installed in LF.

We need to find a pilot project for all the languages if we need code coverage for that particular language. And having code coverage is a requirement for CII badging.

Benefits of being the pilot

The pilot project's recommendation and setup will be the one that is officially supported. So lead the way to get your preferred way of setup in.


This page is intended to capture the languages used in ONAP and the projects.

LanguagePilot ProjectDetails
Python
Clojure
ProjectContact
DCAE
JavascriptCLAMP
ProjectContact
Sparky
CLAMPPierre Close
Golang
ProjectContact
Multi VIM/Cloud
Secret Management Service

Kiran Kamineni

Code Coverage in Golang:

Golang already provides some tools for capturing code coverage and reporting it. We already do that in the golang merge builds.

See jenkins log for details. We also report the coverage in the project page. See here.

JavaN/A because sonar supports Java out of the box
C/C++
ProjectContact

AAF

PKCS11 based key protection

Kotlin
ProjectContact
CCSDKBrinda Santh Muthuramalingam
  • No labels

3 Comments

  1. I know that this great work is being done by the security committee, but this is not really the right place in the wiki for this page. This should be under Developing ONAP section. And I don't think there is anything special about any language so the title should just be "Languages used by ONAP".

    1. Hi Arash Hekmat I do agree, this can be beneficial to the whole community. But this page was created with an intent to get code coverage for all languages. And plans on how to do it. I will change the title and add more content to the plan. But once this list is complete, we can make a copy of it with the languages supported on the Developing ONAP

  2. Is there any plan to add code coverage support to Typescript in ONAP's sonar server?