]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18904 Add Performance QA task
authorJacek Poreda <jacek.poreda@sonarsource.com>
Mon, 27 Mar 2023 09:22:00 +0000 (11:22 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 4 Apr 2023 20:03:15 +0000 (20:03 +0000)
- Add new gradle module
- Add TestSuite
- Add AspectJ logic to store new measures

Co-authored-by: Eric Giffon <eric.giffon@sonarsource.com>
Co-authored-by: Antoine Vinot <antoine.vinot@sonarsource.com>
Co-authored-by: Alain Kermis <alain.kermis@sonarsource.com>
.cirrus.yml

index 9f0cddeecba0949d9b52b5733614dc38931601a9..6810006b2771e0f3a5b47a48e1428be7d76a60a8 100644 (file)
@@ -34,6 +34,9 @@ build_dependant_task_template: &BUILD_DEPENDANT_TASK_TEMPLATE
 nightly_task_template: &NIGHTLY_TASK_TEMPLATE
   only_if: $CIRRUS_BRANCH == $BRANCH_NIGHTLY
 
+master_and_nightly_task_template: &MASTER_AND_NIGHTLY_TASK_TEMPLATE
+    only_if: $CIRRUS_BRANCH == $BRANCH_NIGHTLY || $CIRRUS_BRANCH == $BRANCH_MAIN
+
 except_nightly_task_template: &EXCEPT_ON_NIGHTLY_TASK_TEMPLATE
   only_if: $CIRRUS_BRANCH != $BRANCH_NIGHTLY
 
@@ -391,6 +394,24 @@ qa_ha_task:
     - ./private/cirrus/cirrus-qa.sh postgres
   <<: *DEFAULT_ARTIFACTS_TEMPLATE
 
+qa_performance_task:
+  <<: *DEFAULT_TEMPLATE
+  <<: *BUILD_DEPENDANT_TASK_TEMPLATE
+  <<: *MASTER_AND_NIGHTLY_TASK_TEMPLATE
+  <<: *JAR_CACHE_TEMPLATE
+  <<: *GRADLE_CACHE_TEMPLATE
+  eks_container:
+    <<: *CONTAINER_TEMPLATE
+    cpu: 2.4
+    memory: 10Gb
+    additional_containers:
+      - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
+  env:
+    QA_CATEGORY: AnalysisPerformance
+  script:
+    - ./private/cirrus/cirrus-qa.sh postgres
+  <<: *DEFAULT_ARTIFACTS_TEMPLATE
+
 # GitLab QA is executed in a dedicated task in order to not slow down the pipeline, as a GitLab on-prem server docker image is required.
 qa_gitlab_task:
   <<: *DEFAULT_TEMPLATE