Consider the following situation:
- commit A is pushed
- job A is started
- commit B is pushed
- job B is started
- job B finishes, uploads artifact and updated comment
- job A finishes, uploads artifact and updated comment
In result, we have outdated artifact and comment. Mixed combination are also possible, when only artifact or only comment is outdated.
We should somehow detect and prevent this situation.