Fix retry logic in large github import spec
What does this MR do and why?
Because of Faraday::Response::RaiseError
middleware, final errors that are raised are the Faraday
class errors so these errors need to be defined in the retry middleware, not the original ones.
This fixes retry not triggering correctly on github timeouts and server errors.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.