operations: Structured errors for UserCommitFiles
The UserCommitFiles
RPC may in some cases return a successful response even though the operation has failed, which will create unnecessary replication jobs. Responses may contain an pre-receive error, or an error that occurred during an index operation.
To mitigate this, start returning structured errors which will allow clients to continue to parse out specific reasons that a request failed while also giving Gitaly more information on what failures are occurring.
Related to #4472 (closed)
Rails MR: gitlab!101958 (merged)
Edited by Will Chandler (ex-GitLab)