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.
make drive keysAbout
Free play: nothing to tick off here. Click into the view to drive it, drag to turn it.
Joints · SO-101 follower
1–5 joint · , . jog · [ ] jaw · - + step · h home · f frames
the keys of make drive
The buttons do what the keys do: hold one to repeat.
Limits from the description; speed capped at 1.7434 rad/s, the servo's datasheet derated. Poses from the profile.
Inspector
Code
The repository's own code behind what you do here appears once you move the arm.
Before you start
- Stage 3 complete — you have run
make test,make mockandmake sim. - A GitHub account for the CI lessons, and your own copy of the repository to push to.
Lessons
| # | Lesson | Time |
|---|---|---|
| 1 | Four layers of test, and what each is forKnow which layer should catch a given bug, and why that layer and not another. | 30 min |
| 2 | Tests that cannot pass by accidentRecognise and write tests that cannot go green for the wrong reason. | 40 min |
| 3 | Keeping the suite fast is a feature you maintainKeep a suite inside its time budget structurally, and catch the day it drifts out. | 30 min |
| 4 | Integration tests without physicsTest interface contracts and limit enforcement against a real ROS graph, with mock hardware. | 35 min |
| 5 | An image that carries no simulatorBuild the image that would go on a robot, and verify what it does not contain. | 35 min |
| 6 | CI that runs what you runMake CI execute exactly what you run locally, and make it check decisions as well as tests. | 40 min |
| 7 | A release is a tag plus evidenceCut a release whose tag, version file and image provably agree. | 30 min |
| 8 | A pipeline for a machine with motorsDesign a deploy gate for a target that can physically move. | 25 min |
| 9 | Every 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 |
| 10 | Audit 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 hunt | 90 min |