failpoint

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const Enabled = false

Enabled says whether this build has failpoints: a normal build hasn't.

Variables

This section is empty.

Functions

func Fails

func Fails(string) string

Fails asks nothing of a step in a normal build.

func Hit

func Hit(string)

Hit does nothing in a normal build.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL