-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
add GradleRunIntegrationTest (incl. QuarkusJavaLauncher) #1986
add GradleRunIntegrationTest (incl. QuarkusJavaLauncher) #1986
Conversation
00d389b
to
73a9117
Compare
@stalep FYI this may actually help to understand the cause of the build failure in #1985 better (because {my} exec util logs much more than j.l.Process), so unless there are strong objections to the inclusion of that 3rd party lib, I think this provides real value. I'll therefore ASAP rebase this based on recent merge (of #1993 and #1929) - let's see if we get more details about the failure (only) on Azure with this... |
73a9117
to
cb3092f
Compare
I'm just not sure the reason to add another dependency for this (which contain other dependencies :) other than just for logging. What kind of output is omitted when using standard Process vs your impl? |
There simply is no output at all... 😈 it would, of course, be possible to re-implement the equivalent, but (to me) this seems to belong in some library - which is, years ago, I built https://github.com/vorburger/ch.vorburger.exec, and am happy to also offer it to Quarkus... 😸 See also https://github.com/vorburger/ch.vorburger.exec#advantages. (BTW: I'm happy to "donate" it under some JBoss.org repo, if there is interest, or accept other committers to the project.)
And indeed it does!! FTR, locally it's like this:
on the Azure build it's like this:
I now see the problem - and will ASAP amend this PR with what I think will fix it... |
The build failure (above) on the Build_JDK11_Linux Job is due to #2012 ... @stalep BTW this underlines how important it is to run tests like this and be able to see the output from the externally launched process. If this new |
8836a9e
to
d2ce2ea
Compare
hm, the windows build failed again. |
not just the Windows build but the Java 11 one as well 😢 see #2036, for some reason the built JAR is bad, it has |
I also tried this PR locally with both Java 8 and Java 11 and it worked. |
@stalep @cescoffier @aloubyansky @gsmet @stuartwdouglas I'd love for this work to be able to be merged, but am quite clueless as to why the Gradle build produces a JAR with empty Installed Features - and thus fails this new IT, but only on the Azure build; it works locally, for me, @geoand and (I think) @stalep. I'm happy to rebase this once - if someone can then help to investigate the build failure further? |
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
|
||
<dependencies> |
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.
This does not have a dependency on quarkus-gradle-plugin-integration-test so its possible this can run before the jar it depends on is built.
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.
@stuartwdouglas that's a good point, I've added a dependency now - am curious if this helps to get this PR to finally pass on the Azure build server as well (and not just locally, as it always has)
I'm a bit worried about this PR pending for so long. @stalep when you have a few minutes can you tell me the current state? |
This reverts commit 20ecd1b.
#2214 removed the |
This should fix the test failure on slow CI servers such as Azure Build.
…rkusio#2012) This should fix the test failure on environments where the wrong `java` is on the `PATH`, such as in Azure; for details, see microsoft/azure-pipelines-tasks#10103.
d2ce2ea
to
bac56cc
Compare
taken care of in #2783
Rebase done (based on / assuming #2783, which is included here)
It used to build fine locally and fail (only) on the Azure build; let's see if it's better now... |
Ping @stalep |
Ping x2 @stalep? I'll fire off a more recent CI but it would be good to get a review on this. |
Never mind: I don't have permissions to re-queue a successful build. Also the build is so old that it has disappeared off Azure. So I guess... maybe force-push it one more time? |
Is this superceded by #2783 ? |
This one is likely very outdated. I'm going to close it. Open it again if I'm incorrect. |
This fixes #1623
It uses https://github.com/vorburger/ch.vorburger.exec#advantages