Documentation
¶
Overview ¶
Package failpoint stops dockhand at a named step, as a kill there would, for the acceptance harness's kill rows (the project's plan/acceptance-harness.md, H5). It works only in a build with the acceptance tag: a normal build's Hit does nothing, holds no switch, and names no variable, which a test proves of the release binary.
In an acceptance build, DOCKHAND_FAILPOINT=<step>:kill kills the process with SIGKILL when it reaches the step. The steps are:
- update.prepared, after an update has fetched and prepared its edit, before writing it;
- update.recorded, update.written and update.settled, after an update records its edit, writes its files, and records them written (#194);
- rename.intent and rename.git, after a rename records the name it moves to, and after Git's branch is renamed, before the name is saved (#194);
- tidy.prepared and rebase.prepared, after the checkpoint is recorded, before the branch moves;
- submit.pushed, after the push, before the pull request opens;
- submit.recorded, once a submission's publication is recorded, before its first remote effect: a stage's has taken its change request (#195);
- submit.created, once GitHub has opened the pull request, before dockhand records it;
- submit.ended, once a finished publication has ended, and the change request it took with it (#195);
- check.running, once a check's provider run is recorded running;
- ship.committed, once ship or serve has committed a prepared branch's edits, before its check is queued.
DOCKHAND_FAILPOINT=<step>:fault, <step>:error, and <step>:infrastructure make a step fail once in the process, as a fault in dockhand's own handling would, as an error nothing classifies would, or as trouble another attempt could clear would. The steps are:
- tart.results, as the Tart provider reads a guest's results.
Index ¶
Constants ¶
const Enabled = false
Enabled says whether this build has failpoints: a normal build hasn't.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.