Commit b50e0a9
authored
ci: staged per-arch pipelines — deps→cache→build→fan-out on one hot runner (#78)
* perf(ci): lambda-tests follows the prod arch
The lambda binary ships and runs on aarch64 only; running its server-off
test config on the x86 lane too bought a duplicate workspace compile+test
(~3-4 min now that the checks actually run tests) without covering anything
the aarch64-linux and darwin lanes don't. Chaining it into nextest instead
was measured and rejected: feature unification with dev-deps makes the
test-profile lib a distinct compilation unit (699/699 tests pass either
way, but zero compile reuse — 229s chained vs 233s unchained locally).
* ci: staged per-arch pipelines — deps first, cache, build, fan out on the hot runner
Each arch runs one pipeline: build the crane dependency closures (crate
deps; wasm toolchain on arm) and publish the binary cache IMMEDIATELY, so
a failure in any later stage never costs the next run its warm deps and
every branch benefits from the first build; then the source-keyed
build/test/lint stage; then the cheap fan-out — image smoke and the node
addon — as steps on the same already-hot runner instead of fresh runners
each paying installer+eval+restore.
Arch-independent checks (clippy/fmt/no-node-spawn/wasm) move to the arm
lane (~1.8x faster per stage), rebalancing the two critical paths. The
release workflow stops saving the cache: the deps stage is the single
publisher, so entries hold exactly the reusable closure and no
source-keyed artifacts. buildId untouched (checks and workflows are
outside its hash set).
* ci: bound check parallelism (OOM) and strip ANSI in the ran-tests guard
The rebalanced arm lane's unbounded derivation parallelism OOM-killed the
16 GB runner (exit 143); --max-jobs 2 bounds memory with cores saturated.
The zero-tests guard could never match a CI log: CARGO_TERM_COLOR=always
wraps the nextest summary in escapes — strip before grepping.
* ci: ran-tests guard must not use grep -q under pipefail
-q exits on first match, SIGPIPEs sed, and pipefail converts the
successful match into a failure — it only fired when matches occur early
in a long log (lambda-tests), which is why nextest passed the same guard.1 parent 7e71572 commit b50e0a9
4 files changed
Lines changed: 84 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
132 | 148 | | |
133 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
134 | 167 | | |
| 168 | + | |
135 | 169 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
139 | 173 | | |
140 | 174 | | |
141 | 175 | | |
142 | | - | |
| 176 | + | |
| 177 | + | |
143 | 178 | | |
144 | 179 | | |
145 | 180 | | |
| |||
153 | 188 | | |
154 | 189 | | |
155 | 190 | | |
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 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | 395 | | |
400 | 396 | | |
401 | 397 | | |
| |||
829 | 825 | | |
830 | 826 | | |
831 | 827 | | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | 828 | | |
836 | 829 | | |
837 | 830 | | |
| |||
906 | 899 | | |
907 | 900 | | |
908 | 901 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | 902 | | |
913 | 903 | | |
914 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
61 | 78 | | |
62 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments