CLI command

probierz defects ack

Say who answers for an open defect, so its escalation stops paging the next person while they work.

Invocation#

Shell
probierz defects ack <APP_ID> <KEY> --by <WHO>

Required inputs and options#

  • <KEY> is a defect defects list names; --by is a name or an address the people paged know.

Output and state effects#

Writes acknowledged: {by, at} on the open defect and prints it as list does. A critical defect acknowledged pages no escalation (alerts.escalate-minutes) while it stays open; a green run closes it, and a red run after that reopens it with nobody answering for it, paging as it did.

Exact refusals#

  • ack-unnamed (probierz.defects, exit 2): --by names nobody; nothing is read.
  • defect-unknown (exit 1, not_found): no run of the product opened a defect with that key; the fix names defects list.
  • defect-closed (exit 1): a green run closed it, so there is nothing to answer for until it comes back. Real test: tests/defects/ack.rs.

Declared refusals#

What probierz refusals list declares for this command at revision d2cd6156e8b8dc6204dab7b46ec0b34b2bb03cea (probierz 0.1.7 (revision unknown, not built from a git checkout)): each cause's id, the operation declaring it, its exit status and code, and its remedy.

  • workspace-unset (probierz.manifest.discover, exit 1, config): finding the repositories that hold product manifests: this instance names no workspace, so there is no directory of repositories to look in. run probierz config set workspace <directory holding one checkout per repository>.
  • workspace-unreadable (probierz.manifest.discover, exit 1, config): listing {workspace}: the operating system would not list it: {error}. give this user read permission on {workspace}, or set another workspace with probierz config set workspace.
  • listing-failed (probierz.manifest.discover, exit 1, config): asking the git of {repository} which manifests it tracks: {cause}. make {repository} a git repository this user can read.
  • untracked (probierz.manifest.discover, exit 1, config): reading the manifests of {repository}: {file} is not tracked by the repository's git, so no other host and no review sees it. run git -C {repository} add {relative} and commit it, or remove the file.
  • duplicate (probierz.manifest.discover, exit 1, config): finding the manifest of {app}: two repositories declare {app}: {first} and {second}. keep the manifest of {app} in the product's own repository and remove the other.
  • not-found (probierz.manifest.discover, exit 1, config): finding the manifest of {app}: no repository under {workspace} has .probierz/{app}.yaml. add .probierz/{app}.yaml to the product's repository (probierz project adopt or probierz author manifest write it), or name an app probierz apps list lists.
  • file-name-invalid (probierz.manifest.discover, exit 1, config): finding the manifests of {repository}: {file} names app "{app}", which is not an id: letters, digits, '.', '_' and '-', starting with a letter or digit. rename it .probierz/<appId>.yaml with the id it declares, with git mv.
  • repository-name-invalid (probierz.manifest.discover, exit 1, config): finding repository "{name}" in the workspace: a manifest names a checkout directly under the workspace, and "{name}" would name another place. name the checkout by its directory name under the workspace in repositories[].repository.
  • app-id-invalid (probierz.manifest.load, exit 2, refused): naming an app: "{app}" is not an id: letters, digits, '.', '_' and '-', starting with a letter or digit. name an app probierz apps list lists.
  • manifest-unreadable (probierz.manifest.load, exit 1, config): reading {file}: {error}. write {file} as YAML the reader accepts (its line and column are named), then load it again.
  • manifest-invalid (probierz.manifest.load, exit 1, config): judging {file}: {problem}. fix the declaration in {file}; probierz app check names every problem it has with the world once it loads.
  • manifest-id-mismatch (probierz.manifest.load, exit 1, config): loading the manifest of {app}: {file} is named for {app} and declares appId {declared}. declare appId: {app} in {file}, or rename the file for the app it declares with git mv.
  • ack-unnamed (probierz.defects, exit 2, refused): acknowledging defect {key}: --by names nobody. name who answers for it with --by, a name or an address the people paged know.
  • defect-unknown (probierz.defects, exit 1, not_found): acknowledging defect {key} of {app}: no run of {app} opened a defect with that key. name a key probierz defects list {app} prints.
  • defect-closed (probierz.defects, exit 1, refused): acknowledging defect {key} of {app}: a green run closed it ({closed}), so there is nothing to answer for. acknowledge it when it is open again; probierz defects list {app} shows its status.

Source snapshot#

Generated from the Rust binaries at revision 99a74945a3598a8d73b6c6cbe5aae4f283becea3 of Probierz's private source repository.

Combined help SHA-256: 77529678a61237f774b59e76df0d1907cb749ef5da56d2ed913b040793b7d30b; binary SHA-256: be9e0eaff0e6ea50403a0c6f6d467697a4eac676f9523b8dc13a596d2b5526c5.