Skip to main content

compareRuns

@forge/monorepo


@forge/monorepo / backend/src / compareRuns

Function: compareRuns()

compareRuns(input): ReleaseComparison

Defined in: backend/src/evaluation/index.ts:201

Compare two runs, naming the cases that moved — AC-5.

A pure function over two runs' results, because "which cases regressed" is arithmetic and belongs nowhere near a store. An aggregate delta is reported too, but after the lists: the whole reason this exists is that an aggregate hides a regression offset by an unrelated gain.

Parameters

input

baseline

{ results: readonly EvalCaseResult[]; run: EvalRun; }

baseline.results

readonly EvalCaseResult[]

baseline.run

EvalRun

candidate

{ results: readonly EvalCaseResult[]; run: EvalRun; }

candidate.results

readonly EvalCaseResult[]

candidate.run

EvalRun

Returns

ReleaseComparison