-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Github CI to run tests on Windows
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.
- Loading branch information
Showing
7 changed files
with
179 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ on: | |
schedule: | ||
- cron: '0 23 * * *' | ||
jobs: | ||
build-released-jvm: | ||
name: JVM build - released Quarkus | ||
linux-build-released-jvm: | ||
name: Linux - JVM build - released Quarkus | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -35,8 +35,8 @@ jobs: | |
with: | ||
name: ci-artifacts | ||
path: artifacts-jvm${{ matrix.java }}.zip | ||
build-released-native: | ||
name: Native build - released Quarkus | ||
linux-build-released-native: | ||
name: Linux - Native build - released Quarkus | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -96,4 +96,95 @@ jobs: | |
if: failure() | ||
with: | ||
name: ci-artifacts | ||
path: artifacts-code-start${{ matrix.java }}.zip | ||
path: artifacts-code-start${{ matrix.java }}.zip | ||
windows-build-released-jvm: | ||
name: Windows - JVM build - released Quarkus | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
java: [ 11 ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Install JDK {{ matrix.java }} | ||
uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Build with Maven | ||
shell: bash | ||
run: | | ||
mvn -V -B -s .github/mvn-settings.xml clean verify -DexcludeTags='product,native,codequarkus' | ||
- name: Zip Artifacts | ||
if: failure() | ||
shell: bash | ||
run: | | ||
# Disambiguate windows find from cygwin find | ||
/usr/bin/find . -name '*-reports' -o -name 'archived-logs' -type d | tar -czf artifacts-windows-jvm${{ matrix.java }}.tar -T - | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: ci-artifacts | ||
path: artifacts-windows-jvm${{ matrix.java }}.tar | ||
windows-build-released-native: | ||
name: Windows - Native build - released Quarkus | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
java: [ 11 ] | ||
# Version 21.1 is not working due to https://github.com/quarkusio/quarkus/issues/14904 | ||
graalvm-version: [ "21.0.0.2.java11" ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Install JDK {{ matrix.java }} | ||
uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Install cl.exe | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- uses: microsoft/setup-msbuild@v1 | ||
- name: Setup GraalVM | ||
id: setup-graalvm | ||
uses: DeLaGuardo/setup-graalvm@master | ||
with: | ||
graalvm-version: ${{ matrix.graalvm-version }} | ||
java: java${{ matrix.graalvm-version }} | ||
- name: Install native-image component | ||
run: | | ||
gu.cmd install native-image | ||
- name: Configure Pagefile | ||
# Increased the page-file size due to memory-consumption of native-image command | ||
# For details see https://github.com/actions/virtual-environments/issues/785 | ||
uses: al-cheb/[email protected] | ||
# We do this so we can get better analytics for the downloaded version of the build images | ||
- name: Update Docker Client User Agent | ||
shell: bash | ||
run: | | ||
cat <<< $(jq '.HttpHeaders += {"User-Agent": "Quarkus-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json | ||
- name: Build with Maven | ||
run: | | ||
mvn -V -B -s .github/mvn-settings.xml clean verify -DexcludeTags="product,codequarkus" -Dquarkus.native.native-image-xmx=6g | ||
shell: cmd | ||
- name: Zip Artifacts | ||
if: failure() | ||
shell: bash | ||
run: | | ||
# Disambiguate windows find from cygwin find | ||
/usr/bin/find . -name '*-reports' -o -name 'archived-logs' -type d | tar -czf artifacts-windows-native${{ matrix.java }}.tar -T - | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: ci-artifacts | ||
path: artifacts-windows-native${{ matrix.java }}.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,11 @@ | |
* @author Michal Karm Babacek <[email protected]> | ||
*/ | ||
public enum WhitelistLogLines { | ||
COMMON(new Pattern[] { | ||
// Randomly fails when vertx-cache temporary directory exists. Related to https://github.com/quarkusio/quarkus/issues/7678 | ||
// And https://github.com/quarkusio/quarkus/pull/15541/files#diff-a38e0d86cf6a637c19b6e0a0e23959f644886bdcc0f0e5615ce7cfa0e6bc9909R244 | ||
Pattern.compile(".*Unable to make the Vert.x cache directory.*"), | ||
}), | ||
JAX_RS_MINIMAL(new Pattern[]{ | ||
// Some artifacts names... | ||
Pattern.compile(".*maven-error-diagnostics.*"), | ||
|
@@ -77,6 +82,25 @@ public enum WhitelistLogLines { | |
// (no explicit configuration, none or multiple JDBC driver extensions) | ||
// Result of DevServices support https://github.com/quarkusio/quarkus/pull/14960 | ||
Pattern.compile(".*Unable to determine a database type for default datasource.*"), | ||
}), | ||
WINDOWS_COMMON(new Pattern[] { | ||
// When running on Windows, some warning SLF4J traces are randomly printed | ||
Pattern.compile(".*SLF4J: .*") | ||
}), | ||
WINDOWS_DEV_MODE_ERRORS(new Pattern[]{ | ||
Pattern.compile(".*Re-run Maven using the -X switch to enable full debug logging.*"), | ||
Pattern.compile(".*For more information about the errors and possible solutions, please read the following articles.*"), | ||
Pattern.compile(".*Failed to run: Dev mode process did not complete successfully.*"), | ||
Pattern.compile(".*http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException.*"), | ||
Pattern.compile(".*To see the full stack trace of the errors, re-run Maven with the -e switch.*"), | ||
Pattern.compile("\\[ERROR\\] *"), | ||
}), | ||
WINDOWS_NATIVE(new Pattern[]{ | ||
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.*"), | ||
Pattern.compile(".*That will result in a larger native image with debug symbols embedded in it.*"), | ||
}); | ||
|
||
public final Pattern[] errs; | ||
|