Fistron docs

fistron.io

Gate a release

For a vendor running a validation programme (Set up Distributed Continuous Verification): before a build ships, your release pipeline asks one question. Is the build good in the environments that matter, and on the upgrade paths your customers take? The release gate answers it from the results your participants share (ADR 0114).

Before you start

Set the gate

  1. Open Distributed Continuous Verification and, in your programme’s card, Set the release gate (Change the release gate once set).
  2. Tick the environments that must pass: each participant’s enrolled targets, your own among them. An installation outside names its own targets: type them under Installations’ environments, one per line as participant / target.
  3. Tick the paths that must have a passed rehearsal. An upgrade from an earlier release is such a path.
  4. Leave A failure in any other environment fails the gate ticked unless a failure elsewhere should not stop the release.
  5. Set how many hours a build waits for its results (A build waits for its results (hours), 1 to 720; 24 by default) and Save the release gate. Every build from then on is gated by it; the change is in the audit log.

Read a build’s state

Release gate in the card shows the newest builds:

State Means
pending a required environment or path has no result yet, nothing failed, and the wait has not ended
passed every requirement is met
failed a required environment’s newest result did not pass, a path’s newest rehearsal did not pass, another environment failed (if that fails the gate), or a requirement had no result when the wait ended

Each failed or pending build says why, environment by environment. Once a build’s state is final, its record (release_gate) is kept among the documents of your own project, again as a new version if a later result changes it, and the audit package of the period holds it.

Make the pipeline wait

  1. Create an automation token of the role publisher (your CI’s token for publishing builds does), under Your API tokens (Create an API token); keep it as a masked secret of the pipeline.

  2. After publishing the build, wait for its gate:

    export FISTRON_CONTROL_PLANE_TOKEN="$PUBLISHER_TOKEN"     # the pipeline's secret
    fistron programme gate --control-plane https://app.fistron.io --programme <name> \
      --digest sha256:<the build's digest> --wait 6h --output release-gate.json
  3. Act on the exit code: 0 passed, 1 failed (the reasons are printed), 2 still pending when the wait ended. Keep release-gate.json with the release.

The gate decides nothing on its own: your pipeline does, and a person may still ship a failed build; the record says what the gate said.

Check

Next

Certify the upgrades your customers take from earlier releases: Certify upgrades from earlier releases.