Skip to content

Conversation

starksm64
Copy link
Contributor

The PR implements more of the testing outlined in #780 and adds a new Sample Test Extension section to the extension-authors-guide that illustrates several common extension tasks. A TOC was added and the header formatting was corrected to make the document more navigable.

@starksm64
Copy link
Contributor Author

Great, I see the JDK 11 build is failing due to JAXB being pulled out.

gsmet
gsmet previously requested changes Mar 25, 2019
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.

Nice addition. I added some comments inline.

<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

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

I think it should be done in the quarkus-jaxb extension and you should depend on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would be concerned the core module is depending on too many modules outside of the core?

Copy link
Member

Choose a reason for hiding this comment

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

what's the resolution here? There's lots of good stuff in this PR, I'd rather merge it than wait.

Is it important we have the quarkus-jaxb module if this jaxb dep is only used for testing? @gsmet could you open a separate issue if you think so? I'll merge soon if I don't see blockers :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I would rather get the content out and then fix the dependency issue for the next release once I can verify that it does not introduce the issues like the native image build dependency caused. I created an issue for this. #1819

:numbered:
:sectnums:
:sectnumlevels: 4
:toc:
Copy link
Member

Choose a reason for hiding this comment

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

We will need to check how it looks like on the website.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should IMHO add TOC to all guides - recently, I created #1490

public final class TestProcessor {
static DotName TEST_ANNOTATION = DotName.createSimple(TestAnnotation.class.getName());
static DotName TEST_ANNOTATION_SCOPE = DotName.createSimple(ApplicationScoped.class.getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

You can replace this with io.quarkus.arc.processor.BuiltinScope.APPLICATION.getInfo().getDotName(). Maybe, we should add a convenient method like BuiltinScope.getName(). Also the defaultScope is not mandatory - @Dependent is used by default.

@starksm64
Copy link
Contributor Author

The CI build failures should not be resolved as the devtools dependency in the core/test-extension have been moved into the integration/test-extension test module

@starksm64 starksm64 requested a review from gsmet March 29, 2019 23:50
@starksm64 starksm64 dismissed gsmet’s stale review March 29, 2019 23:50

Review is out of date, see latest changes

@starksm64 starksm64 added this to the 0.13.0 milestone Mar 30, 2019
@starksm64 starksm64 requested a review from cescoffier April 1, 2019 21:05
@Sanne Sanne self-assigned this Apr 2, 2019
@gsmet
Copy link
Member

gsmet commented Apr 2, 2019

@starksm64 it looks like some of my comments were not addressed. Could you take a look, please?

@starksm64
Copy link
Contributor Author

Ok, not sure why I keep missing some of your comments, but I have addressed the majority of them.

@Sanne
Copy link
Member

Sanne commented Apr 2, 2019

there's a failure with JDK11:

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:build (default) on project quarkus-integration-test-elytron-security: Failed to build a runnable JAR: Failed to build a runner jar: Failed to augment application classes: Build failure: Build failed due to errors
[ERROR] 	[error]: Build step io.quarkus.elytron.security.deployment.SecurityDeploymentProcessor#registerJCAProviders threw an exception: java.lang.IllegalAccessError: class io.quarkus.elytron.security.deployment.SecurityDeploymentProcessor (in unnamed module @0xad66359) cannot access class sun.security.jca.Providers (in module java.base) because module java.base does not export sun.security.jca to unnamed module @0xad66359

@starksm64
Copy link
Contributor Author

Strange, this seemed to pass previously. I have removed that import as it was unused.

@dmlloyd
Copy link
Member

dmlloyd commented Apr 2, 2019

We've just recently become strict about using non-standard classes, in order to prevent build errors of the flavor previously seen when the project is partially built with Java 9 or later and then a native image is produced (unsuccessfully due to referencing Java 9+ symbols and overloads).

@starksm64
Copy link
Contributor Author

@Sanne should be good to go

@Sanne
Copy link
Member

Sanne commented Apr 3, 2019

thanks @starksm64 . I see you merged master into your feature branch, isn't that confusing? You mind if I rebase it one last time?

@starksm64
Copy link
Contributor Author

No, that is fine. I'm not sure how that happened.

starksm64 and others added 8 commits April 3, 2019 12:54
…s-guide

Add a code sample section based on the core test-extension

Add a new section that shows various command tasks using the core test-extension code
Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Initial native image test and updates

Additional examples

Reformat

Reformatting

Sketch out object substitution and and replacement

Fix formatting

Rename the native image integration test

Update comment

Update comments

Add sections on deployment scanning and bean container interface

Reformat

Reformat

Don't rely on JDK JAXB so code compiles and runs under both JDK8/11

Updates from review

Fix rebase issues

Updates for the Sample Test Extension section of the extension-authors-guide

Add a code sample section based on the core test-extension

Add a new section that shows various command tasks using the core test-extension code
Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Updates for the Sample Test Extension section of the extension-authors-guide

Initial native image test and updates

Additional examples

Reformat

Reformatting

Sketch out object substitution and and replacement

Fix formatting

Rename the native image integration test

Update comment

Update comments

Add sections on deployment scanning and bean container interface

Updates from review

Another rebase attempt

Remove undertow-servlet dependency

Another rebase attempt

Remove the quarkus maven plugin

Update for AdditionalBeanBuildItem changes
@Sanne Sanne self-requested a review April 3, 2019 12:15
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.

Approved and tested by Sanne.

@Sanne
Copy link
Member

Sanne commented Apr 3, 2019

rebased and added a micro update: 49f6174

I'll need @gsmet to merge it as I no longer can push the button. Thanks!

@Sanne Sanne merged commit d10cac2 into quarkusio:master Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants