forked from smarr/PySOM
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
196 lines (161 loc) · 6.81 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
stages:
- build-test
- benchmark
- benchmark-completion
variables:
PYTHONUNBUFFERED: "true"
PYPY_RELEASE: "7.3.16"
before_script:
- git submodule update --init
- ~/.asdf/bin/asdf install awfy pypysrc-2.7-v${PYPY_RELEASE}
- ~/.asdf/bin/asdf install python pypy2.7-${PYPY_RELEASE}
- export PYPY_SRC_DIR=$HOME/.asdf/installs/awfy/pypysrc-2.7-v${PYPY_RELEASE}
- export PYPY_BIN_DIR=$HOME/.asdf/installs/python/pypy2.7-${PYPY_RELEASE}/bin
- export PROJECT_FOLDER=$(pwd)
- export PYTHONPATH=${PYTHONPATH}:${PYPY_SRC_DIR}:src
- export RPYTHON=${PYPY_SRC_DIR}/rpython/bin/rpython
build:aarch64-test-and-rebench:
stage: build-test
tags: [zullie1]
script:
- export PATH=/opt/local/bin:/opt/local/sbin:/Users/gitlab-runner/Library/Python/3.12/bin:${PATH}:${PYPY_BIN_DIR}
# BC JIT Compiled Version
- SOM_INTERP=BC $RPYTHON --batch -Ojit src/main_rpython.py
- ./som-bc-jit -cp Smalltalk TestSuite/TestHarness.som
- ./som-bc-jit -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
# AST JIT Compiled Version
- SOM_INTERP=AST $RPYTHON --batch -Ojit src/main_rpython.py
- ./som-ast-jit -cp Smalltalk TestSuite/TestHarness.som
- ./som-ast-jit -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
# BC Interpreter
- SOM_INTERP=BC $RPYTHON --batch src/main_rpython.py
- ./som-bc-interp -cp Smalltalk TestSuite/TestHarness.som
- ./som-bc-interp -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
# AST Interpreter
- SOM_INTERP=AST $RPYTHON --batch src/main_rpython.py
- ./som-ast-interp -cp Smalltalk TestSuite/TestHarness.som
- ./som-ast-interp -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
- (cd Examples/Benchmarks/TestSuite && ./duplicate-tests.sh)
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf
build-and-test-interpreters:
stage: build-test
tags: [yuria]
script:
- export PATH=$PATH:$PYPY_BIN_DIR
- export SOM_INTERP=BC
- (cd Examples/Benchmarks/TestSuite && ./duplicate-tests.sh)
# Unit Tests
- PYTHONPATH=src python3 -m pytest
- ./som.sh -cp Smalltalk TestSuite/TestHarness.som
# Interpreter
- $RPYTHON --batch src/main_rpython.py
- ./som-bc-interp -cp Smalltalk TestSuite/TestHarness.som
- ./som-bc-interp -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
- export SOM_INTERP=AST
# Unit Tests
- PYTHONPATH=src python3 -m pytest
- ./som.sh -cp Smalltalk TestSuite/TestHarness.som
# Interpreter
- $RPYTHON --batch src/main_rpython.py
- ./som-ast-interp -cp Smalltalk TestSuite/TestHarness.som
- ./som-ast-interp -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
# Package and Upload
- lz4 som-ast-interp som-ast-interp.lz4
- lz4 som-bc-interp som-bc-interp.lz4
- |
sftp tmp-artifacts << EOF
-mkdir incoming/${CI_PIPELINE_ID}/
put ${PROJECT_FOLDER}/som-ast-interp.lz4 incoming/${CI_PIPELINE_ID}/
put ${PROJECT_FOLDER}/som-bc-interp.lz4 incoming/${CI_PIPELINE_ID}/
EOF
build-and-test-jit-bc:
stage: build-test
tags: [yuria2]
script:
- export PATH=$PATH:$PYPY_BIN_DIR
- export SOM_INTERP=BC
# JIT Compiled Version
- $RPYTHON --batch -Ojit src/main_rpython.py
- ./som-bc-jit -cp Smalltalk TestSuite/TestHarness.som
- (cd Examples/Benchmarks/TestSuite && ./duplicate-tests.sh)
- ./som-bc-jit -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
# Package and Upload
- lz4 som-bc-jit som-bc-jit.lz4
- |
sftp tmp-artifacts << EOF
-mkdir incoming/${CI_PIPELINE_ID}/
put ${PROJECT_FOLDER}/som-bc-jit.lz4 incoming/${CI_PIPELINE_ID}/
EOF
build-and-test-jit-ast:
stage: build-test
tags: [yuria3]
script:
- export PATH=$PATH:$PYPY_BIN_DIR
- export SOM_INTERP=AST
# JIT Compiled Version
- $RPYTHON --batch -Ojit src/main_rpython.py
- ./som-ast-jit -cp Smalltalk TestSuite/TestHarness.som
- (cd Examples/Benchmarks/TestSuite && ./duplicate-tests.sh)
- ./som-ast-jit -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
# Package and Upload
- lz4 som-ast-jit som-ast-jit.lz4
- |
sftp tmp-artifacts << EOF
-mkdir incoming/${CI_PIPELINE_ID}/
put ${PROJECT_FOLDER}/som-ast-jit.lz4 incoming/${CI_PIPELINE_ID}/
EOF
benchmark-y1:
stage: benchmark
needs:
[build-and-test-interpreters, build-and-test-jit-bc, build-and-test-jit-ast]
tags: [yuria]
script:
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-ast-jit.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-ast-interp.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-bc-jit.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-bc-interp.lz4
- lz4 -d som-ast-jit.lz4 som-ast-jit
- lz4 -d som-ast-interp.lz4 som-ast-interp
- lz4 -d som-bc-jit.lz4 som-bc-jit
- lz4 -d som-bc-interp.lz4 som-bc-interp
# Run Benchmarks
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf m:yuria
benchmark-y2:
stage: benchmark
needs:
[build-and-test-interpreters, build-and-test-jit-bc, build-and-test-jit-ast]
tags: [yuria2]
script:
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-ast-jit.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-ast-interp.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-bc-jit.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-bc-interp.lz4
- lz4 -d som-ast-jit.lz4 som-ast-jit
- lz4 -d som-ast-interp.lz4 som-ast-interp
- lz4 -d som-bc-jit.lz4 som-bc-jit
- lz4 -d som-bc-interp.lz4 som-bc-interp
# Run Benchmarks
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf m:yuria2
benchmark-y3:
stage: benchmark
needs:
[build-and-test-interpreters, build-and-test-jit-bc, build-and-test-jit-ast]
tags: [yuria3]
script:
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-ast-jit.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-ast-interp.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-bc-jit.lz4
- sftp tmp-artifacts:incoming/${CI_PIPELINE_ID}/som-bc-interp.lz4
- lz4 -d som-ast-jit.lz4 som-ast-jit
- lz4 -d som-ast-interp.lz4 som-ast-interp
- lz4 -d som-bc-jit.lz4 som-bc-jit
- lz4 -d som-bc-interp.lz4 som-bc-interp
# Run Benchmarks
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf m:yuria3
report-completion:
stage: benchmark-completion
needs:
[benchmark-y1, benchmark-y2, benchmark-y3, build:aarch64-test-and-rebench]
tags: [yuria]
script:
- rebench --experiment="CI ID $CI_PIPELINE_ID" --report-completion rebench.conf