Skip to content

Interpreting the diff

On each PR the Action runs your suite on the PR head and the base branch, then plune diffs them. The result shows up in three places: the sticky comment, the check status, and the action outputs.

Every eval is classified by how it moved between the base branch and the PR. Only a genuine passed → failed transition is a regression:

TransitionMeaningGates?
passed → failedregressionyes (when fail-on-regression: true)
failed → passedimprovementno
failed → failedpre-existing failureno
absent → failednew failure (new eval)no
any → errorednot measured: the PR’s run errored (for example the provider did not answer)yes, as its own error (when fail-on-regression: true)
errored → failednot measured: nothing on the base branch to compare againstyes, as its own error (when fail-on-regression: true)
any → no row judgednot measured: every row was blocked or skipped, or the dataset is empty (@plune-ai/cli 0.34.4)yes, as its own error (when fail-on-regression: true)
errored → passedimprovementno

The key idea: an eval that was already failing on the base branch does not turn the check red. Only quality you had and lost gates the merge.

An eval that could not be measured is not a regression either, but with fail-on-regression: true it fails the check with its own message, because “no regressions” would be a guess. Re-run the job when the provider did not answer; an eval that errors every time needs fixing.

The Action posts one comment per PR and updates it in place on every push — it never spawns duplicates. The body summarizes regressions and improvements; the headline is the same one-line summary exposed as an output: N regression(s), M improvement(s), with , K not measured when some evals could not be measured.

The body is the Markdown of plune diff. With plune-version 0.39.12 or newer, it ends with the line Unsteady in this run: … when a row of the PR’s run passed some of its repeats but not all: Unsteady rows in the Markdown diff. The line gates nothing and changes no output.

The Action exposes five outputs you can use in later steps:

OutputDescription
has-regression'true' when at least one passed → failed regression was detected
regressionsnumber of regressions
unmeasurednumber of evals that could not be measured (their run errored); 0 when everything was measured
summaryone-line diff summary
gate-exit-codeexit code of plune diff with fail-on-regression or a gate input set: 0 passed, 1 a measured failure, 2 an input error, 3 not measured; empty when none is set, or when the base ref has no baseline yet
- uses: plune-ai/eval-action@v1
id: plune
with:
config: plune.yaml
- name: Annotate
if: ${{ steps.plune.outputs.has-regression == 'true' }}
run: echo "::warning::${{ steps.plune.outputs.summary }}"