Commit c52b436
authored
ci: skip embedding benchmark on patch releases (#1451)
* ci: skip embedding benchmark on patch releases
* ci: fix embedding benchmark cold-start failures due to stale cache key
Cache key was hashing src/domain/search/**, which changes on every release
even when no models change — causing a full cache miss on each publish run.
When models aren't cached, workers must download large files before inference,
which exceeds the 1800s per-model timeout (designed for warm runs only).
Fix 1: key the HF model cache on scripts/embedding-benchmark.ts instead;
models only need re-downloading when the model list in that file changes.
Fix 2: expose BENCHMARK_TIMEOUT_MS env var in the script; benchmark.yml
sets it to 5400000 (90 min) on a cache miss, 1800000 (30 min) on a hit.
* fix(ci): strip pre-release suffix before patch-version integer comparison (#1451)
* ci: raise step timeout-minutes to 360 to match job ceiling (#1451)1 parent 68234c2 commit c52b436
2 files changed
Lines changed: 31 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 169 | | |
172 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
173 | 185 | | |
174 | 186 | | |
175 | 187 | | |
| |||
190 | 202 | | |
191 | 203 | | |
192 | 204 | | |
| 205 | + | |
193 | 206 | | |
194 | 207 | | |
195 | 208 | | |
196 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
197 | 213 | | |
198 | 214 | | |
199 | 215 | | |
| |||
202 | 218 | | |
203 | 219 | | |
204 | 220 | | |
205 | | - | |
| 221 | + | |
206 | 222 | | |
207 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
208 | 227 | | |
209 | 228 | | |
210 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
0 commit comments