Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11464

Only load files from Scanner Report

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6
    • Component/s: Compute Engine
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      Hide
      The new hierarchy of components includes potentially every intermediary directory (unless it only contains a single folder, in which case it is compressed).
      This means that there will typically be more components for the same project, and the average distance between files and the root will be bigger.
      Tests run with the sonarqube project:
      Before: 10728 components, average depth of 3.7
      After: 10759 components, average depth of 6.56.

      Since the number of components shouldn't increase a lot, the main impact is the update of live measures, since it depends on how deep in the tree the component being updated is.
      Show
      The new hierarchy of components includes potentially every intermediary directory (unless it only contains a single folder, in which case it is compressed). This means that there will typically be more components for the same project, and the average distance between files and the root will be bigger. Tests run with the sonarqube project: Before: 10728 components, average depth of 3.7 After: 10759 components, average depth of 6.56. Since the number of components shouldn't increase a lot, the main impact is the update of live measures, since it depends on how deep in the tree the component being updated is.

      Description

      We will no longer have modules in SonarQube, and instead we will aggregate data per file, and folders and for the entire project.

      To accomplish this, we will:

      • Only load files from the scanner report
      • Generate keys for the files that will be composed of the project key and the relative path to the base directory of the project.
      • Create the hierarchy of directories all the way up to the root of the project, based on the relative path of the files

      Due to the blue/green deployment of SonarCloud, we need to be prepared to process reports coming from scanners running before the update that drops modules.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                duarte.meneses Duarte Meneses
                Reporter:
                duarte.meneses Duarte Meneses
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: