17 Checks and Definition of Done
Software Factory Engineer · the factory of Academy CRMAcademy CRM Factory: the Definition of Done and the checks of a change.
I want to decide what a change must pass before it merges.
Checks and Definition of Done
Concepts
Two kinds of checks guard the way to main, and the pull request settings decide how the work arrives there.
- Definition of Done — the project's text of finished work and its checks. Every agent that writes code runs them before it opens a pull request.
- Advisory — a check that reports and never holds the work. Blocking holds the work until it passes.
- Verification set — a named list of checks an agent carries and runs on request: rubrics, module commands, scripts.
- Merge policy — what must hold before Swifter offers Merge.
The checks on the way to main
- Definition of Donethe text and the checks every coding agent runs before a pull request
- Verification setthe checks one agent carries; web-change for General
- Merge policywhat must hold before Merge is offered
Figure 17.1 · The checks on the way to main
Scenario
You make two checks blocking, build the web-change set for General and set how pull requests open. Then a change that breaks a test shows the blocking check failing.
From settings to a failed check
- Definition of Done
- Verification set
- Pull requests
- Approve
- Run a change
Figure 17.2 · From settings to a failed check
Interface
The Verifications page: the Definition of Done on top, the project's own sets under it.
Verifications page
Figure 17.3 · The Verifications page and its numbered places
- 1Pull requests: the merge policy, agent rounds and how a pull request opens.
- 2Verifications: the verification sets of the project and of the platform.
- 3Definition of Done: the text, the checks and their modes.
- 4Definition of Done card: On, and how many of its checks are not Off.
- 5web-change: your set: 4 checks, «Carried by: General».
- 6Add verification: a new set: name, when it applies, checks.
Walkthrough
Scene 1 of 8 · 0:16
Read the Definition of Done
Where: Definition of Done page: ① Definition of Done · ② What done means · ③ Checks
The gear → Definition of Done. What done means is the text every agent reads. Under Checks, each row runs on the modules it names: Lint and Unit tests run on web, Type check finds no command. All are Advisory.
Terms
- Rubric — a sentence an agent judges as true or false on the change.
- Script check — a JavaScript check over the changed files that returns pass or fail.
- verify_me — the tool an agent calls to run the Definition of Done before a pull request.
- Draft pull request — one that cannot be merged until someone marks it ready.