/
.gitlab-ci.yml
170 lines (150 loc) · 6.05 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
stages:
- build-and-test
- benchmark
- benchmark-completion
variables:
PYTHONUNBUFFERED: "true"
JVMCI_VERSION_CHECK: ignore
ECLIPSE_EXE: /home/gitlab-runner/.local/eclipse/eclipse
GRAALEE_HOME: /home/gitlab-runner/.asdf/installs/java/oracle-graalvm-21.0.2
JAVA_HOME: /home/gitlab-runner/.asdf/installs/java/temurin-21.0.2+13.0.LTS
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"
- (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
test:
stage: build-and-test
tags: [yuria]
script:
- ./som --setup labsjdk
- mx sforceimport
- rm libs/jvmci || true
- ./som --setup labsjdk
- 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
- mx tests-nodestats || true
- mx tests-coverage || true
build:native-interp-ast:
stage: build-and-test
tags: [yuria2]
script:
- ./som --setup labsjdk
- mx sforceimport
- rm libs/jvmci || true
- ./som --setup labsjdk
- 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:
- ./som --setup labsjdk
- mx sforceimport
- rm libs/jvmci || true
- ./som --setup labsjdk
- 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
benchmark-y1:
stage: benchmark
needs: ["build:native-interp-ast", "build:native-interp-bc"]
tags: [yuria]
script:
- ./som --setup labsjdk
- mx sforceimport
- mx --env libgraal build
- 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
# Profile
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf profiling m:yuria
# Run Benchmarks
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf m:yuria
after_script:
- sudo reown-project.sh
benchmark-y2:
stage: benchmark
needs: ["build:native-interp-ast", "build:native-interp-bc"]
tags: [yuria2]
script:
- ./som --setup labsjdk
- mx sforceimport
- mx --env libgraal build
- 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
# Profile
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf profiling m:yuria2
# Run Benchmarks
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf m:yuria2
after_script:
- sudo reown-project.sh
benchmark-y3:
stage: benchmark
needs: ["build:native-interp-ast", "build:native-interp-bc"]
tags: [yuria3]
script:
- ./som --setup labsjdk
- mx sforceimport
- mx --env libgraal build
- 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
# Profile
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf profiling m:yuria3
# Run Benchmarks
- rebench -c --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf m:yuria3
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