Theme
Tier 4 · 10 lessons and a project · about 7 hours

Make it trustworthy free

The layers that let you change a robot's code on a Friday: tests sorted by what they can catch, tests that cannot pass by accident, a suite that stays fast on purpose, an image that carries no simulator, a pipeline that runs what you run, releases that carry evidence, and a deploy gate for a machine with motors.

By the end you will be able to

  • Place any given bug in the cheapest test layer that can catch it.
  • Write tests that cannot pass by accident — self-checking matchers, independent oracles, controls, and inputs that must change outputs.
  • Keep a suite inside its time budget structurally, and notice the day it stops being inside it.
  • Test interface contracts against a real ROS graph with no physics.
  • Build a robot image about a quarter the size of the development image, and verify what it does not contain.
  • Run CI that executes exactly what you run locally, on two architectures.
  • Cut a release whose tag, version and image provably agree, and gate a deploy that can move motors.
  • Trace every input of the robot image to whoever can change it, and audit a deploy gate for what it only appears to guarantee.

In the simulation

Tier 4: Make it trustworthy. The same arm as the stage before. This stage makes the software around it trustworthy, so the simulation stays as it was.

Kinematic: joints move at their real speed limit, but there is no gravity, no load and no physics.

The SO-101 loads as you reach it.

About

Free play: nothing to tick off here. Click into the view to drive it, drag to turn it.

Before you start

  • Stage 3 complete — you have run make test, make mock and make sim.
  • A GitHub account for the CI lessons, and your own copy of the repository to push to.

Lessons

#LessonTime
1Four layers of test, and what each is forKnow which layer should catch a given bug, and why that layer and not another.30 min
2Tests that cannot pass by accidentRecognise and write tests that cannot go green for the wrong reason.40 min
3Keeping the suite fast is a feature you maintainKeep a suite inside its time budget structurally, and catch the day it drifts out.30 min
4Integration tests without physicsTest interface contracts and limit enforcement against a real ROS graph, with mock hardware.35 min
5An image that carries no simulatorBuild the image that would go on a robot, and verify what it does not contain.35 min
6CI that runs what you runMake CI execute exactly what you run locally, and make it check decisions as well as tests.40 min
7A release is a tag plus evidenceCut a release whose tag, version file and image provably agree.30 min
8A pipeline for a machine with motorsDesign a deploy gate for a target that can physically move.25 min
9Every input is a dependencyList everything the robot image is built from, and say for each input whether it is verified, only pinned, or open.40 min
10Audit the gate before someone else doesRead a deploy workflow the way an auditor would, and separate what it guarantees from what it only appears to.30 min
◆Project: Bug hunt90 min

Start with lesson 1 →