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
WIP Refactor: Unify encapsulation of Nopol #1144
Conversation
Looks good overall @andre15silva ! Let's now have a green CI :) |
@monperrus After evaluating several options and trying to understand how this refactor can be designed in a good way, I came up with the following solution:
The other options considered were having each Mojo call each respective Step (whether a static method for the tool itself or the actual execute method) , but that doesn't provide a very clean approach to handling configuration options IMO. WDYT about this design path? |
I've been following the path I proposed on the comment above, but I'm now stuck on a weird bug when running Nopol through
This happens when executing the step NopolRepair, more specifically when calling Do you have any clue what might be causing this? To reproduce the bug:
|
Also, due to Nopol being loaded through a profile in |
Good progress, this design is good.
A classpath problem. AFAIR, this is due to using the "Cocospoon" fault localization mode in Nopol. What happens if we use the GZoltar mode? |
I get this error trace
I have the dependency gzoltar loaded, so I don't know why this is happening. |
I see. Also a classpath problem. Debugging classpath and fault localization in Nopol is out of the scope of this PR ('Unify repair tools encapsulations'). What about about having a first working and merged POC with the other repair tools (SequenceR/NpeFix)? |
Ok, sounds good! I'll work on NPEFix first and then SequenceR. |
Very good. Let's do the unification one repair tool at a time. NpeFix is
a great one to start with.
|
I encountered another problem, now with NPEFix. I already moved all of the logic to I then ran
Now, when I try to use |
Renamed this PR and moving the conversation to #1153 |
Can one of the admins verify this patch? |
Signed-off-by: André Silva <andre15andre@hotmail.com>
This commit is not functioning, there is a weird bug happening when using nopol through maven-repair, but not through repairnator-pipeline. Signed-off-by: André Silva <andre15andre@hotmail.com>
0f22c40
to
065ee73
Compare
Will close #1137 .