Releasing and running it · lesson 10 of 10
Ideas in this lesson
A.github/workflows/ci.ymlfrom lesson 7.2
BAlerts on symptomsfrom lesson 7.7
CCanary, then everyonefrom lesson 7.6
D1.0.0from lesson 7.4

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.

CI workflowKept in this browser only
  • 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)
Write each part until its checks pass.

Choose the alerts

The team will be woken by these. Choose the ones that mean patients are affected.

0 of 5 placed right

  1. More than 2% of texts got no reply in 5 minutes, 7:00–17:00

  2. Replies take more than 10 seconds for 5 minutes

  3. Two numbers given to different phones are the same

  4. The server’s processor is above 80%

  5. 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:

  1. Lint and test passed
  2. Build image
  3. Staging + smoke test
  4. Approve
  5. Canary: San Roque, 1 hour
  6. All six barangays
  • ▶ running Release 1.0.0 You
1 of 11 You pushes “Release 1.0.0”. The pipeline starts: Lint and test.
Why didn’t staging catch the duplicate numbers?
Without the duplicate-number alert, what would have happened?

Release notes

Release notesKept in this browser only
  • 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)
Write each part until its checks pass.

Spot the trap: the CPU alert

Spot the trapBea

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

The canary caught the bug. What made that possible?
What should come with the 1.0.1 fix?

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.

All sources for Simple Software Development