Action Inputs
Inputs of
raunaksahahere/flakeprint@v0. Only results and test-outcome are usually needed.Action Inputs (41)
| Input | Default | Purpose |
|---|---|---|
results | **/junit*.xml
**/TEST-*.xml | Glob(s) of test reports, one per line. JUnit XML, CTRF JSON, go test -json, TRX, NUnit, xUnit.net, TestNG, Cucumber JSON, Robot Framework output.xml and Mocha JSON are detected automatically. |
format | auto | auto (default) or force one of junit, ctrf, go-json, trx, nunit, xunit, testng, cucumber, robot, mocha-json. |
mode | both | record | analyze | both | compact | quarantine-propose | digest. `digest` (weekly) posts a digest issue, closes issues of verifiably recovered tests, labels overdue ones and updates `badge.json`. `compact` rolls finished months into snapshots and applies retention/deletion. `quarantine-propose` opens a PR adding repeat-flaky tests to the quarantine file. |
test-outcome | — | Pass `steps.<test-step-id>.outcome`. Recorded with the attempt; when `failure`, this step fails too so the real test result is kept (even under continue-on-error). |
matrix | — | Pass `toJSON(matrix)` so matrix legs are compared only with themselves. |
settings | — | Extra free-form test settings that must match for two executions to be compared (e.g. "suite=unit node=24"). |
token | ${{ github.token }} | Token used to read/write the data branch (contents write) and resolve job links (actions read). |
data-branch | flakeprint-data | Branch that stores history. |
dry-run | false | Analyse without writing history. |
fail-on-test-failure | true | Fail this step when test-outcome is failure. |
fail-on-error | false | Fail the step if Flakeprint itself cannot record (default is to warn and leave the job result unchanged). |
history-limit | 200 | Most recent shards from other commits to load for context (new failure vs broken vs recovering). |
broken-min-runs | 2 | Consecutive failing executions needed to call a test broken. |
recovery-runs | 5 | Consecutive passes needed after a failure before a test is healthy again. |
max-push-attempts | 6 | Push retries on concurrent-write races. |
report-path | — | Where to write the JSON report (default $RUNNER_TEMP/flakeprint-report.json). |
pr-comment | auto | auto | always | off. One sticky comment per pull request, edited in place. `auto` creates it only when there are findings (and keeps updating it once it exists). Needs `pull-requests: write`. |
status-check | off | off | warn | block. Posts a `flakeprint` commit status. `block` fails it only on regressions (new or consistent failures), never on flaky tests, and never when Flakeprint itself could not analyse. Needs `statuses: write`. |
comment-preview | — | Write the PR comment Markdown to this path (works on any event, including dry-run). |
partial-clone | false | Fetch the data branch without blobs and read only the shards needed (for large histories). |
follow-renames | true | Let history follow tests that were renamed or moved (heuristic; affects only context from older commits). |
retention-days | — | compact mode: delete months that ended more than this many days ago (empty = keep everything). |
compact-grace-days | 3 | compact mode: only compact months that ended at least this many days ago. |
delete-tests | — | compact mode: test IDs to delete from all history (comma or newline separated, `*` wildcards). |
delete-runs | — | compact mode: workflow run IDs to delete from history. |
delete-shas | — | compact mode: commit SHAs to delete from history. |
squash-history | false | compact mode: after deleting, replace the data branch with one commit so deleted data is gone from branch history too (force-with-lease). |
quarantine | auto | auto | off | report | enforce. `auto` uses the mode in the quarantine file (per branch). Under `enforce`, a failed test step passes only when every failure is quarantined with the expected fingerprint. |
quarantine-file | .flakeprint/quarantine.yml | Quarantine file in the workspace. |
quarantine-min-flips | 2 | quarantine-propose: commits with a same-commit fail→pass needed before a test is proposed (minimum 2). |
quarantine-days | 14 | quarantine-propose: how long proposed entries last. |
evidence-capsules | true | Write an immutable evidence capsule (capsules/<test>/<sha>-<id>.json) on the data branch for each confirmed detection. |
issues | false | One GitHub issue per confirmed flaky test, updated with new evidence and reopened if it flakes again. Needs `issues: write`. |
issue-labels | — | Extra labels for flaky-test issues (comma separated). |
assign-owners | false | Assign individual CODEOWNERS owners to new flaky-test issues. |
project-url | — | Add new flaky-test issues to this GitHub Project (v2), e.g. https://github.com/orgs/acme/projects/3. The token needs project access. |
sla-days | 14 | digest: days before an open flaky-test issue is labelled overdue and escalated. |
notify | — | Webhooks, one per line: slack=https://…, teams=https://…, discord=https://…, generic=https://… (pass from a secret). Email: point a generic webhook at your mail relay. |
notify-events | — | Comma-separated events: new-flake, newly-broken, recovery, escalation, quarantine-expiry, assignment (default: new-flake, newly-broken, escalation, quarantine-expiry). |
notify-min-severity | info | info | warning | critical |
notify-max-per-run | 5 | More events than this in one run are sent as a single summary. |