This is an automated email from the ASF dual-hosted git repository.
mmuzaf pushed a commit to branch ignite-2.15
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/ignite-2.15 by this push:
new b6e28d860f9 IGNITE-19266 Use maven_opts for sonar analysis (#10636)
b6e28d860f9 is described below
commit b6e28d860f977ea95582772565ffbc212b88ac4e
Author: Maxim Muzafarov <[email protected]>
AuthorDate: Mon Apr 10 16:26:59 2023 +0300
IGNITE-19266 Use maven_opts for sonar analysis (#10636)
---
.github/workflows/sonar-branch.yml | 6 +++---
.github/workflows/sonar-pr-from-fork.yml | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/sonar-branch.yml
b/.github/workflows/sonar-branch.yml
index 6a8628c5360..f7a4c98914f 100644
--- a/.github/workflows/sonar-branch.yml
+++ b/.github/workflows/sonar-branch.yml
@@ -23,9 +23,6 @@ on:
- master
- 'ignite-[0-9].[0-9]+.[0-9]+*'
-env:
- MAVEN_OPTS: -Xms2g
-
jobs:
sonarcloud:
name: Sonar Analysis
@@ -73,5 +70,8 @@ jobs:
-Dsonar.login=${SONARCLOUD_TOKEN}
-B -V
env:
+ MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
+ SONAR_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
+ JAVA_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
diff --git a/.github/workflows/sonar-pr-from-fork.yml
b/.github/workflows/sonar-pr-from-fork.yml
index 8c1e1f78e08..f96b97987fa 100644
--- a/.github/workflows/sonar-pr-from-fork.yml
+++ b/.github/workflows/sonar-pr-from-fork.yml
@@ -22,9 +22,6 @@ on: [pull_request_target]
permissions:
contents: read
-env:
- MAVEN_OPTS: -Xms2g
-
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number ||
github.ref }}
cancel-in-progress: true
@@ -83,5 +80,8 @@ jobs:
-Dsonar.login=${SONARCLOUD_TOKEN}
-B -V
env:
+ MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
+ SONAR_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
+ JAVA_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g
-XX:+UseStringDeduplication"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}