Skip to content

v8.7.0 — The Receipts Edition

Choose a tag to compare

@Wolfe-Jam Wolfe-Jam released this 31 Oct 23:40
· 114 commits to main since this release
57057c2

Your Test Receipts, in your terminal: faf taf receipts shows them, taf setup writes the recipe for JavaScript (Jest, Vitest, Bun), Python and Go, and every test run on your default branch gets one, red ones too. 2333 tests.

Added

  • faf taf setup writes real test steps for Python and Go. Python (pyproject.toml, setup.py, setup.cfg, requirements.txt or pytest.ini): pytest --junitxml=report.xml. Go (go.mod): gotestsum --junitfile report.xml, installed with GOTOOLCHAIN=auto and pinned to v1.13.0, so a go.mod below Go 1.24 still gets it. Each points the receipt at its JUnit report, the format faf-taf-git reads for these runners. Rust and other repos keep the placeholder
  • faf taf receipts: your Test Receipts in the terminal, newest first: date, result, passed/total, skipped. A tally line, --limit (default 10), --json and --ref. It reads origin/taf-receipts, then taf-receipts, then a .taf in the folder, and never fetches: in a partial clone that left the .taf out, it says so and how to get it once (this needs a git that honours GIT_NO_LAZY_FETCH: 2.44 or later, or a patched older release). Times are shown in UTC, a time written without a zone is read as UTC, and receipts are sorted by time. Older hand-written receipts show — where they kept no counts
  • Colour only in a terminal; NO_COLOR and FORCE_COLOR respected. Piped output, CI logs and agent tools now get plain text, with no escape codes. NO_COLOR (any value, no-color.org) turns colour off; FORCE_COLOR turns it on, even when piped. Bare faf without colour prints a one-line header in place of the Nelly pixel art

Changed

  • faf taf setup --write exits 1 when it refuses to replace an existing taf.yml, so scripts and CI can tell nothing was written
  • faf taf <unknown> is refused in one line. A typo (faf taf receipt) used to run the deprecated score snapshot without a word
  • faf taf setup writes the faf-taf-git recipe: a failed test run now gets a receipt too (the test step keeps going, then the job fails at the end), only one branch is recorded: origin's HEAD; else origin's main, master or only branch; else the current branch, and faf says it's a guess. A name GitHub would read as a pattern (+, !) is escaped, and contents: write is granted. No concurrency group: GitHub cancels a waiting run when a newer one joins, so that run would get no receipt; faf-taf-git retries a push that lost a race instead. The old template recorded green runs only. Actions moved to their current majors (checkout, setup-node, setup-python and setup-go v7, pnpm/action-setup v6) and Node 24. pnpm gets a version unless package.json pins pnpm the way the action reads it (packageManager: pnpm@…, or devEngines naming pnpm with a version). A JavaScript repo gets the test step when its test script runs Jest or Vitest (or bun test with a Bun lockfile), following npm run … hand-offs; any other runner (node:test, mocha), or no test script, gets the placeholder, not a step that would go red on every run. "cannot be gamed" is gone from its output. It pins faf-taf-git v2.4.3 (a receipt that loses a push race is retried, not lost; skipped Go tests count as skipped), the same as faf-cli's own CI.

Fixed

  • faf taf receipts --ref is never read as a git option. --ref --output=<file> made git write a file and faf reported "no receipts yet". A ref starting with - is refused in one line, and the ref is passed after --end-of-options
  • A .taf that is a folder gets the one-line "No receipts found", not a stack trace

Install: npm install -g faf-cli@8.7.0 · brew upgrade faf-cli · bunx faf

FAF defines. AGENTS.md instructs. AI codes.