From af58d0c4c296f44f7ba713ca06f972827f1f5b40 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Tue, 26 Nov 2024 11:22:45 -0500 Subject: [PATCH] chore: Stop running Maven commands in multi treads in nightly CI (#3366) Nightly CI could fail due to running maven commands in multi-treads on Windows, see https://github.com/googleapis/sdk-platform-java/issues/3362 for details. Remove `-T 1C` in nightly.yaml to stop running Maven commands in multi treads in nightly CI. This is acceptable since running time is not a main concern in nightly CI. --- .github/workflows/nightly.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 12e239ae8c..29412ffbfd 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -24,7 +24,7 @@ jobs: cache: maven - run: mvn -version - name: Install - run: mvn install --errors --batch-mode --no-transfer-progress -Dcheckstyle.skip -T 1C + run: mvn install --errors --batch-mode --no-transfer-progress -Dcheckstyle.skip - name: Create issue if previous step fails if: ${{ failure() }} env: @@ -49,7 +49,7 @@ jobs: cache: maven - run: mvn -version - name: Install with Java 11 - run: mvn install --errors --batch-mode --no-transfer-progress -Dcheckstyle.skip -DskipTests -T 1C + run: mvn install --errors --batch-mode --no-transfer-progress -Dcheckstyle.skip -DskipTests - uses: actions/setup-java@v3 with: @@ -58,7 +58,7 @@ jobs: - run: mvn -version - name: Test with Java 8 # Direct goal invocation ("surefire:test") prevents recompiling tests - run: mvn surefire:test --errors --batch-mode --no-transfer-progress -T 1C + run: mvn surefire:test --errors --batch-mode --no-transfer-progress - name: Create issue if previous step fails if: ${{ failure() }} env: