What's in this PR?
Add code to skip the commit if error is "422 not found by sha" when on the last try. Only apply for push queue.
Why
I think on the last re-try, if we still couldn't find the commit by sha from either github.com or ghes, it could means either the server is wrong or the commit is gone. We should skip the message instead of putting them in DLQ.
What's in this PR? Add code to skip the commit if error is "422 not found by sha" when on the last try. Only apply for push queue.
Why I think on the last re-try, if we still couldn't find the commit by sha from either github.com or ghes, it could means either the server is wrong or the commit is gone. We should skip the message instead of putting them in DLQ.
Added feature flags skip-commit-if-sha-not-found-on-last-try
Affected issues
ARC-2759
How has this been tested?
Unit test.
Whats Next?