Repository navigation
Commit cb88b94
feat(check): run checks live and report Vapi Evals statuses
`npm run check -- <check>|--all` now runs each built target payload in
the check's run org: one POST /eval/simulation/run per target, at most
three at once, judged by the same strict verdict as `npm run sim`
(the create/poll/cancel/hydrate loop moves into simRunExecute, which
both share).
- Budget and cancellation: each run's deadline is the earlier of its
timeoutMinutes and --budget-minutes; no run starts with under five
minutes left; the deadline, SIGINT and SIGTERM cancel in-flight runs.
- Keys: VAPI_CHECK_TOKENS, then .env.<runOrg>, then VAPI_PRIVATE_API_KEY
when every selected check runs in one org. --refresh-bindings runs the
same read-only bindings pull promotion uses.
- Selection: --changed-since <ref> runs only checks affected by changes
since the merge base (the org's files and state, the run org's, the
config, the engine, and the check's own paths).
- Statuses (when GITHUB_TOKEN, GITHUB_REPOSITORY and HEAD_SHA are set):
`Vapi Evals / <check> / <target>` goes pending with the run's link,
then success/failure/error; --all runs post the aggregate `Vapi Evals`
from a finally block, so config errors and exceptions report too.
- Report: a markdown summary (also appended to $GITHUB_STEP_SUMMARY) with
failing evaluations' expected vs extracted values and "unmocked tool
called" notices from transcripts, plus --json. No PR comments.
- Runs send User-Agent vapi-gitops-check/<version>.
Exit codes: 0 passed, 1 failed, 2 config or build error, 3 incomplete.
Refs TEST-141
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 1a7b576 commit cb88b94
16 files changed
Lines changed: 2035 additions & 158 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
| 908 | + | |
908 | 909 | | |
909 | 910 | | |
910 | 911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
0 commit comments