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
- A programme whose licence names the feature
migration, and your kit with asteps.upgrade. For a product shipped as a container image, the kitexamples/validation/container-imagein Fistron’s repository upgrades the running container in place, keeps its data and checks that all of it is still there (validation.md). - A target per earlier release you certify: staging or isolated, with the
probes’ access (
[validation.targets.<name>.probe], migration.md).
Steps
-
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.
-
Install the earlier release on the target. Run that release’s build once with the kit’s install (
fistron validation runwithout--upgrade); a run that passes leaves it installed. -
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 -
Record what must survive. On the target’s project’s Work page, run the operation
migration-inventoryfor the target, thenmigration-requirementswith 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 isfistron 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> -
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.
-
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
- Migration paths by release shows each upgrade path per release: covered, failing or without evidence, with each target’s verdict.
- A failed upgrade says why: a test of the kit (for the container image kit, the data of the release before is kept), or a check of the required behaviour that regressed.
- Require the paths in the release gate, and a build that breaks an upgrade does not pass it (Gate a release).
Check
- The run’s record says
migrationwith its path, and the comparison’s counts (withmigration_summaryin the sharing policy). - After the run the target runs the earlier release again.
Next
Gate a release on its environments and paths: Gate a release.