Skip to main content

Module events

Module events 

Source
Expand description

task.ticked and task.stopped, read back from git: a tick commit on a unit’s branch and an attempt saved under refs/speccoder/attempts/…. The same record gives the same event, with the same id, in any process; the projection carries ids, counts and words speccoder wrote, never test names, file contents, model words or tool arguments.

Structs§

Event
One event, ready to deliver.

Functions§

descends
Whether old is an ancestor of new.
envelope
The CloudEvents 1.0 envelope of an event about feature’s task.
of
A record’s event, if commit on reference is one.
sample
A sample task.ticked marked test: true, for speccoder hooks test.
stopped
task.stopped for the attempt saved under reference at commit.
ticked
task.ticked for the tick commit commit, if it is one.
ticks_between
The tick commits in old..new on a branch, oldest first (all of new’s history when old is gone or not its ancestor — a rewrite invents nothing: it is the caller’s to start such a branch at its tip).
tips
The refs whose records are events: every unit’s branch, the branch the checkout is on (in-place ticks), and every saved attempt; each with its commit.