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

WFLY-18508 spring-resteasy Quickstart Common Enhancements CY2023Q3 #755

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

liweinan
Copy link
Contributor

@liweinan liweinan marked this pull request as draft October 18, 2023 18:01
@liweinan
Copy link
Contributor Author

@emmartins @jamezp I start to work on this according to the changes in: #711

It's still in draft and I'll complete the missing parts. Currently the integration-test and existing tests can pass.

@liweinan
Copy link
Contributor Author

The JDK11 can not be used because this example needs at least JDK17.

spring-resteasy/pom.xml Outdated Show resolved Hide resolved
spring-resteasy/pom.xml Outdated Show resolved Hide resolved
spring-resteasy/pom.xml Outdated Show resolved Hide resolved
@liweinan
Copy link
Contributor Author

@emmartins Thanks for checking! I'll modify the test accordingly. In addition, this test can only be run under JDK16 (because of the Spring dep). What can I do to fix this?

@liweinan
Copy link
Contributor Author

After removing the arq profiles the tests can be executed this way:

➤ mvn wildfly:run -Pprovisioned-server
➤ mvn verify -Pintegration-testing -Dserver.host=http://localhost:8080/                                                                                                                                                                                                                     00:04:11
image 2 image

I will cleanup this PR and squash the commits after everything is fixed.

@emmartins
Copy link
Contributor

@emmartins Thanks for checking! I'll modify the test accordingly. In addition, this test can only be run under JDK16 (because of the Spring dep). What can I do to fix this?

Let's ignore the test fails for now, I guess we should expose the matrix JDK choices, similar to MATRIX_OS, which will then allow you to send something like MATRIX_JDK: '"17"' to not test JDK 11.

@emmartins
Copy link
Contributor

emmartins commented Oct 23, 2023

After removing the arq profiles the tests can be executed this way:

➤ mvn wildfly:run -Pprovisioned-server
➤ mvn verify -Pintegration-testing -Dserver.host=http://localhost:8080/                                                                                                                                                                                                                     00:04:11

image 2 image
I will cleanup this PR and squash the commits after everything is fixed.

ok seems I missed something, you didn't update the README.adoc as specified by:

The content included above provides you the testing instructions, which use wildfly:start -DjbossHome=... (as followup of mvn package -Pprovisioned-server), which are the instructions being tested by the CI. I will consider a 'post-enhancements' move to wildfly:run single command instead, but for now let's have all QS using same ok?

spring-resteasy/pom.xml Outdated Show resolved Hide resolved
@@ -186,29 +191,132 @@
</dependencies>

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@emmartins I have added the plugin management section, not sure I add it correctly or not. In addition I found the batch-proessing example doesn't have this section either:

Shall I add the section their too?

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is not a MicroProfile quickstart you don't need the wildfly-jar plugin

Copy link
Contributor

Choose a reason for hiding this comment

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

Wrt batch-processing it was fixed yesterday :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wrt batch-processing it was fixed yesterday :-)

Cool!

@jamezp
Copy link
Member

jamezp commented Oct 24, 2023

Spring 6 only works on Java 17+. I'm not sure how we can resolve this because of the workflow call. Creating the workflow matrix in JSON is an option, but likely not a great one. However, the other option is to not call the workflow.

@liweinan
Copy link
Contributor Author

Spring 6 only works on Java 17+. I'm not sure how we can resolve this because of the workflow call. Creating the workflow matrix in JSON is an option, but likely not a great one. However, the other option is to not call the workflow.

Maybe we can split the CI file for Java 11 or 17? @emmartins wdyt?

@liweinan
Copy link
Contributor Author

@emmartins Thanks for the advice! I'll update the README accordingly.

After removing the arq profiles the tests can be executed this way:

➤ mvn wildfly:run -Pprovisioned-server
➤ mvn verify -Pintegration-testing -Dserver.host=http://localhost:8080/                                                                                                                                                                                                                     00:04:11

image 2 image
I will cleanup this PR and squash the commits after everything is fixed.

ok seems I missed something, you didn't update the README.adoc as specified by:

The content included above provides you the testing instructions, which use wildfly:start -DjbossHome=... (as followup of mvn package -Pprovisioned-server), which are the instructions being tested by the CI. I will consider a 'post-enhancements' move to wildfly:run single command instead, but for now let's have all QS using same ok?

@emmartins
Copy link
Contributor

@liweinan @jamezp no worries wrt the JDK, I will later update the quickstart_ci.yml to allow quickstarts to customize the matrix JDKs, I will do it elsewhere to avoid multiple runs of all QS workflows. For now please simply ignore the JDK 11 test fails.

@liweinan
Copy link
Contributor Author

@liweinan @jamezp no worries wrt the JDK, I will later update the quickstart_ci.yml to allow quickstarts to customize the matrix JDKs, I will do it elsewhere to avoid multiple runs of all QS workflows. For now please simply ignore the JDK 11 test fails.

Thanks!

@liweinan
Copy link
Contributor Author

liweinan commented Oct 24, 2023

The tests passed locally with the following command:

$ mvn clean package -Pprovisioned-server
$ mvn wildfly:start -DjbossHome=target/server
➤  mvn verify -Pintegration-testing -Dserver.host=http://localhost:8080
image

liweinan added a commit to liweinan/quickstart-1 that referenced this pull request Oct 24, 2023
@liweinan liweinan marked this pull request as ready for review October 24, 2023 16:00
@liweinan
Copy link
Contributor Author

@emmartins I have updated the doc and the tests passed in JDK17, so I mark this PR as ready for preview. Please let me know if there is anything else need to be changed :D

Copy link
Contributor

@emmartins emmartins left a comment

Choose a reason for hiding this comment

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

Looks good to me, only one more change, please squash the commits into one.

@liweinan
Copy link
Contributor Author

@emmartins Done!

@emmartins emmartins merged commit 3e7cf92 into wildfly:main Oct 24, 2023
15 of 19 checks passed
@emmartins
Copy link
Contributor

thank you @liweinan

@emmartins
Copy link
Contributor

FYI I created https://issues.redhat.com/browse/WFLY-18689 to deliver the matrix.jdk customization this QS needs. As I said before I will leave this to post-enhancements.

@emmartins
Copy link
Contributor

@liweinan FYI WFLY-18689 was now fixed, which included the changes in this quickstart yml to only test it on JDK 17

@liweinan
Copy link
Contributor Author

@liweinan FYI WFLY-18689 was now fixed, which included the changes in this quickstart yml to only test it on JDK 17

Cool!

@liweinan
Copy link
Contributor Author

Relative PR: #767

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants