voonhous commented on code in PR #21106:
URL: https://github.com/apache/hudi/pull/21106#discussion_r4811652047


##########
.github/workflows/bot.yml:
##########
@@ -176,7 +181,12 @@ jobs:
           java-version: '11'
           distribution: 'temurin'
           architecture: x64
-          cache: maven
+      - name: Cache Maven repository
+        uses: actions/cache@v4
+        with:
+          path: ~/.m2/repository
+          key: maven-${{ runner.os }}-${{ matrix.scalaProfile }}-${{ 
matrix.sparkProfile }}-${{ matrix.flinkProfile }}-${{ hashFiles('**/pom.xml') }}

Review Comment:
   Good catch. The fork run confirmed it: `test-utilities-streamer` sealed the 
Spark 3.5 entry. On Spark 4.2, `ut-other` sealed it without the Spark 4.1 deps 
that `dml-2` and `scala-other-2` build.
   
   Fixed in 3659df3 with both parts of your suggestion. Each key now names its 
one writer, a job whose build covers every job restoring that key. Readers use 
`actions/cache/restore`. Only the writer runs `actions/cache/save`, after a 
green run.
   
   - `test-common-and-other-modules` writes for itself and both utilities jobs. 
The `-am` closure of `hudi-utilities` is in its reactor.
   - `test-spark-client-and-hadoop-common` writes for itself only, since 
`hudi-cli` and the utilities bundle are built nowhere else.
   - On Spark 4.2, `scala-dml-2` writes for eight jobs, Spark 4.1 bundle 
included. `ut-other` keeps its own key because `hudi-examples-spark` pulls in 
`hudi-utilities`.
   - `test-flink-1` writes for both Flink jobs, which run the same builds.
   
   To fit five entries under the 10 GB limit, Hudi's own `-SNAPSHOT` artifacts 
are left out of the cached path. Every job rebuilds them anyway.
   



-- 
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]

Reply via email to