-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
222 lines (184 loc) · 6.85 KB
/
.gitlab-ci.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
222
stages:
- build-and-test
- benchmark
- benchmark-completion
variables:
PYTHONUNBUFFERED: "true"
JVMCI_VERSION_CHECK: ignore
GRAALEE_VERSION: oracle-graalvm-ea-jdk-24.0.0-ea.01
JAVA_VERSION: temurin-22.0.1+8
.shared-scripts:
download-binaries: &DOWNLOAD_BINARIES |
sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-native-interp-ast.lz4
sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-native-interp-bc.lz4
sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-native-interp-ast-ee.lz4
sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-native-interp-bc-ee.lz4
lz4 -d som-native-interp-ast.lz4 som-native-interp-ast
lz4 -d som-native-interp-bc.lz4 som-native-interp-bc
lz4 -d som-native-interp-ast-ee.lz4 som-native-interp-ast-ee
lz4 -d som-native-interp-bc-ee.lz4 som-native-interp-bc-ee
build-graal-locally: &BUILD_GRAAL_LOCALLY |
./som --setup labsjdk
mx sforceimport
mx --env libgraal build
ensure_labsjdk: &ENSURE_LABSJDK_AND_GRAAL_VERSION |
./som --setup labsjdk
mx sforceimport
rm libs/jvmci || true
./som --setup labsjdk
before_script:
- (cd core-lib && git remote add smarr https://github.com/smarr/SOM.git || true; git fetch --all)
- git submodule update --init
- ./som --setup latest-mx
- export PATH=${PATH}:$(pwd)/../mx:/opt/local/bin
- echo "PATH=$PATH"
- (cd ../graal/compiler/mxbuild && sudo reown-project.sh) || true
- |
COMMIT_ID=`./som --setup truffle-commit-id`
(cd ../graal && git fetch --all && git reset --hard $COMMIT_ID) || true
- |
~/.asdf/bin/asdf install awfy $GRAALEE_VERSION
~/.asdf/bin/asdf install java $JAVA_VERSION
export GRAALEE_HOME=$HOME/.asdf/installs/awfy/$GRAALEE_VERSION
export ECLIPSE_EXE=$HOME/.local/eclipse/eclipse
export JAVA_HOME=$HOME/.asdf/installs/java/$JAVA_VERSION
if [ -d $GRAALEE_HOME/Contents/Home ]; then
export GRAALEE_HOME=$GRAALEE_HOME/Contents/Home
fi
test:
stage: build-and-test
tags: [yuria4]
script:
- *ENSURE_LABSJDK_AND_GRAAL_VERSION
- mx build
- mx tests-junit
- mx tests-som
- mx tests-somsom
- mx build-native-image-tool
- mx build-native-obj-test
- ./som-obj-storage-tester
- export JAVA_HOME=`pwd`/libs/jvmci
- (cd ../graal/tools && mx build)
- mx tests-nodestats || true
- mx tests-coverage || true
build:native-interp-ast:
stage: build-and-test
tags: [yuria2]
script:
- *ENSURE_LABSJDK_AND_GRAAL_VERSION
- mx build
- mx build-native --no-jit -t AST -bn
- ./som-native-interp-ast -cp Smalltalk TestSuite/TestHarness.som
- mx build-native --no-jit -t AST -g ${GRAALEE_HOME}
- ./som-native-interp-ast-ee -cp Smalltalk TestSuite/TestHarness.som
# Package and Upload
- lz4 som-native-interp-ast som-native-interp-ast.lz4
- lz4 som-native-interp-ast-ee som-native-interp-ast-ee.lz4
- |
sftp tmp-artifacts << EOF
-mkdir incoming/${CI_PIPELINE_ID}/
put som-native-interp-ast.lz4 incoming/${CI_PIPELINE_ID}/
put som-native-interp-ast-ee.lz4 incoming/${CI_PIPELINE_ID}/
EOF
build:native-interp-bc:
stage: build-and-test
tags: [yuria3]
script:
- *ENSURE_LABSJDK_AND_GRAAL_VERSION
- mx build
- mx build-native --no-jit -t BC -bn
- ./som-native-interp-bc -cp Smalltalk TestSuite/TestHarness.som
- mx build-native --no-jit -t BC -g ${GRAALEE_HOME}
- ./som-native-interp-bc-ee -cp Smalltalk TestSuite/TestHarness.som
- lz4 som-native-interp-bc som-native-interp-bc.lz4
- lz4 som-native-interp-bc-ee som-native-interp-bc-ee.lz4
- |
sftp tmp-artifacts << EOF
-mkdir incoming/${CI_PIPELINE_ID}/
put som-native-interp-bc.lz4 incoming/${CI_PIPELINE_ID}/
put som-native-interp-bc-ee.lz4 incoming/${CI_PIPELINE_ID}/
EOF
build:aarch64-test-and-rebench:
stage: build-and-test
tags: [zullie1]
script:
- pmset -g live
- pmset -g systemstate
- *ENSURE_LABSJDK_AND_GRAAL_VERSION
- mx build
- mx --env libgraal build
- mx tests-junit
- mx tests-som
- mx tests-somsom
- mx build-native-image-tool
- mx build-native-obj-test
- ./som-obj-storage-tester
- mx build-native --no-jit -t BC
- ./som-native-interp-bc -cp Smalltalk TestSuite/TestHarness.som
- mx build-native --no-jit -t AST
- ./som-native-interp-ast -cp Smalltalk TestSuite/TestHarness.som
- mx build-native --no-jit -t BC -g ${GRAALEE_HOME}
- ./som-native-interp-bc-ee -cp Smalltalk TestSuite/TestHarness.som
- mx build-native --no-jit -t AST -g ${GRAALEE_HOME}
- ./som-native-interp-ast-ee -cp Smalltalk TestSuite/TestHarness.som
- mx tests-nodestats || true
- mx tests-coverage || true
- export PATH=$PATH:/Users/gitlab-runner/Library/Python/3.12/bin
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf
benchmark-y1:
stage: benchmark
needs: ["build:native-interp-ast", "build:native-interp-bc"]
tags: [yuria]
script:
- *BUILD_GRAAL_LOCALLY
- *DOWNLOAD_BINARIES
# Profile
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf profiling t:yuria
# Run Benchmarks
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf t:yuria
after_script:
- sudo reown-project.sh
benchmark-y2:
stage: benchmark
needs: ["build:native-interp-ast", "build:native-interp-bc"]
tags: [yuria2]
script:
- *BUILD_GRAAL_LOCALLY
- *DOWNLOAD_BINARIES
# Profile
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf profiling t:yuria2
# Run Benchmarks
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf t:yuria2
after_script:
- sudo reown-project.sh
benchmark-y3:
stage: benchmark
needs: ["build:native-interp-ast", "build:native-interp-bc"]
tags: [yuria3]
script:
- *BUILD_GRAAL_LOCALLY
- *DOWNLOAD_BINARIES
# Profile
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf profiling t:yuria3
# Run Benchmarks
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf t:yuria3
after_script:
- sudo reown-project.sh
benchmark-y4:
stage: benchmark
needs: ["build:native-interp-ast", "build:native-interp-bc"]
tags: [yuria4]
script:
- *BUILD_GRAAL_LOCALLY
- *DOWNLOAD_BINARIES
# Profile
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf profiling t:yuria4 || true
# Run Benchmarks
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" rebench.conf t:yuria4
after_script:
- sudo reown-project.sh
report-completion:
stage: benchmark-completion
tags: [yuria]
script:
- rebench --experiment="CI ID $CI_PIPELINE_ID" --report-completion rebench.conf