jbonofre opened a new pull request, #2320:
URL: https://github.com/apache/karaf/pull/2320

   ## Summary
   
   - The CI `test` job uses the `-Ptest` Maven profile which disables assembly 
packaging (`install-kar`, `package` phases set to `none`), meaning artifacts 
like `apache-karaf:tar.gz` are never built during the test run
   - Previously, `build` and `test` ran as independent parallel jobs on 
separate runners, so the `test` job could not resolve these SNAPSHOT artifacts 
from `~/.m2/repository`
   - This caused `services/interceptor/impl` to fail with: `Could not find 
artifact org.apache.karaf:apache-karaf:tar.gz:4.4.10-SNAPSHOT`
   
   ## Fix
   
   - Add `needs: build` so the test job runs after build completes
   - Save the Maven local repository from the build job using 
`actions/cache/save` with a run-scoped key
   - Restore it in the test job using `actions/cache/restore`
   - Remove `clean` from the test Maven command to preserve the restored local 
repo
   
   ## Test plan
   
   - [ ] Verify the `build` job completes and caches `~/.m2/repository`
   - [ ] Verify the `test` job restores the cache and resolves 
`apache-karaf:tar.gz` successfully
   - [ ] Verify test results are still uploaded and published correctly


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