ui/server/src/reviewCli
the cli execution mode of a Review analysis: the same job the forked worker runs (reviewRunner.mjs), but the PR-health report comes from the real construct review <base> <head> --format json subprocess (coreVerbs....
Cockpit server, next. Source: ui/server/src/reviewCli.mjs.
Functions#
cliReviewRunner()#
cliReviewRunner(
job,opts?):Promise<any>
Defined in: ui/server/src/reviewCli.mjs:37
Run one analysis through the real CLI.
Parameters#
job
any
{root, baseSha, headSha, expected?} exactly as the fork runner takes it.
opts?
cli passes env, bin, spawnImpl to the executor; units replaces
the forked units step (tests).
cli?
any = {}
graceMs?
number = CANCEL_GRACE_MS
onProgress?
(m) => void
reclaim?
(pid, root) => void = reclaimTreesOf
signal?
AbortSignal
timeoutMs?
number = JOB_TIMEOUT_MS
units?
Function = forkRunner
what?
string = 'analysis'
Returns#
Promise<any>
The worker-shaped result.