diff --git a/.github/workflows/compose-tests.yml b/.github/workflows/compose-tests.yml index f6601e2818962..70a8c75bd8d1e 100644 --- a/.github/workflows/compose-tests.yml +++ b/.github/workflows/compose-tests.yml @@ -6,6 +6,15 @@ on: branches: - jb-main +env: + # TODO: https://youtrack.jetbrains.com/issue/CMP-9497/Investgate-CfW-tests-flakiness-with-enabled-gradle-configuration-cache-on-CI + # Web Tests require running additional processes: karma in node, browser; + # To reduce the memory pressure, we change some defaults: + GRADLE_WEB_TESTS_FLAGS: >- + --no-daemon --stacktrace --no-parallel --no-configuration-cache + -Dorg.gradle.jvmargs="-Xmx8g -XX:+UseParallelGC" + -Porg.gradle.workers.max=1 + jobs: compose-desktop-tests: runs-on: ubuntu-24.04 @@ -203,8 +212,7 @@ jobs: # Compile tests as a separate step to reduce memory usage and potential OOM during running tests. - name: Compile ${{ matrix.task }} Tests run: | - ./gradlew compileTestKotlin${{ matrix.task }} \ - --no-daemon --stacktrace + ./gradlew compileTestKotlin${{ matrix.task }} ${{ env.GRADLE_WEB_TESTS_FLAGS }} - name: Setup Google Chrome uses: browser-actions/setup-chrome@v2 @@ -220,8 +228,7 @@ jobs: - name: Run Web Chrome Tests run: | - ./gradlew :mpp:testWeb${{ matrix.task }} \ - --no-daemon --stacktrace --no-parallel \ + ./gradlew :mpp:testWeb${{ matrix.task }} ${{ env.GRADLE_WEB_TESTS_FLAGS }} \ -Pjetbrains.androidx.web.tests.enableFirefox=false \ -Pjetbrains.androidx.web.tests.enableChrome=true @@ -250,8 +257,7 @@ jobs: # Compile tests as a separate step to reduce memory usage and potential OOM during running tests. - name: Compile ${{ matrix.task }} Tests run: | - ./gradlew compileTestKotlin${{ matrix.task }} \ - --no-daemon --stacktrace + ./gradlew compileTestKotlin${{ matrix.task }} ${{ env.GRADLE_WEB_TESTS_FLAGS }} - name: Setup Missing Packages run: | @@ -270,8 +276,7 @@ jobs: - name: Run Web Firefox Tests run: | - ./gradlew :mpp:testWeb${{ matrix.task }} \ - --no-daemon --stacktrace --no-parallel \ + ./gradlew :mpp:testWeb${{ matrix.task }} ${{ env.GRADLE_WEB_TESTS_FLAGS }} \ -Pjetbrains.androidx.web.tests.enableFirefox=true \ -Pjetbrains.androidx.web.tests.enableChrome=false diff --git a/.run/desktop/test.run.xml b/.run/desktop/test.run.xml index f6ff1ca382f10..c223f0f318a78 100644 --- a/.run/desktop/test.run.xml +++ b/.run/desktop/test.run.xml @@ -10,7 +10,7 @@