At Quillfern Parcels. This is the system from chapter 3 of the Quillfern story, "Shipping code safely": Releases are copied to the server by hand. A Friday release with an untested change breaks bookings, and nobody can say exactly what is running.
What the model simplifies
Stages in the same group run in parallel and the group takes as long as its slowest stage; a failing stage lets its group finish, then stops the pipeline, so nothing after it runs. Unlimited runners, no queue time, no retries of flaky tests. Durations are typical round numbers for a small service. Every number on this page comes from one shared set of calculations, which the simulation questions use too, so a question can never disagree with what the simulator shows.
The drills, written out
A critical vulnerability blocks the release
- Healthy state. A normal change: tests in parallel, a full image build, a clean scan, signing, and a canary deploy, in 13 min 40 s.
- Trigger. The morning after a new advisory, the scan finds a critical CVE in the HTTP library the image uses.
- What is affected. Signing and deploying, so this release, and every release built on the same library.
- Symptoms. The pipeline turns red at the scan; the canary never starts; developers ask why a one-line change "cannot ship".
- Metrics. The run stops after 10 min 55 s; skipped: sign, canary deploy. Production keeps the previous version.
- Logs. The scanner reports the package and the fixed version.
CRITICAL CVE-XXXX-NNNN http-lib 2.31.0 fixed in 2.31.4
gate: 1 critical finding, policy allows 0: FAIL
- Reasoning. The gate is right to stop it: signing a vulnerable image would make it trusted everywhere it is deployed. The fix belongs in the dependency, not in the gate.
- Mitigation. Upgrade the library to the fixed version and rebuild. Most layers come from the cache, so the rebuild takes 45 seconds instead of 5 minutes.
- Recovery. The scan passes and the release goes out in 9 min 25 s.
- Prevention. Let a bot open upgrade pull requests every week, so fixes are small and routine; keep the gate, with a documented exception process for real emergencies.
A failing test stops a bad change
- Healthy state. With cached layers and parallel tests, a change goes from commit to canary in 9 min 25 s.
- Trigger. A change to how delivery fees are rounded breaks a unit test for parcels over 20 kg.
- What is affected. Everything after the tests: no image is built, so nothing can be deployed.
- Symptoms. The pull request shows a red check, with the failing test named.
- Metrics. The run takes 4 min 40 s: the tests group finishes, because its stages run together, then the pipeline stops.
- Logs. The test output shows the wrong fee.
FAILED tests/test_fees.py::test_heavy_parcel_fee
AssertionError: expected 18.40, got 18.00
- Reasoning. The fee rounding now drops cents for heavy parcels. Catching it here costs 4 min 40 s; catching it in production costs refunds.
- Mitigation. Fix the rounding and push again.
- Recovery. All tests pass and the change ships in 9 min 25 s.
- Prevention. Require the pipeline to pass before merging, and add a test for every bug that reached production once.
Learn it properly
All simulators · Curriculum map