-
Notifications
You must be signed in to change notification settings - Fork 24
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
Configure Github CI to run tests on Windows #75
Conversation
7e41318
to
72b1fc1
Compare
7a902be
to
0be3168
Compare
1.11.X is not working on Native in Windows due to quarkusio/quarkus#7990. Therefore, we need to upgrade to 1.13.X to make Windows work on Native: #76 |
67569d4
to
7a68c8c
Compare
@Test | ||
public void spacesJVM(TestInfo testInfo) throws IOException, InterruptedException { | ||
testRuntime(testInfo, Apps.JAX_RS_MINIMAL, MvnCmds.JVM, "s p a c e s"); | ||
testRuntime(testInfo, Apps.JAX_RS_MINIMAL, MvnCmds.JVM, "s p a c e s j v m"); |
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.
Explanation about this change in PR description
if (appDestDir.exists()) { | ||
FileUtils.deleteDirectory(appDestDir); | ||
} | ||
removeDirWithSpecialCharacters(appDestDir); |
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.
Explanation about this change in PR description
} | ||
|
||
@Test | ||
public void spacesDEV(TestInfo testInfo) throws IOException, InterruptedException { | ||
testRuntime(testInfo, Apps.JAX_RS_MINIMAL, MvnCmds.DEV, "s p a c e s"); | ||
testRuntime(testInfo, Apps.JAX_RS_MINIMAL, MvnCmds.DEV, "s p a c e s d e v"); |
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.
Explanation about this change in PR description
} | ||
|
||
@Test | ||
@Tag("native") | ||
public void spacesNative(TestInfo testInfo) throws IOException, InterruptedException { | ||
testRuntime(testInfo, Apps.JAX_RS_MINIMAL, MvnCmds.NATIVE, "s p a c e s"); | ||
testRuntime(testInfo, Apps.JAX_RS_MINIMAL, MvnCmds.NATIVE, "s p a c e s n a t i v e"); |
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.
Explanation about this change in PR description
testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
for (Pattern ignoredLine : ignoredLines) { | ||
offendingLines.removeIf(line -> ignoredLine.matcher(line).matches()); |
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.
No auditing what gets skipped
testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java
Outdated
Show resolved
Hide resolved
testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java
Show resolved
Hide resolved
testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java
Outdated
Show resolved
Hide resolved
testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java
Outdated
Show resolved
Hide resolved
Pattern.compile(".*Uber JAR strategy is used for native image source JAR generation on Windows.*"), | ||
Pattern.compile(".*Duplicate entry about.html entry.*"), | ||
Pattern.compile(".*Dependencies with duplicate files detected.*"), | ||
Pattern.compile(".*objcopy executable not found in PATH. Debug symbols will not be separated from executable.*"), |
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.
We have the same issue handled a bit differently - https://github.com/quarkus-qe/quarkus-startstop/blob/main/testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java#L88
TBH I'm not sure if we need to handle special WINDOWS_COMMON / WINDOWS_DEV_MODE_ERRORS / WINDOWS_NATIVE.
I would just go with the platformErrs
approach, merge ^^^ into one array
7a68c8c
to
7133090
Compare
PR updated with the following changes:
I will mark all the comments as resolved once I'm happy with the new changes and the CI passes. |
7133090
to
bf55f8e
Compare
@rsvoboda would you mind to take another look? I moved the windows errors to platform windows errors, but kept the ones about dev console as this is an issue that should be removed once solved. |
testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java
Outdated
Show resolved
Hide resolved
testsuite/src/it/java/io/quarkus/ts/startstop/utils/WhitelistLogLines.java
Outdated
Show resolved
Hide resolved
bf55f8e
to
74dc39a
Compare
PR updated to move some shared constants between Windows and Mac. |
1af6f26
to
b66cbe9
Compare
I've updated the PR to whitelist the "unable to create directory for vert.x cache" error only for Windows. This is reported by quarkusio/quarkus#16895. |
Changes: - Windows fails to stop an application when running on DEV mode. Reported issue: quarkusio/quarkus#14647 - Windows disallows to delete folders when they are being used by the file explorer or the processes are about to be exited. This is why: 1. I'm ignoring these errors when the directory can't be deleted (it's not Quarkus issue) 2. I splitted the "s p a c e s" runs into there different folders for jvm, native and dev mode.
b66cbe9
to
0321a88
Compare
Backport of quarkus-qe#75. Won't run Native as it's not working on 1.11 due to quarkusio/quarkus#14904
Backport of quarkus-qe#75. Won't run Native as it's not working on 1.11 due to quarkusio/quarkus#14904
Backport of #75. Won't run Native as it's not working on 1.11 due to quarkusio/quarkus#14904
Changes: