Commit ecd0070
committed
fix: skip packages without C benchmarks in benchmark-random-c
`benchmark-random-c` uses `PACKAGES_PATTERN='manifest.json'` to select
random packages. WASM packages (e.g. `@stdlib/blas/base/wasm/*`) carry a
`manifest.json` listing their C dependencies but ship no `benchmark/c/*.c`
file and require Emscripten to compile — unavailable in CI. When one of
these packages was selected, `benchmark-c` failed, causing the
`random_benchmarks` CI workflow to fail on ~97% of runs (29/30 in 30 days).
Add a pre-flight guard that checks for `*.c` files inside the package's
`benchmark/` directory before invoking `benchmark-c`. Packages without C
benchmarks are silently skipped, leaving the `manifest.json` selection
pool intact while eliminating the false-positive failures.1 parent f0362db commit ecd0070
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
0 commit comments