The update with tick
This page shows how the coordinator updates the floor and the plan with one command, tick, so that no session types a count, a crate, or a time.
tick reads the pull requests and the issues of the milestone from GitHub, the logs of the gates, and one small file of the coordinator, tick.json. It writes the floor and the plan to each store, and prints one line with the numbers of the day.
Start
- In a running setup, write a first
tick.jsonfrom the files of the page: <!-- run -->
tclsh assets/tick.tcl --init --main state/main.json --floor state/floor.json
For a new setup, copy assets/tick.example.json to tick.json.
- Do each step that
--initprints: the title of the milestone of today, the work of each seat that has none, and the log of each gate. A log can be a glob pattern, such as~/gates/run*.out. The newest file that matches is the log. A relative path intick.jsonis in the folder oftick.json. - When all sessions push with one GitHub login, give the seat of a pull request in
who, such as"lumen/41": "W".
Each 15 minutes, and after each merge
- Change
tick.jsonwhen a fact changes: the work of a seat, a gate that starts or ends, a crate that a gate sent back, the queue. - Run the update: <!-- run -->
tclsh assets/tick.tcl
The line has the time, the merges, and the open and closed issues of the milestone. A number in brackets, such as (+2), is the change since the last update.
- Run the check before a report to the owner: <!-- run -->
tclsh assets/tick.tcl --check
It finds a seat with no work, a gate with crates and no start, a merged crate that is not shipped, and a plan older than the floor. The exit code is 1 with a fault.
Stores
config.stores.floorandconfig.stores.mainare JSON files. The tool keeps each key that it does not make, such as the talk and the tokens.config.stores.datais onedata.jsonfor a page in a static folder. The tool writes its floor and plan, and keeps the plan items, the river, and the questions.- With
config.stores.github, the tool also puts the public keys of the floor on the data branch of a clone, and pushes it. - For a store that you update by hand, such as an artifact, run
tick --print-patch. It prints only the keys that changed. When only the samples of the burn-down changed, the patch hasburn_sample: keep the firstatsamples and addsamples.
Each run reads GitHub, also --check and --dry. In a test, give a fake program with --gh or config.gh.
Next: the data format, with each key of tick.json.