sadanand48 commented on code in PR #8162:
URL: https://github.com/apache/ozone/pull/8162#discussion_r2014910013


##########
.github/workflows/intermittent-test-check.yml:
##########
@@ -87,11 +90,54 @@ jobs:
     with:
       repo: ${{ github.event.inputs.ratis-repo || format('{0}/ratis', 
github.repository_owner) }}
       ref: ${{ github.event.inputs.ratis-ref }}
+  find-tests:
+    if: ${{ always() }}
+    needs:
+      - prepare-job
+    runs-on: ubuntu-24.04
+    outputs:
+      modules: ${{ steps.modules.outputs.modules }}
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          ref: ${{ github.event.inputs.ref }}
+      - name: Cache for maven dependencies
+        uses: actions/cache/restore@v4
+        with:
+          path: |
+            ~/.m2/repository/*/*/*
+            !~/.m2/repository/org/apache/ozone
+          key: maven-repo-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            maven-repo-
+      - name: Setup java
+        uses: actions/setup-java@v4
+        with:
+          distribution: 'temurin'
+          java-version: 8
+      - name: Find tests
+        run: |
+          # find tests to be run in splits by running them with very short 
timeout
+          hadoop-ozone/dev-support/checks/junit.sh 
-DexcludedGroups="native|slow|unhealthy" -DskipShade \
+              -Dtest="$TEST_CLASS,Abstract*Test*\$*" \
+              -Dsurefire.fork.timeout=1 -Dmaven-surefire-plugin.version=${{ 
env.SUREFIRE_VERSION }} \
+              || true # ignore errors
+        env:
+          ITERATIONS: 1
+      - name: Find modules
+        id: modules
+        run: |
+          grep -e 'surefire:${{ env.SUREFIRE_VERSION }}:test' -e 'Running 
org.apache' target/unit/output.log | grep -B1 'Running org.apache'

Review Comment:
   yeah I checked too but couldn't find better. Even if it is not able to write 
within 1 sec due to any issue, it will fallback to building all modules which 
is what happens today so I guess it should be okay.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to