goutamadwant opened a new pull request, #13009:
URL: https://github.com/apache/maven/pull/13009

   Fixes #10420
   
   ## Description
   
   Add `Session.withContext(RequestTrace)` so callers can create a derived 
Maven session with a non-null base trace context.
   
   The scoped context is preserved across local and remote repository 
derivation and propagated through Resolver operations, including artifact 
resolution, installation, and deployment. Nested and explicit request traces 
restore the exact previous trace after completion.
   
   The active trace remains thread-isolated while being visible to Maven 
sessions that share the same Resolver session.
   
   ## Tests
   
   - Added coverage for context propagation, nesting, repository derivation, 
concurrency, and null validation.
   - Added regression tests for explicit trace restoration and install/deploy 
propagation.
   - Focused tests: 21 passed.
   - `mvn --batch-mode verify`: passed.
   - Core IT: 1,059 tests passed under JDK 26. The two JDK-sensitive failures 
were rerun under JDK 21 and all 4 test methods passed.
   
   Following this checklist to help us incorporate your contribution quickly 
and easily:
   
   - [x] This pull request addresses one issue without unrelated changes.
   - [x] The description explains what the pull request does, how, and why.
   - [x] The commit has a meaningful subject and body.
   - [x] Unit tests cover the behavioral changes.
   - [x] `mvn verify` passes.
   - [ ] The complete Core IT command passed in one environment. See the 
JDK-specific results above.
   
   - [x] I hereby declare this contribution to be licenced under the [Apache 
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
   - [ ] In any other case, please file an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   [core-its]: https://maven.apache.org/core-its/core-it-suite/


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