Hangar Floor
DemoDownloadGitHub

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

  1. In a running setup, write a first tick.json from 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.

  1. Do each step that --init prints: 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 in tick.json is in the folder of tick.json.
  2. 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

  1. Change tick.json when a fact changes: the work of a seat, a gate that starts or ends, a crate that a gate sent back, the queue.
  2. 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.

  1. 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

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.