Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5427

Provide code quality/coverage metrics with SonarCloud and JaCoCo

    XMLWordPrintableJSON

Details

    Description

      Provide code quality and coverage metrics for the master branch and every PR to facilitate code reviews, improve security, and protect against regressions by exploiting SonarCloud and JaCoCo.

      SonarCloud is popular platform for providing code quality insights and widely used by ASF projects.

      JaCoCo relies on instrumentation via a java agent to gather code coverage information while running tests.

      The integration in the Calcite build can be done via Gradle plugins and the analysis will be triggered automatically via GitHub actions. Appropriate configuration properties will be added ensure that local builds will not be impacted.

      Initially, the code quality metrics will have purely informational character and will be at the discretion of the reviewer to enforce or ignore them.

      Later on, we can decide and agree on code quality gates which can be enforced automatically by SonarCloud and JaCoCo. It is possible to enforce things mostly at CI level but certain things can also be applied on local builds.

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m