Sign-offs: evidence from people
A policy can ask for a person’s word: a product owner who tries a version in staging and says it
is fine, or a tester who ran a manual check. A pipeline can’t give it, because only a token of the
signoff scope can (ADR 0021).
A sign-off is a test run of a kind, such as uat or manual, with one test and one outcome, pass
or fail. The verdict judges it like any other run: the latest one of a kind counts, and maxAge
and deployed apply. Manual checks with several cases are better sent as a report, as today.
Who can sign off
Section titled “Who can sign off”Give the signoff scope to people, with a name that says who holds it, and limit it to what they
may sign off:
kollaudo-server token create shop --scope signoff --name product-owner \ --component checkout --environment stagingUntil Kollaudo has users, the name of the token is what the verdict shows as the author.
Require a sign-off
Section titled “Require a sign-off”List the kinds in signoff in the policy, next to require:
environments: staging: require: [e2e, smoke] signoff: [uat]- Without a sign-off, the verdict is
unknown, and says thatuatis waiting for one. - A
uatreport sent by CI doesn’t replace it: it is kept and shown, but the kind counts only from a run sent with asignofftoken. - A
failsign-off makes the verdictfail. A sign-off can be given again: the earlier one stays in the list, and the latest one counts. - A kind in
signoffneedn’t be inrequire. If it is in both,signoffwins.
Older servers reject a policy file with signoff: update the server before the policy.
Give one
Section titled “Give one”export KOLLAUDO_URL=https://kollaudo.example.comexport KOLLAUDO_TOKEN=<signoff token>kollaudo signoff --component checkout --env staging --version 3f2a9c1 \ --kind uat --outcome pass --note "Checked the new payment page with the two test cards"It records the sign-off and prints the verdict that follows:
Signed off checkout 3f2a9c1 in staging: uat pass, by product-owner: Checked the new payment page with the two test cards
PASS checkout 3f2a9c1 in staging: e2e, smoke and uat passed....--envis the environment where you checked the version, and--outcomeispassorfail.- The command exits with 0 once the sign-off is recorded, whatever the verdict: it records what you
saw, it isn’t a gate. To gate on the verdict, use
kollaudo verdict. - That verdict is not added to the log of verdicts, since nothing is waiting for it.
--jsonprints the sign-off and the verdict as JSON.
Without the CLI, POST /v1/signoffs does the same (see also one command for
testers, with the values to replace):
curl -X POST "$KOLLAUDO_URL/v1/signoffs" \ -H "Authorization: Bearer $KOLLAUDO_TOKEN" -H "Content-Type: application/json" \ -d '{"component": "checkout", "environment": "staging", "version": "3f2a9c1", "kind": "uat", "outcome": "pass", "note": "Checked the new payment page with the two test cards"}'GET /v1/signoffs lists them, newest first, with component, environment, version and kind
to filter, and kollaudo signoff list prints it with the same filters. A signoff or read token
can read the list. The verdict names the author, the time and
the note in the reason of the kind, and GET /v1/test-runs shows a sign-off with signoff: true.
A signoff token can also ask GET /v1/verdict, to see what its sign-off led to.