adoroszlai commented on PR #9014:
URL: https://github.com/apache/hadoop/pull/9014#issuecomment-7116367560

   > I think the problem that needs to be checked is why the cache does not 
exist and how to ensure it does.
   
   Cache is not saved due to the following 
[error](https://github.com/apache/hadoop/actions/runs/45094764828/job/137437278919#step:12:3)
 in `Post JDK ..` step after build/test:
   
   ```
   Warning: Error: Path Validation Error: Path(s) specified in the action for 
caching do(es) not exist, hence no cache is being saved.
   ```
   
   `Build ...` output indicates Maven dir is at `/home/runner/.m2`:
   
   ```
   [INFO] --- install:3.1.4:install (default-install) @ hadoop-main ---
   [INFO] Installing /__w/hadoop/hadoop/pom.xml to 
/home/runner/.m2/repository/org/apache/hadoop/hadoop-main/3.6.0-SNAPSHOT/hadoop-main-3.6.0-SNAPSHOT.pom
   ```
   
   but `Setup JDK ..` 
[says](https://github.com/apache/hadoop/actions/runs/45094764828/job/137437278919#step:4:31)
 it's `/github/home/.m2`:
   
   ```
   Writing to /github/home/.m2/settings.xml
   ```
   
   which it derives from `$HOME` as 
[set](https://github.com/apache/hadoop/actions/runs/45094764828/job/137437278919#step:2:118)
 in the container:
   
   ```
   docker create ... -e "HOME=/github/home" ... 
ghcr.io/apache/gha-build-ubuntu_24:trunk-45094764828
   ```
   
   I guess `/home/runner` comes from this setup:
   
   
https://github.com/apache/hadoop/blob/765078ecf561f039112e072c33718d37557f867f/.github/workflows/tmpl_build_and_test.yml#L145


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