Commit 5ee0070
authored
feat(ci): gate release workflow on resolution precision/recall thresholds (#886)
* feat(ci): gate release workflow on resolution precision/recall thresholds (#875)
Add resolution quality gates to the benchmark pipeline so regressions
are caught before publishing:
- benchmark.yml: run vitest resolution test after the benchmark script,
failing the workflow if any language drops below its threshold
- update-benchmark-report.ts: warn on precision >5pp or recall >10pp
drop per language between releases
- regression-guard.test.ts: hard-fail CI on precision/recall regressions
across releases, with KNOWN_REGRESSIONS exemption support
* style: fix biome formatting in regression guard
* fix: add SYNC comments for duplicated thresholds and eliminate redundant file read (#886)
Add cross-reference SYNC comments between regression-guard.test.ts and
update-benchmark-report.ts so the duplicated precision/recall thresholds
stay in lockstep. Replace the second extractJsonData call with a type
cast of buildHistory since both read the same file and marker.
* fix: add timeout-minutes to resolution gate step (#886)
Prevents a hanging WASM build from stalling the entire benchmark job
indefinitely. 30-minute cap is generous enough for the full language
fixture suite while still bounding worst-case CI time.
* fix: document resolution key format in KNOWN_REGRESSIONS comment (#886)1 parent ef7c834 commit 5ee0070
File tree
3 files changed
+10
-4
lines changed- .github/workflows
- scripts
- tests/benchmarks
3 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| |||
539 | 543 | | |
540 | 544 | | |
541 | 545 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
546 | 549 | | |
547 | 550 | | |
548 | 551 | | |
| |||
0 commit comments