-
Notifications
You must be signed in to change notification settings - Fork 83
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
chore: bump to Java 11 #1190
chore: bump to Java 11 #1190
Conversation
914a77e
to
ecfa3c5
Compare
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.
Very nice, very important PR, thanks for it.
- see comments
- Why is CI failing?
Jenkinsfile
Outdated
@@ -8,7 +8,7 @@ kind: Pod | |||
spec: | |||
containers: | |||
- name: maven | |||
image: repairnator/ci-env:latest | |||
image: andre15silva/repairnator-ci:latest |
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.
added you to https://hub.docker.com/orgs/repairnator such that you can push a new version to the organization instead.
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.
Ok, thanks! Will do that.
@@ -58,7 +59,8 @@ public void tearDown() throws IOException { | |||
FileHelper.deleteFile(tmpDir); | |||
} | |||
|
|||
@Test | |||
@Ignore | |||
//@Test |
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.
avoid comments + @ignore is enough. could you add a comment to explain why it is ignored?
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.
Only @Ignore
didn't work for some reason. I commented @Test
just to make it skip. I'll debug that.
I'm debugging that. Just opened this PR to have the CI env running to check in parallel. |
Now that we fixed the Sorald issue, what about finishing the move to Java 11? |
Yup, I'm gonna work on that this afternoon. Hopefully it will be finished today. |
cf99e8e
to
05559cc
Compare
We need to deploy a new version of Also, what does Same thing goes for |
@monperrus do you think we can deploy |
Hey @andre15silva
I think that the goal of that test is to check that ODS classification is applied to the generated patches, regardless of the tool used to generate the patches, so replacing Nopol for other tool is not a problem.
The same applies here, the goal of the test seems to be to check that all steps, serializers, etc. are correct. However to remove Nopol from both tests we would have to provide a tool/project combination that creates a patch (maybe introducing a NPE in the test project?). Also, I have a question: Is the goal to move the project to a java 11 only version? If that is true why not bump or remove Nopol completely? Or do we want to keep the project compatible with both java 8 and 11 simultaneously? Please tell me if I can help on something to get this merged, I would like to rebase my work to this, to avoid any possible java version issues. |
Do you mean before this PR? If "yes", I'd be happy to redeploy the latest version. |
Yes. If you can deploy the version before this PR with the profile |
Hi @javierron !
I see, that's nice. Do you know where I can find documentation/information on ODS classification? I'm not being able to find it.
I'll try removing. I think it should be able to find a patch even without
If I'm not mistaken, the goal is to drop support for Java 8. @monperrus what do you think should be the approach to
Thanks, I'll ping you if there's anything that you can help with. Apart from the |
This is part of the Coming repository, you can check the docs here |
Thanks! |
yes! What remains to be done here in order to merge? |
The deployment of |
Just tried to deploy maven-repair. It fails, because maven-repair does not compile
Are you able to compile the latest master of maven-repair with -PnoNopol? How can a compilation failure happen given that we have CI? Thanks! |
Did you install |
You're right. The latest snapshot of core was from November (because CD is broken, see #1167 ) Delivered a new core 3-3-SNAPSHOT manually. Just deployed version But for now, we can proceed with |
Thanks! I'll get this working with that version. Note that this is just temporary, when #1172 is merged it will no longer be necessary. |
great, this move to Java 11 will be a serious milestone! |
Is it normal to take this long to appear in the repository? |
There is now a problem with When using
This happens because there is no checksum available for this version of gzoltar on this repository, and maven central does not have this version available to serve as backup. I see three ways of fixing this:
I think the later two are probably the better options. @monperrus WDYT? |
If we set aside the scope issue as discussed, it is ready to be merged. |
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
839de5a
to
3375ed7
Compare
Signed-off-by: André Silva <[email protected]>
86279bf
to
14110c1
Compare
Signed-off-by: André Silva <[email protected]>
9c6dfd4
to
cfa8370
Compare
Signed-off-by: André Silva <[email protected]>
cfa8370
to
f54ccaa
Compare
Changelog:
|
Ready for review! @monperrus |
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.
Waoow, it looks really good @andre15silva ! See my last comments about the testing infrastructure and then we're ready to officially move to Java 11.
@@ -72,7 +72,7 @@ public void testPipelineOnlyGitRepository() throws Exception { | |||
public void testPipelineGitRepositoryAndBranch() throws Exception { | |||
GitRepositoryLauncher l = new GitRepositoryLauncher(new String[]{ | |||
"--gitrepo", | |||
"--gitrepourl", "https://github.com/surli/failingProject", |
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.
What about using https://github.com/repairnator/failingProject/ instead? (sent you an invitation)
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.
Done!
@@ -52,7 +52,7 @@ public void testPipelineOnlyGitRepository() throws Exception { | |||
public void testPipelineGitRepositoryAndBranch() throws Exception { | |||
GithubMainProcess mainProc = (GithubMainProcess) MainProcessFactory.getGithubMainProcess(new String[]{ | |||
"--gitrepo", | |||
"--gitrepourl", "https://github.com/surli/failingProject", | |||
"--gitrepourl", "https://github.com/andre15silva/failingProject", |
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.
idem
@@ -134,7 +135,7 @@ protected void runNopol(Set<FailureLocation> failureLocation, List<String> tests | |||
nopolContext.setMaxTimeInMinutes(timeout); | |||
nopolContext.setLocalizer(NopolContext.NopolLocalizer.COCOSPOON); | |||
nopolContext.setSolverPath(this.getConfig().getZ3solverPath()); | |||
nopolContext.setSynthesis(NopolContext.NopolSynthesis.DYNAMOTH); |
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.
could you add a comment to explain why we cannot use DYNAMOTH?
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.
Done!
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Ready after CI runs again |
Thanks a lot @andre15silva for this foundational contribution. |
Closes #1186