4

I spent considerable time googling around, but found nothing that would answer my question, so here it is.

If you do a canary release, and you learn the the release is somehow broken: how to you denote that a certain tag is broken and should not be deployed anywhere else, but removed from your productions ASAP?

I had several ideas:

  1. Using GitLab, I could add something like **broken** to tag release note. Deploy jobs would call GitLab API to ensure that the tag I want to deploy is not annotated as broken.

  2. I could have a text file in repo, where broken tags would be listed. In this case deploy job checks if the tag you want to deploy is not listed in the file.

  3. Do no save information about release problems: just deploy a new stable, patched version to production and never look back.

How do/would you handle this? Any tips or hyperlinks are welcome.

chicks
  • 1,848
  • 1
  • 12
  • 29
pjboro
  • 41
  • 2

3 Answers3

2

I am not sure about other approaches, but the one that I use is a modification of #3.

There's usually a classification of releases (for example think of Ubuntu LTS and regular release).

  1. For the regular release, I would just release a new version and add a new tag.
  2. For LTS/Stable releases I would delete a tag pointing to a faulty release or change a commit this tag points to
  • is understandable and seems like it resolves the problem without introducing complexity. As for 2: I heard from some senior people I should never remove tags, because changing/deleting history usually does more harm than good.
  • – pjboro Apr 26 '20 at 14:24
  • @pjboro I would not consider tag a history - it is just a pointer to a commit. You may also consider changing the commit a tag points to – Alexander Pushkarev Apr 26 '20 at 17:28