A common approach to the existence of both RC and Hotfix is:
Hotfix should not exists (or can, but very shortly) the same time while there is a pending RC.
Looking at this image :
What if there is a pending RC which is on staging, and wasn't fully tested yet, and suddenly there is a need for an urgent hotfix?
Sure we would then create a hotfix branch, fix it, and merge back to dev and master.
But what about the pending RC ?
- It doesn't contain the change.
- Git flow says we should not merge the hotfix to RC.
- We can't trust the fix is on master, because strictly speaking, RC should be uploaded and tested as a whole.
So should we then cancel the RC ? but then dev would not be the same as it was when RC was branched
Question
Assuming there is a pending non-fully-tested-RC, and an urgent hotfix, what should be done in terms of RC?
Even if we upload the RC (without the hotfix) to master (which contains the hotfix) - only the next RC will contain the hotfix (becuase of the dev merge with hotfix) - but it says that an RC which was never tested with the hotfix - is going to be uploaded !!!
I didn't find such information about those kinds of scenarios.
How should we deal with RC's and hotfixes?