Pila: the pipeline and first release
Last updated
Pila is ready for the health centre. In this project you'll set up everything that gets it there and keeps it there: the CI workflow that checks every push, the alerts that tell the team when patients are affected, and the first release, 1.0.0, rolled out to one barangay before the rest. A bug has been planted in the release. Whether it reaches patients depends on the alerts you choose.
By the end of this lesson you can
- Write a CI workflow that lints and tests every push
- Choose alerts on what patients feel
- Release a first version through staging and a canary, with release notes
What you’re making
Everything between merged code and patients:
- A CI workflow that lints and tests every push (lesson 7.2).
- Alerts on what patients feel (lesson 7.7).
- Release 1.0.0, through staging, an approval, and a canary in one barangay before the rest (lessons 7.5 and 7.6).
- Release notes for the health centres (lesson 7.4).
It's 1.0.0 because this is Pila's first release for real use: from here, semantic versioning's promises apply.
The CI workflow
Write Pila's workflow file. You'll write the same file for real, and push it, in capstone lesson C.7.
- Runs on push and pull requests (done)
- Checks out the code (not yet)
- Sets up Python 3.14 (not yet)
- Installs the locked dependencies (not yet)
- Runs ruff (not yet)
- Runs pytest (not yet)
Choose the alerts
The team will be woken by these. Choose the ones that mean patients are affected.
0 of 5 placed right
More than 2% of texts got no reply in 5 minutes, 7:00–17:00
Replies take more than 10 seconds for 5 minutes
Two numbers given to different phones are the same
The server’s processor is above 80%
Memory use grew 5% today
Release 1.0.0
Release day. CI and staging are green, Bea approves at 8:00, and the canary starts in San Roque. Play it:
- Lint and test passed
- Build image
- Staging + smoke test
- Approve
- Canary: San Roque, 1 hour
- All six barangays
- ▶ running
Release 1.0.0You
Release notes
- Says how patients get a number (done)
- Says what staff do (not yet)
- Says who to contact (not yet)
- No jargon (canary, rollback, worker, commit) (done)
Spot the trap: the CPU alert
Before release, Bea’s first draft of the alerts had one: “CPU above 90%.” Nothing about replies or numbers.
What happens if…
Check what you learned
Sources
Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.
- GitHub Docs: Building and testing Python: a workflow like Pila’s, explained line by line
- Google SRE book, chapter 6: Monitoring Distributed Systems: alert on symptoms
- Danilo Sato: Canary Release (martinfowler.com): a few users first
- Semantic Versioning 2.0.0: why the first public release is 1.0.0