Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gerritstatusupdater: add logic for handling Dispatch-Trailer
If we receive an event for a commit that contains a Dispatch-Trailer, then decode that trailer in preference to trying to parse information from the branch name for the event. There is a lot going on in this CL. Ideally it would have been split into separate CLs for easier review etc. However, we have no unit/integration tests for gerritstatusupdater. The only way we can test the thing is to hook it up locally using ngrok and fire some events through it with real CI builds on GitHub. Splitting up this CL into multiple CLs would have required doing that manual testing many times over. So hopefully the assurance that this has been tested heavily locally, in all three modes of GERRITSTATUSUPDATER_DISPATCH_TRAILER_MODE is sufficient assurance. Signed-off-by: Paul Jolly <paul@myitcv.io> Change-Id: I3a3a5a9b4e4efd3745e67b9ebd32badb950d95f5
- Loading branch information