[Tool] Fixed oom in sonarcloud check (#56284)
This commit is contained in:
parent
8a6f4ad8b4
commit
0f8fc5564a
|
|
@ -12,6 +12,7 @@ jobs:
|
|||
sonarcloud-fe:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'StarRocks/starrocks'
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: clean
|
||||
run: |
|
||||
|
|
@ -71,4 +72,8 @@ jobs:
|
|||
mkdir -p thirdparty/installed/bin/
|
||||
cd thirdparty/installed/bin/ && ln -s /usr/local/bin/thrift thrift
|
||||
cd ${{ github.workspace }}/fe
|
||||
mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=StarRocks_starrocks -Dsonar.pullrequest.key=${{ github.event.number }} -Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }}
|
||||
export SONAR_SCANNER_OPTS="-Xms3072m -Xmx12288m"
|
||||
export MAVEN_OPTS="-Xms3072m -Xmx12288m"
|
||||
mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar \
|
||||
-Dsonar.projectKey=StarRocks_starrocks -Dsonar.pullrequest.key=${{ github.event.number }} \
|
||||
-Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }}
|
||||
|
|
|
|||
|
|
@ -346,6 +346,7 @@ jobs:
|
|||
needs: fe-checker
|
||||
if: needs.fe-checker.outputs.output1 == 'true' && github.repository == 'StarRocks/starrocks'
|
||||
name: FE Sonarcloud Check
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.number }}
|
||||
CODE_PATH: ${{ github.workspace }}
|
||||
|
|
@ -418,7 +419,11 @@ jobs:
|
|||
mkdir -p thirdparty/installed/bin/
|
||||
cd thirdparty/installed/bin/ && ln -s /usr/local/bin/thrift thrift
|
||||
cd ${{ github.workspace }}/fe
|
||||
mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=StarRocks_starrocks -Dsonar.pullrequest.key=${{ github.event.number }} -Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }}
|
||||
export SONAR_SCANNER_OPTS="-Xms3072m -Xmx12288m"
|
||||
export MAVEN_OPTS="-Xms3072m -Xmx12288m"
|
||||
mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar \
|
||||
-Dsonar.projectKey=StarRocks_starrocks -Dsonar.pullrequest.key=${{ github.event.number }} \
|
||||
-Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }}
|
||||
|
||||
fe-ut:
|
||||
runs-on: [self-hosted, normal]
|
||||
|
|
|
|||
|
|
@ -441,6 +441,7 @@ jobs:
|
|||
needs: fe-checker
|
||||
if: needs.fe-checker.outputs.src_filter == 'true' && github.repository == 'StarRocks/starrocks'
|
||||
name: FE Sonarcloud Check
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.number }}
|
||||
CODE_PATH: ${{ github.workspace }}
|
||||
|
|
@ -513,7 +514,11 @@ jobs:
|
|||
mkdir -p thirdparty/installed/bin/
|
||||
cd thirdparty/installed/bin/ && ln -s /usr/local/bin/thrift thrift
|
||||
cd ${{ github.workspace }}/fe
|
||||
mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=StarRocks_starrocks -Dsonar.pullrequest.key=${{ github.event.number }} -Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }}
|
||||
export SONAR_SCANNER_OPTS="-Xms3072m -Xmx12288m"
|
||||
export MAVEN_OPTS="-Xms3072m -Xmx12288m"
|
||||
mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar \
|
||||
-Dsonar.projectKey=StarRocks_starrocks -Dsonar.pullrequest.key=${{ github.event.number }} \
|
||||
-Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }}
|
||||
|
||||
fe-ut:
|
||||
runs-on: [self-hosted, normal]
|
||||
|
|
|
|||
Loading…
Reference in New Issue