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

   When `--raw-streams` is used (especially when combined with options like 
`--quiet` and `-DforceStdout`) there is no guarantee that anything touches 
terminal. Hence, in case of embedded executor it is quite possible that 
cached/warm code arrives quickly at the place that would do system out 
**before** the thread with `FastTerminal` finishes system install.
   
   In other words, when `--raw-streams` are used, we cannot guarantee that 
system streams are already properly set up. This PR changes that, and makes 
sure (by triggering a dummy call to terminal), at the cost of "jline3 install 
lag" for CLI invocation. OTOH, this lag in case of embedded executors does not 
exists (it exists only on first invocation).
   
   My suspicion that this is the cause of IT instability issues, when Verifier 
used Toolbox output ends up on Surefire stdout and not on "grabbed" output, as 
simply streams are not yet set up properly. Also, this usually happens "around 
the second half" of ITs, when cached and warmed up embedded instance is already 
uber optimized.
   
   Backport of bb94de05501d2b9744d6e7db249318f07b633a5d


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