mozilla / releasewarrior

Similar to the definition of a Census, this tool systematically acuires and records information about the releases of a given product
9 stars 16 forks source link

Are all steps idempotent? #3

Closed hwine closed 8 years ago

hwine commented 8 years ago

I admit to being way behind on the state of release duty, but in the old days, we sometimes "collided" on handling commands manually.

Fair to say the above are out of scope, but should give that some mention in the docs, imo.

lundjordan commented 8 years ago

sorry I missed this earlier. official releasewarrior is now at https://github.com/mozilla/releasewarrior

to protect against mistakes, I have

1) tried to design it so that each command is idempotent. e.g. run the same command twice and both the data and wiki files should not change. nor should there be a commit at the end. if that behavior isn't observed, that's a bug :)

2) warn if your local repo is dirty before running a command, and abort if your local repo is behind origin/master. this makes git less distributed but it acts as a blocker for merge conflicts + missing updates from other relengers.

hwine commented 8 years ago

Sounds good to me! Especially (2) -- worthy of being documented, imho.