diff --git a/.github/workflows/ci-merged-sonarcloud-fe.yml b/.github/workflows/ci-merged-sonarcloud-fe.yml index 586ddd10b0768..1381a0ca21106 100644 --- a/.github/workflows/ci-merged-sonarcloud-fe.yml +++ b/.github/workflows/ci-merged-sonarcloud-fe.yml @@ -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 }} diff --git a/.github/workflows/ci-pipeline-branch.yml b/.github/workflows/ci-pipeline-branch.yml index 3d245977e3b43..003074ee1a696 100644 --- a/.github/workflows/ci-pipeline-branch.yml +++ b/.github/workflows/ci-pipeline-branch.yml @@ -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] diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 4d085f905d594..c5795119477f1 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -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]