Commit de823e0
* fix(ruvector): remove dead external parallel-worker import (#531)
The ONNX embedder dynamically imported `ruvector-onnx-embeddings-wasm/parallel`
in two places — a package that was never published, never declared in
package.json, and explicitly rejected in ADR-194. Both import sites resolved
into catch blocks, so the external multi-core path was dead code while
`detectParallelAvailable()` reported availability based on the missing package.
- onnx-embedder.ts: drop both `import('ruvector-onnx-embeddings-wasm/parallel')`
sites; `tryInitParallel()` now goes straight to the bundled, zero-dependency
worker pool (`onnx/bundled-parallel.mjs`) — the only parallel implementation.
- `detectParallelAvailable()` now probes the bundled pool file instead of the
unpublished external package, so the capability signal is correct.
- Runtime behavior is preserved: the old external attempt always threw, and
'auto'/false already fell through to return false.
- CI: add a guard step to ruvector-npm-ci that fails the build if any source
re-introduces an import/require/from of the dead package (doc comments OK).
- Bump 0.2.27 → 0.2.28.
Validated: tsc clean, `node --test tests/*.test.mjs` 8/8 pass (incl. worker-pool
cosine-equivalence), guard verified to fire on a reintroduced import.
Closes #531
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(ci): ruvector smoke uses --dimension (CLI flag is singular, not --dimensions)
The functional-smoke job called `create --dimensions 64` but the CLI option
is `-d, --dimension`. Pre-existing failure on main, surfaced while shipping #531.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: ruvnet <ruvnet@gmail.com>
1 parent 712e22c commit de823e0
3 files changed
Lines changed: 39 additions & 34 deletions
File tree
- .github/workflows
- npm/packages/ruvector
- src/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
43 | 56 | | |
44 | 57 | | |
45 | 58 | | |
| |||
160 | 173 | | |
161 | 174 | | |
162 | 175 | | |
163 | | - | |
| 176 | + | |
164 | 177 | | |
165 | 178 | | |
166 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | | - | |
| 127 | + | |
124 | 128 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
149 | 162 | | |
150 | 163 | | |
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 | | - | |
| 164 | + | |
177 | 165 | | |
178 | 166 | | |
179 | 167 | | |
180 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
181 | 173 | | |
182 | 174 | | |
183 | 175 | | |
| |||
0 commit comments