New top-level package: wrench

This tiny package provides simple way for any part of Juju to check if a "wrench should be dropped in the works" at some part of Juju's execution. It checks $datadir/wrench for files which signal that something should break, performing some error checking and logging.

The idea is that judicious calls to wrench.IsEnabled can be permanently left in the code to aid manual and CI testing.


This is intentional.

As I've said before, it is perfectly OK for the wrench directory to not be there, especially in a production environment. I don't want to pollute the logs in production environments with potentially confusing messages when everything is normal.