forked from Karm/mandrel-integration-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
221 lines (210 loc) · 8.48 KB
/
local_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
name: Mandrel Locally
on:
workflow_dispatch:
push:
paths-ignore:
- 'LICENSE'
- '**.md'
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
paths-ignore:
- 'LICENSE'
- '**.md'
env:
LANG: en_US.UTF-8
FAIL_ON_PERF_REGRESSION: false
CMD_LONG_TIMEOUT_MS: 180000
LONG_GOTO_URL_TIMEOUT_MS: 200000
jobs:
local-run:
name: ${{ matrix.os }} - ${{ matrix.java-version }} - ${{ matrix.mandrel-version }} - ${{ matrix.quarkus-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- quarkus-version: '2.13.3.Final'
mandrel-version: '21.3.6.0-Final'
java-version: '11'
os: 'windows-2019'
timeout-minutes: 80
- quarkus-version: '2.13.3.Final'
mandrel-version: '21.3.6.0-Final'
java-version: '11'
os: 'ubuntu-20.04'
timeout-minutes: 80
- quarkus-version: '2.13.3.Final'
mandrel-version: '21.3.6.0-Final'
java-version: '17'
os: 'windows-2019'
timeout-minutes: 80
- quarkus-version: '2.13.3.Final'
mandrel-version: '21.3.6.0-Final'
java-version: '17'
os: 'ubuntu-20.04'
timeout-minutes: 80
- quarkus-version: '2.13.9.Final'
mandrel-version: '22.3.4.0-Final'
java-version: '17'
os: 'windows-2019'
timeout-minutes: 80
- quarkus-version: '2.13.9.Final'
mandrel-version: '22.3.4.0-Final'
java-version: '17'
os: 'ubuntu-20.04'
timeout-minutes: 80
- quarkus-version: '2.16.12.Final'
mandrel-version: '22.3.4.0-Final'
java-version: '17'
os: 'windows-2019'
timeout-minutes: 80
- quarkus-version: '2.16.12.Final'
mandrel-version: '22.3.4.0-Final'
java-version: '17'
os: 'ubuntu-20.04'
timeout-minutes: 80
- quarkus-version: '3.2.11.Final'
mandrel-version: '23.0.2.1-Final'
java-version: '17'
os: 'windows-2022'
timeout-minutes: 80
- quarkus-version: '3.2.11.Final'
mandrel-version: '23.0.2.1-Final'
java-version: '17'
os: 'ubuntu-20.04'
timeout-minutes: 130
- quarkus-version: '3.5.3'
mandrel-version: '23.1.1.0-Final'
java-version: '21'
os: 'windows-2022'
timeout-minutes: 80
- quarkus-version: '3.5.3'
mandrel-version: '23.1.1.0-Final'
java-version: '21'
os: 'ubuntu-20.04'
timeout-minutes: 130
- quarkus-version: '3.6.0'
mandrel-version: '23.1.1.0-Final'
java-version: '21'
os: 'windows-2022'
timeout-minutes: 80
- quarkus-version: '3.6.0'
mandrel-version: '23.1.1.0-Final'
java-version: '21'
os: 'ubuntu-20.04'
timeout-minutes: 130
- quarkus-version: '3.8.3'
mandrel-version: '23.1.2.0-Final'
java-version: '21'
os: 'windows-2022'
timeout-minutes: 80
- quarkus-version: '3.8.3'
mandrel-version: '23.1.2.0-Final'
java-version: '21'
os: 'ubuntu-20.04'
timeout-minutes: 130
- quarkus-version: '3.9.0.CR2'
mandrel-version: '23.1.2.0-Final'
java-version: '21'
os: 'windows-2022'
timeout-minutes: 80
- quarkus-version: '3.9.0.CR2'
mandrel-version: '23.1.2.0-Final'
java-version: '21'
os: 'ubuntu-20.04'
timeout-minutes: 130
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
path: ts
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ matrix.quarkus-version }}-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ matrix.quarkus-version }}-${{ matrix.os }}-
- uses: actions/cache@v3
name: Mandrel installation cached
id: cache_mandrel
with:
path: |
${{ github.workspace }}/${{ matrix.java-version }}-${{ matrix.mandrel-version }}
key: ${{ matrix.os }}-${{ matrix.java-version }}-${{ matrix.mandrel-version }}
- name: Install Mandrel Windows
if: startsWith(matrix.os, 'windows') && steps.cache_mandrel.outputs.cache-hit != 'true'
run: |
$url= "https://github.com/graalvm/mandrel/releases/download/mandrel-${{ matrix.mandrel-version }}/mandrel-java${{ matrix.java-version }}-windows-amd64-${{ matrix.mandrel-version }}.zip"
$wc = New-Object System.Net.WebClient
$file = $(Split-Path -Path $url -Leaf)
Write-Host "Downloading $url to $Env:temp\$file"
$wc.DownloadFile($url, "$Env:temp\$file")
Expand-Archive "$Env:temp\$file" -DestinationPath "${{ github.workspace }}"
$path=(Get-ChildItem mandrel-*).name
move $path ${{ github.workspace }}/${{ matrix.java-version }}-${{ matrix.mandrel-version }}
shell: powershell
- name: Install Mandrel Linux
if: startsWith(matrix.os, 'ubuntu') && steps.cache_mandrel.outputs.cache-hit != 'true'
run: |
wget "https://github.com/graalvm/mandrel/releases/download/mandrel-${{ matrix.mandrel-version }}/mandrel-java${{ matrix.java-version }}-linux-amd64-${{ matrix.mandrel-version }}.tar.gz"
tar -xf mandrel-java${{ matrix.java-version }}-linux-amd64-${{ matrix.mandrel-version }}.tar.gz
rm *.tar.gz
mv $( echo mandrel-java${{ matrix.java-version }}*-*/ ) ${{ github.workspace }}/${{ matrix.java-version }}-${{ matrix.mandrel-version }}
shell: bash
- name: Windows test
if: startsWith(matrix.os, 'windows')
timeout-minutes: ${{ matrix.timeout-minutes }}
env:
MAVEN_OPTS: -Xmx1g
run: |
set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\;%PATH%
set PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\;%PATH%
call vcvars64
IF NOT %ERRORLEVEL% == 0 ( exit 1 )
set "GRAALVM_HOME=${{ github.workspace }}\${{ matrix.java-version }}-${{ matrix.mandrel-version }}"
set "JAVA_HOME=%GRAALVM_HOME%"
set "PATH=%JAVA_HOME%\bin;%PATH%"
if not exist "%GRAALVM_HOME%\bin\native-image.cmd" (
echo "Cannot find native-image tool. Quitting..."
exit 1
) else (
echo "native-image.cmd is present, good."
cmd /C native-image --version
)
pushd ts
mkdir ~/.m2
copy .github/mvn-settings.xml ~/.m2/settings.xml
mvn clean verify -Ptestsuite -DincludeTags=reproducers,perfcheck,runtimes -Dquarkus.version=${{ matrix.quarkus-version }}
shell: cmd
- name: Linux test
if: startsWith(matrix.os, 'ubuntu')
timeout-minutes: ${{ matrix.timeout-minutes }}
env:
MAVEN_OPTS: -Xmx1g
run: |
sudo apt-get update -y
sudo apt-get install -y gdb
export JAVA_HOME=${{ github.workspace }}/${{ matrix.java-version }}-${{ matrix.mandrel-version }}
export GRAALVM_HOME="${JAVA_HOME}"
export PATH="${JAVA_HOME}/bin:$PATH"
if [[ ! -e "${JAVA_HOME}/bin/native-image" ]]; then
echo "Cannot find native-image tool. Quitting..."
exit 1
fi
native-image --version
pushd ts
mkdir -p ~/.m2/
cp .github/mvn-settings.xml ~/.m2/settings.xml
echo 0 | sudo tee /proc/sys/kernel/perf_event_paranoid
mvn clean verify -Ptestsuite -DincludeTags=reproducers,perfcheck,runtimes -Dquarkus.version=${{ matrix.quarkus-version }}
shell: bash
- name: Prepare failure archive (if maven failed)
if: failure()
run: tar czvf test-reports-mandrel-it.tgz ${{ github.workspace }}/ts/testsuite/target/archived-logs
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v3
if: failure()
with:
name: reports-${{ matrix.mandrel-version }}-${{ matrix.java-version }}-${{ matrix.quarkus-version }}-${{ matrix.os }}
path: 'test-reports-mandrel-it.tgz'