Action Inputs

Inputs of raunaksahahere/flakeprint@v0. Only results and test-outcome are usually needed.

Action Inputs (41)

InputDefaultPurpose
results**/junit*.xml **/TEST-*.xmlGlob(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.
formatautoauto (default) or force one of junit, ctrf, go-json, trx, nunit, xunit, testng, cucumber, robot, mocha-json.
modebothrecord | 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-branchflakeprint-dataBranch that stores history.
dry-runfalseAnalyse without writing history.
fail-on-test-failuretrueFail this step when test-outcome is failure.
fail-on-errorfalseFail the step if Flakeprint itself cannot record (default is to warn and leave the job result unchanged).
history-limit200Most recent shards from other commits to load for context (new failure vs broken vs recovering).
broken-min-runs2Consecutive failing executions needed to call a test broken.
recovery-runs5Consecutive passes needed after a failure before a test is healthy again.
max-push-attempts6Push retries on concurrent-write races.
report-path—Where to write the JSON report (default $RUNNER_TEMP/flakeprint-report.json).
pr-commentautoauto | 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-checkoffoff | 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-clonefalseFetch the data branch without blobs and read only the shards needed (for large histories).
follow-renamestrueLet 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-days3compact 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-historyfalsecompact mode: after deleting, replace the data branch with one commit so deleted data is gone from branch history too (force-with-lease).
quarantineautoauto | 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.ymlQuarantine file in the workspace.
quarantine-min-flips2quarantine-propose: commits with a same-commit fail→pass needed before a test is proposed (minimum 2).
quarantine-days14quarantine-propose: how long proposed entries last.
evidence-capsulestrueWrite an immutable evidence capsule (capsules/<test>/<sha>-<id>.json) on the data branch for each confirmed detection.
issuesfalseOne 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-ownersfalseAssign 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-days14digest: 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-severityinfoinfo | warning | critical
notify-max-per-run5More events than this in one run are sent as a single summary.