-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNG-8461] Initial settings method must restore context state #2004
Conversation
Effective settings are (should be) created twice, once for "early boot" of Plexus when extensions are loaded up, and then again when Maven "boots". Bug was that early call "corrupted" (inited settings) in context causing that 2nd required call (due spy) was omitted. --- https://issues.apache.org/jira/browse/MNG-8461
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An IT would be good. Can we adapt the reproducer ?
I think we can... but am now looking at MavenITmng4936EventSpyTest and it seems it does test for this thing but did not fail? |
So, we need to dig in, why reproducer fails, and why IT succeeds. Locally running the related IT I have this (mng-4936/target/spy.log): fixed: Apache Maven 4.0.0-rc-3-SNAPSHOT (a9f6f3b)
master: Apache Maven 4.0.0-rc-3-SNAPSHOT (575ad37)
Basically they are same. |
Still cannot figure, and I starting to doubt in our ITs... The only difference I found so far:
Still, as the code change shows, the event should not be emitted, but it seems it was? Checked also, the IT is forked, and forked executor is used, so it cannot be some "leftover state" in embedded executor... |
Effective settings are (should be) created twice, once for "early boot" of Plexus when extensions are loaded up, and then again when Maven "boots".
Bug was that early call "corrupted" (inited settings) in context causing that 2nd required call (due spy) was omitted. This resulted in lack of settings related spy events firing (as we do have IT for spy but it does not test settings events).
https://issues.apache.org/jira/browse/MNG-8461
Related: alextu/maven4-reproducer#1