Skip to content
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

Move to GraalVM 19 #2875

Merged
merged 15 commits into from
Jun 24, 2019
Merged

Move to GraalVM 19 #2875

merged 15 commits into from
Jun 24, 2019

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Jun 18, 2019

Fixes #2792, fixes #2412, fixes #2563, fixes #2438, fixes #2428, fixes #2410, fixes #2876.

@dmlloyd
Copy link
Member Author

dmlloyd commented Jun 18, 2019

This is a draft because we still have a number of docs updates to do. In particular #2876 is still outstanding. The docs update is now included.

@@ -29,7 +34,17 @@

public class SubstrateAutoFeatureStep {

private static final String GRAAL_AUTOFEATURE = "io.quarkus/runner/AutoFeature";
private static final String GRAAL_AUTOFEATURE = "io/quarkus/runner/AutoFeature";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh WOW, we're replacing a partly binary class name. Can we introduce a convension for constant class names that lets us know if it's a class name, or a class binary name ('.' or '/')?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH it's a complete mess. We have APIs that accept either one, APIs that require one or the other, and APIs that accept one and produce the other. With no documentation of course.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, I'm just saying we should once and for all decide on a suffix/terminology for these constants. I've the same problem in my extensions.

farray);
}
}
CatchBlockCreator cc = tc.addCatch(Throwable.class);
//cc.invokeVirtualMethod(ofMethod(Throwable.class, "printStackTrace", void.class), cc.getCaughtException());
cc.invokeVirtualMethod(ofMethod(Throwable.class, "printStackTrace", void.class), cc.getCaughtException());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this meant to stay, or a debug thing that should stay commented out ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know really. It does produce an exception from Jackson. But I think that might be a legitimate problem.

@dmlloyd dmlloyd marked this pull request as ready for review June 18, 2019 15:34
@dmlloyd
Copy link
Member Author

dmlloyd commented Jun 18, 2019

The native image failures are expected as CI isn't running 19.0.2 yet.

@gsmet gsmet added this to the 0.18.0 milestone Jun 19, 2019
@FroMage
Copy link
Member

FroMage commented Jun 19, 2019

This is waiting for @cescoffier to create a docker image.

@gsmet
Copy link
Member

gsmet commented Jun 21, 2019

@dmlloyd there is a conflict now, can you rebase?
@cescoffier I think you have built an image? Could you reference its name here so that @dmlloyd can update the Azure pipelines with it?

@dmlloyd
Copy link
Member Author

dmlloyd commented Jun 21, 2019

Rebased. FYI I have no idea how to do anything with the Azure pipelines; we might have to ping @n1hility for that.

@gsmet
Copy link
Member

gsmet commented Jun 21, 2019

OK, I think we can take care of it. My current understanding is that changing the image would be a code update. Not yet sure if we have to update the pipelines. I'll check that on Monday once @cescoffier has prepared the image.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dmlloyd I added a few comments/questions. Could you take care of them?

Thanks!

@dmlloyd
Copy link
Member Author

dmlloyd commented Jun 21, 2019

All fixed @gsmet

@dmlloyd dmlloyd added triage/waiting-for-ci Ready to merge when CI successfully finishes and removed coding-in-progress labels Jun 21, 2019
@gsmet gsmet changed the title Move to Graal 19 Move to GraalVM 19 Jun 21, 2019
@machi1990
Copy link
Member

I remember asking here #1602 (comment) about the FIXME.. comment in this method

//FIXME remove after transition period
private boolean isThisGraalVMRCObsolete() {
final String vmName = System.getProperty("java.vm.name");
log.info("Running Quarkus native-image plugin on " + vmName);
final List<String> obsoleteGraalVmVersions = Arrays.asList("-rc9", "-rc10", "-rc11", "-rc12", "-rc13", "-rc14",
"-rc15");
final boolean vmVersionIsObsolete = obsoleteGraalVmVersions.stream().anyMatch(vmName::contains);
if (vmVersionIsObsolete) {
log.error("Out of date RC build of GraalVM detected! Please upgrade to GraalVM RC16");
return true;
}
return false;
}

. Is this the right moment to deal with the comment?
If not, should we update the code in question to take into consideration 19.0.2?

@dmlloyd
Copy link
Member Author

dmlloyd commented Jun 24, 2019

I remember asking here #1602 (comment) about the FIXME.. comment in this method

//FIXME remove after transition period
private boolean isThisGraalVMRCObsolete() {
final String vmName = System.getProperty("java.vm.name");
log.info("Running Quarkus native-image plugin on " + vmName);
final List<String> obsoleteGraalVmVersions = Arrays.asList("-rc9", "-rc10", "-rc11", "-rc12", "-rc13", "-rc14",
"-rc15");
final boolean vmVersionIsObsolete = obsoleteGraalVmVersions.stream().anyMatch(vmName::contains);
if (vmVersionIsObsolete) {
log.error("Out of date RC build of GraalVM detected! Please upgrade to GraalVM RC16");
return true;
}
return false;
}

. Is this the right moment to deal with the comment?
If not, should we update the code in question to take into consideration 19.0.2?

Let's address it in a follow-up PR.

@emmanuelbernard emmanuelbernard removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jun 24, 2019
@emmanuelbernard emmanuelbernard merged commit 4e9bfd7 into quarkusio:master Jun 24, 2019
@dmlloyd dmlloyd deleted the graal-19 branch June 24, 2019 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants