Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 898bbd1

Browse files
committed
Break tests to isolate failures and increase total build speed
1 parent 6a7ea03 commit 898bbd1

File tree

1 file changed

+143
-25
lines changed

1 file changed

+143
-25
lines changed

.circleci/config.yml

Lines changed: 143 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
docker:
55
# `kronicdeth` is temporary until we get a DockerHub organization
66
- image: kronicdeth/lumen-development
7-
resource_class: medium+
7+
resource_class: xlarge
88
environment:
99
CARGO_HOME: cargo
1010
steps:
@@ -113,20 +113,20 @@ jobs:
113113
command: |
114114
rustfmt --version
115115
cargo fmt -- --check
116-
x86_64_multithreaded_test:
116+
x86_64_examples_spawn_chain_test:
117117
docker:
118118
# `kronicdeth` is temporary until we get a DockerHub organization
119119
- image: kronicdeth/lumen-development
120-
resource_class: medium+
121120
environment:
122121
CARGO_HOME: cargo
123122
steps:
124123
- attach_workspace:
125124
at: .
126125
- run:
127126
name: Run all tests
128-
command: cargo test --all --all-targets --exclude spawn-chain --frozen
129-
x86_64_single_threaded_test:
127+
working_directory: "examples/spawn-chain"
128+
command: cargo test --locked -- --test-threads=1
129+
x86_64_liblumen_alloc_test:
130130
docker:
131131
# `kronicdeth` is temporary until we get a DockerHub organization
132132
- image: kronicdeth/lumen-development
@@ -137,8 +137,9 @@ jobs:
137137
at: .
138138
- run:
139139
name: Run all tests
140-
command: cargo test --all-targets --frozen --package spawn-chain -- --test-threads=1
141-
x86_64_eir_interpreter:
140+
working_directory: "liblumen_alloc"
141+
command: cargo test --locked
142+
x86_64_liblumen_arena_test:
142143
docker:
143144
# `kronicdeth` is temporary until we get a DockerHub organization
144145
- image: kronicdeth/lumen-development
@@ -148,10 +149,101 @@ jobs:
148149
- attach_workspace:
149150
at: .
150151
- run:
151-
name: Run EIR Interpreter demos
152+
name: Run all tests
153+
working_directory: "liblumen_arena"
154+
command: cargo test --locked
155+
x86_64_liblumen_beam_test:
156+
docker:
157+
# `kronicdeth` is temporary until we get a DockerHub organization
158+
- image: kronicdeth/lumen-development
159+
environment:
160+
CARGO_HOME: cargo
161+
steps:
162+
- attach_workspace:
163+
at: .
164+
- run:
165+
name: Run all tests
166+
working_directory: "liblumen_beam"
167+
command: cargo test --locked
168+
x86_64_liblumen_codegen_test:
169+
docker:
170+
# `kronicdeth` is temporary until we get a DockerHub organization
171+
- image: kronicdeth/lumen-development
172+
environment:
173+
CARGO_HOME: cargo
174+
steps:
175+
- attach_workspace:
176+
at: .
177+
- run:
178+
name: Run all tests
179+
working_directory: "liblumen_codegen"
180+
command: cargo test --locked
181+
x86_64_liblumen_common_test:
182+
docker:
183+
# `kronicdeth` is temporary until we get a DockerHub organization
184+
- image: kronicdeth/lumen-development
185+
environment:
186+
CARGO_HOME: cargo
187+
steps:
188+
- attach_workspace:
189+
at: .
190+
- run:
191+
name: Run all tests
192+
working_directory: "liblumen_common"
193+
command: cargo test --locked
194+
x86_64_liblumen_compiler_test:
195+
docker:
196+
# `kronicdeth` is temporary until we get a DockerHub organization
197+
- image: kronicdeth/lumen-development
198+
environment:
199+
CARGO_HOME: cargo
200+
steps:
201+
- attach_workspace:
202+
at: .
203+
- run:
204+
name: Run all tests
205+
working_directory: "liblumen_compiler"
206+
command: cargo test --locked
207+
x86_64_liblumen_core_test:
208+
docker:
209+
# `kronicdeth` is temporary until we get a DockerHub organization
210+
- image: kronicdeth/lumen-development
211+
environment:
212+
CARGO_HOME: cargo
213+
steps:
214+
- attach_workspace:
215+
at: .
216+
- run:
217+
name: Run all tests
218+
working_directory: "liblumen_core"
219+
command: cargo test --locked
220+
x86_64_liblumen_diagnostics_test:
221+
docker:
222+
# `kronicdeth` is temporary until we get a DockerHub organization
223+
- image: kronicdeth/lumen-development
224+
environment:
225+
CARGO_HOME: cargo
226+
steps:
227+
- attach_workspace:
228+
at: .
229+
- run:
230+
name: Run all tests
231+
working_directory: "liblumen_diagnostics"
232+
command: cargo test --locked
233+
x86_64_liblumen_eir_interpreter_test:
234+
docker:
235+
# `kronicdeth` is temporary until we get a DockerHub organization
236+
- image: kronicdeth/lumen-development
237+
environment:
238+
CARGO_HOME: cargo
239+
steps:
240+
- attach_workspace:
241+
at: .
242+
- run:
243+
name: Run all tests
152244
working_directory: "liblumen_eir_interpreter"
153245
command: cargo run -- --ident fib:run/0 fib.erl
154-
chrome_test:
246+
x86_64_liblumen_syntax_test:
155247
docker:
156248
# `kronicdeth` is temporary until we get a DockerHub organization
157249
- image: kronicdeth/lumen-development
@@ -161,9 +253,10 @@ jobs:
161253
- attach_workspace:
162254
at: .
163255
- run:
164-
working_directory: "lumen_runtime"
165-
command: wasm-pack test --chrome --headless
166-
firefox_test:
256+
name: Run all tests
257+
working_directory: "liblumen_syntax"
258+
command: cargo test --locked
259+
x86_64_lumen_test:
167260
docker:
168261
# `kronicdeth` is temporary until we get a DockerHub organization
169262
- image: kronicdeth/lumen-development
@@ -173,20 +266,23 @@ jobs:
173266
- attach_workspace:
174267
at: .
175268
- run:
176-
working_directory: "lumen_runtime"
177-
command: wasm-pack test --firefox --headless
178-
node_test:
269+
name: Run all tests
270+
working_directory: "lumen"
271+
command: cargo test --locked
272+
x86_64_lumen_runtime_test:
179273
docker:
180274
# `kronicdeth` is temporary until we get a DockerHub organization
181275
- image: kronicdeth/lumen-development
276+
resource_class: xlarge
182277
environment:
183278
CARGO_HOME: cargo
184279
steps:
185280
- attach_workspace:
186281
at: .
187282
- run:
283+
name: Run all tests
188284
working_directory: "lumen_runtime"
189-
command: wasm-pack test --node
285+
command: cargo test --locked
190286
workflows:
191287
version: 2
192288
primary:
@@ -196,21 +292,43 @@ workflows:
196292
- check_formatted:
197293
requires:
198294
- x86_64_build
199-
- x86_64_multithreaded_test:
295+
- x86_64_examples_spawn_chain_test:
200296
requires:
201297
- x86_64_build
202-
- x86_64_single_threaded_test:
298+
- x86_64_liblumen_alloc_test:
203299
requires:
204300
- x86_64_build
205-
- x86_64_eir_interpreter:
301+
- x86_64_liblumen_arena_test:
206302
requires:
207303
- x86_64_build
208-
- chrome_test:
304+
- x86_64_liblumen_beam_test:
209305
requires:
210-
- wasm32_build
211-
- firefox_test:
306+
- x86_64_build
307+
- x86_64_liblumen_codegen_test:
308+
requires:
309+
- x86_64_build
310+
- x86_64_liblumen_common_test:
212311
requires:
213-
- wasm32_build
214-
- node_test:
312+
- x86_64_build
313+
- x86_64_liblumen_compiler_test:
314+
requires:
315+
- x86_64_build
316+
- x86_64_liblumen_core_test:
215317
requires:
216-
- wasm32_build
318+
- x86_64_build
319+
- x86_64_liblumen_diagnostics_test:
320+
requires:
321+
- x86_64_build
322+
- x86_64_liblumen_eir_interpreter_test:
323+
requires:
324+
- x86_64_build
325+
- x86_64_liblumen_syntax_test:
326+
requires:
327+
- x86_64_build
328+
- x86_64_lumen_test:
329+
requires:
330+
- x86_64_build
331+
- x86_64_lumen_runtime_test:
332+
requires:
333+
- x86_64_build
334+

0 commit comments

Comments
 (0)