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

Make Maven ITs less fragile #35996

Merged
merged 6 commits into from
Oct 25, 2023
Merged

Make Maven ITs less fragile #35996

merged 6 commits into from
Oct 25, 2023

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Sep 18, 2023

Enforcing versions of the plugins make sure we don't start downloading
them when running the tests which can lead to timeouts.
Also it makes the build more stable and actually tests the version we
are using when creating new projects.

Created as draft as I'd like Alexey's feedback.

To reproduce:

  • get this PR
  • drop this commit as it fixes the issue: d7922d9
  • mvn clean install
  • mvn clean install -f integration-tests/maven -Dtest=DevMojoIT#testThatSourceChangesAreDetectedOnPomChange

My understanding is that if compile is in the command line, we don't execute it ourselves but... when we are restarting dev mode due to a POM change, we should run compile again.

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven labels Sep 18, 2023
@gsmet gsmet marked this pull request as ready for review September 22, 2023 14:29
@quarkus-bot

This comment has been minimized.

@gsmet gsmet force-pushed the better-maven-its branch from 5465b32 to 35fbd80 Compare October 5, 2023 15:49
@quarkus-bot

This comment has been minimized.

@Sanne
Copy link
Member

Sanne commented Oct 13, 2023

@aloubyansky Looks like your feedback was requested, but not explicitly.. HTH

@gsmet
Copy link
Member Author

gsmet commented Oct 13, 2023

Unfortunately, the last commit is problematic as I used valid ascii characters. I'm not completely sure what's going on with this test as I saw it failing in some of our regular builds, even without this change.

I'll revert the ascii one and see how CI goes.

@quarkus-bot

This comment has been minimized.

@@ -474,7 +474,10 @@ public void testThatSourceChangesAreDetectedOnPomChange() throws Exception {
await()
.pollDelay(100, TimeUnit.MILLISECONDS)
.atMost(1, TimeUnit.MINUTES)
.until(() -> devModeClient.getHttpResponse("/app/hello").contains("hello " + uuid));
.until(() -> {
System.out.println(devModeClient.getHttpResponse("/app/hello"));
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean to keep it a part of the commit?

@quarkus-bot

This comment has been minimized.

@quarkus-bot

This comment has been minimized.

@quarkus-bot

This comment has been minimized.

@quarkus-bot

This comment has been minimized.

gsmet added 6 commits October 25, 2023 18:54
Enforcing versions of the plugins make sure we don't start downloading
them when running the tests which can lead to timeouts.
Also it makes the build more stable and actually tests the version we
are using when creating new projects.
When running mvn compile quarkus:dev, compile is not executed when
restarting dev mode after the pom change. Not specifying compile makes
the compile goal to be run.
With maven-compiler-plugin 2.11.0, this test is not working anymore
on Windows:
Error while storing the mojo status: Input length = 1
We need to see the details of the errors when something is going wrong.
Installing the lib jar a second time leads to an access denied exception
on Windows, probably because the jar is still used by the dev mode
instance.
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 25, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@gsmet gsmet merged commit 12ef71e into quarkusio:main Oct 25, 2023
25 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.6 - main milestone Oct 25, 2023
@gsmet gsmet modified the milestones: 3.6 - main, 3.5.1 Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven area/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants