You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixup(errs): address review on the HTTP classifier
- Stop declining context.DeadlineExceeded. Only context.Canceled is left to the
generic classifier now. A deadline that elapses mid-request means the remote
end did not answer in time, so it belongs to the dependency; declining it also
stranded the node, because generic matches only Canceled and nothing else
claimed it unless platform/errs/mysql happened to be wired. A processor test
with just generic + http pins that the classifier stands on its own.
- Bound StatusError.Error to 1 KiB of body. The rendered string reaches the
queue's dead-letter record through Reject(ctx, err.Error()) and last_error is
finite, so a large error page could fail that write and leave the message stuck
instead of dead-lettered. Body is still kept whole.
- Convert the GitHub Actions client's two status paths as well. Stovepipe runs
both build runners, so leaving one untyped meant a 502 was retried or
dead-lettered depending only on which runner the queue used.
- Assert with errors.As that both clients return *StatusError and carry the code.
The old tests only checked that an error came back, so they passed before the
typed error existed and would keep passing if it were reverted.
- Document that a retried create can duplicate a build, on both clients' create
paths. Note that codes below 100, including 0, take the non-retryable
fall-through deliberately, and cover 0 in the table.
0 commit comments