Theme
Tier 4 · lesson 7 of 10 · 30 min

A release is a tag plus evidence

You will: Cut a release whose tag, version file and image provably agree.

Builds on An image that carries no simulator and CI that runs what you run.

A robot in the field is running something. When it misbehaves, the first question is "what, exactly?" — and a version you cannot trust is worse than none.

One source for the version. VERSION is the only place the software version is written. Every package manifest and every setup.py must agree with it, and a test fails the build if one does not. That test exists because of a real incident: a running robot reported software_version: 0.3.0 while all six package manifests said 0.1.0. Nothing broke, which was the problem — nobody would have noticed the version was lying until they tried to reproduce a fault from it.

Three versions, deliberately independent. Software, firmware and wire protocol change on different schedules. On the SO-101 the firmware is inside each servo, written by Feetech rather than here, and a host updated a dozen times can still be talking to servos running whatever they shipped with. One number would hide exactly that. So the running robot's version block keeps a field for firmware apart from the software version. For the SO-101 that field is empty today: nothing yet reads a servo's firmware version off the bus, and that is a gap worth closing before there is more than one arm.

A release cannot ship something untested. The release workflow refuses to run if the tag and VERSION disagree, because every artefact it produced would be mislabelled. And it does not build its own image: it looks up the one the image workflow already built and verified from that commit. If that image is not in the registry, the release fails and says to tag a commit that has been through CI.

Digests, not tags. A tag can be moved; a content digest cannot. The release manifest records the digest for each architecture, and anything that must be reproducible pulls by digest.

In the simulation

A named pose is like a tag: a name that could be redefined. The five numbers in /joint_states are like the digest: what the arm actually did. Read the numbers behind a name, then reproduce them without it.

Kinematic: joints move at their real speed limit, but there is no gravity, no load and no physics. That is what the steps below are for.

The SO-101 loads as you reach it.

In this lesson

  1. Press ready, open the /joint_states view, and read its positions: 0, -0.6, 0.8, 0.5, 0.
  2. Press h to home the arm.
  3. Now reach ready with the sliders alone, not the button: shoulder_lift -34.4°, elbow_flex 45.8°, wrist_flex 28.6°. The numbers, not the name, are the evidence.

Do it

  1. Find the single source, and check the packages agree with it.

    cat VERSION
    grep -h "<version>" src/*/package.xml | sort | uniq -c
    

    Expect: One version, the same in every package.

  2. Read where the release refuses a mismatched tag.

    grep -n -B2 -A16 "The tag and VERSION must agree" .github/workflows/release.yml
    
  3. Bump VERSION alone — say to 9.9.9 — and run the suite. Then revert.

    make test
    git checkout VERSION
    

    Expect: Three failures from one change: every package manifest, every setup.py, and the version the running robot would report all disagree with VERSION — each named by its own test.

  4. See the phase boundaries, which are tags too.

    git tag -l "phase-*"
    
You will know it worked when: You watched the version-consistency test catch a lone VERSION bump, and can explain why the release reuses CI's image instead of building its own.

When it goes wrong

The release workflow fails immediately after you push a tag.

Why: The tag and VERSION disagree.

Fix: Bump VERSION and every package together, commit, then tag that commit.

The release fails saying the image is not in the registry.

Why: The tagged commit never went through the image workflow.

Fix: Tag a commit that has been through CI. That refusal is the feature.

Terms

Single source of version
One file holds the version; everything else must agree with it, checked by a test.
Image digest
A content hash identifying an exact image. Unlike a tag, it can never point at something else later.
Release manifest
A record shipped with a release of every version a deployed robot can be asked about — software, firmware, protocol, commit — and the image digests.

Every term in the course: glossary.

Check yourself

Answer in your head first, then open it.

Why keep firmware and protocol versions separate from the software version?

They change on different schedules. One number would hide the case that matters most in the field — a new host talking to old firmware.

Why does the release look up CI's image rather than building a fresh one?

A fresh build is a different artefact from the one that was tested. Reusing the verified image means a release can only ship what CI actually checked.

Stretch

Write the five fields you would want a robot to report if it woke you at 2 a.m. For each, name where in this project it comes from — or note that nothing provides it yet.

Going deeper