Module: utils/runResultFormatters

Markdown renderers and regression diff helpers for run results.

Source:

Methods

(static) conclusionForRun(run) → {"success"|"failure"|"neutral"}

Determine the GitHub Check Run conclusion for a Sentri run.

Parameters:
Name Type Description
run Object
Source:
Returns:
Type
"success" | "failure" | "neutral"

(static) findGreenBaseRun(projectRuns, baseSha, repo) → {Object|null}

Find the latest green run for a base SHA within a bounded lookback. The lookback is intentionally capped at 25 project runs to keep completion formatting cheap even for projects with long histories.

Parameters:
Name Type Description
projectRuns Array.<Object>
baseSha string | null
repo string | null
Source:
Returns:
Type
Object | null

(static) getRegressedFailures(run, baseRun) → {Object}

Return currently failing tests that were green on the base SHA's latest green run. Falls back to all current failures when no green base run is available.

Parameters:
Name Type Description
run Object
baseRun Object | null
Source:
Returns:
Type
Object

(static) renderGithubCheckSummary(run, optionsopt) → {string}

Render GitHub-flavored summary markdown for a completed Sentri run.

Parameters:
Name Type Attributes Description
run Object
options Object <optional>
Properties
Name Type Attributes Description
baseRun Object | null <optional>
runUrl string <optional>
Source:
Returns:
Type
string