adoroszlai opened a new pull request, #12127:
URL: https://github.com/apache/ozone/pull/12127

   ## What changes were proposed in this pull request?
   
   0. Rename `TEST_JAVA_VERSION` to `JAVA_VERSION` in workflows.  It's not 
specific to tests, also used for build and most other checks.
   1. Let `setup-java-with-cache` pick up `JAVA_VERSION` from environment, to 
reduce the need for passing inputs.
   2. Use `JAVA_VERSION` for cache key, regardless of custom `java-version` 
input, because `populate-cache` creates only one common Maven cache for Ozone.  
There is no cache for Java 11 or Java 21, hence the checks using such Java 
versions never hit exact cache.
   3. Add missing `setup-java-with-cache` step in `acceptance` (test) job of 
`repeat-acceptance`.
   
   https://issues.apache.org/jira/browse/HDDS-17891
   
   ## How was this patch tested?
   
   Verified custom Java version for `setup-java`, but common version (25) for 
cache key:
   - `acceptance`:
     - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137298863356#step:7:44
     - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137298863356#step:7:161
   - `compile (21)`:
     - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137298863184#step:7:44
     - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137298863184#step:7:161
   - `flaky-test-check`:
     - `build:
       - 
https://github.com/adoroszlai/ozone/actions/runs/45060366306/job/137324745894#step:3:42
       - 
https://github.com/adoroszlai/ozone/actions/runs/45060366306/job/137324745894#step:3:155
     - `test`:
       - 
https://github.com/adoroszlai/ozone/actions/runs/45060366306/job/137324978426#step:3:42
       - 
https://github.com/adoroszlai/ozone/actions/runs/45060366306/job/137324978426#step:3:155
   
   Verified common Java versions from `check.yml`, e.g.:
   - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137295812857#step:7:44
   - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137303659982#step:7:44
   
   Verified common Java version in `coverage` (from `ci.yml`):
   - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137316795161#step:5:29
   - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137316795161#step:5:118
   
   Verified no java for `author`, `bats`, etc:
   - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137295812931
   - 
https://github.com/adoroszlai/ozone/actions/runs/45050142855/job/137298548591
   
   Tested `repeat-acceptance` (no custom Java):
   - 
https://github.com/adoroszlai/ozone/actions/runs/45061124241/job/137327136603#step:4:124
   - 
https://github.com/adoroszlai/ozone/actions/runs/45061124241/job/137329649273#step:5:124
   
   CI: https://github.com/adoroszlai/ozone/actions/runs/45050142855
   


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