Documentation
¶
Overview ¶
Command gates holds the threshold logic of the v1.0 release gates and the post-publish install check (Story 4.18, NFR11). Workflows only run commands and collect files; every pass, fail and pending decision is made here, so it is tested.
Release gates (.github/workflows/release-gates.yml, on release-please pull requests):
gates run -gate <name> -o <dir> [-commit <sha>] -- <command> [args...]
Runs the command, passes its output through and records its exit code in
<dir>/<name>.json. Exits with the command's exit code.
gates evaluate [-metrics metrics] [-root .] [-commit <sha>] [-o gates-summary.json] [-summary <file>]
Evaluates every gate from the files in <metrics> and the repository at <root>,
writes gates-summary.json (gate, status, value, threshold), prints a table,
appends a Markdown table to -summary, and exits 1 when any gate fails or is
pending, naming the gate, the measured value and the threshold.
Post-publish install check (.github/workflows/post-publish.yml):
gates issues -issues <gh issue list JSON> -bodies <dir> [-version X.Y.Z]
gates plan -version X.Y.Z -published-at <RFC 3339> [-root .] [-state <issue body>] [-issue N] [-force]
[-matrix-file <file> -reports-file <file>] [-now <RFC 3339>]
gates plan-outputs -matrix-file <file> -reports-file <file>
gates fixture -dir <empty dir> -o <fixture.json> [-seed N]
gates check-version -version X.Y.Z [-snapshot S] <version JSON>
gates check-scan -fixture <fixture.json> -stderr <file> <scan JSON>
gates result -o <file> -channel C -method M -os O -arch A -version X.Y.Z -status S [-step S] [-reason R]
gates report -version X.Y.Z -published-at <RFC 3339> -results <dir> [-planned <matrix JSON>] [-state <issue body>] [-force]
[-root .] [-now <RFC 3339>] [-summary <file>] [-issue <file>] [-status <file>] [-run-url <url>]
gates snapshot
Exit codes: 0 pass, 1 a gate or check failed (or is pending), 2 usage error or an input that could not be read.