Fistron docs

fistron.io

Certify upgrades from earlier releases

Your customers do not install a release fresh: they upgrade from the one they run. An upgrade from an earlier release is a migration path of your programme, run the way a migration is rehearsed (Rehearse and verify a migration): a target that runs the earlier release is inventoried, upgraded by the build, tested, inventoried again and compared with what must hold.

Before you start

Steps

  1. Name the paths. Under the programme’s Migration paths, add a dimension for the release a path starts from (for example source release) and a path per release you support upgrading from, with your mapping of what an upgrade changes on purpose (the product’s version, the container’s image). Save the paths.

  2. Install the earlier release on the target. Run that release’s build once with the kit’s install (fistron validation run without --upgrade); a run that passes leaves it installed.

  3. Give the target rollback = "always" in the agent’s configuration, so that after every run the kit’s rollback puts the earlier release back and every build upgrades from the same state:

    [validation.targets.from-2026-05]
    labels = ["staging"]
    rollback = "always"
    env = {HOST_PORT = "18080"}            # the kit's settings for this target
  4. Record what must survive. On the target’s project’s Work page, run the operation migration-inventory for the target, then migration-requirements with its inventory and the path’s mapping (Download the mapping): the required behaviour is kept among the project’s documents, and each run on the path is compared with the newest. On the agent’s host the same is

    fistron migration inventory --config fistron.toml --target from-2026-05
    fistron migration requirements --inventory migration/from-2026-05/inventory.json \
      --mapping from-2026-05.toml --project <owner/name>
  5. Put the target on its path. Under Migration paths of the programme, choose the path, the target itself as its source, and optionally the requirements to pin.

  6. Publish a build. Each target on a path gets a run that upgrades it (the kit’s steps.upgrade), tests it, compares it with the requirements, and rolls it back to the earlier release.

Read the result

Check

Next

Gate a release on its environments and paths: Gate a release.