Page MenuHomePhabricator

Fail gracefully on bad API call when building commit mail
ClosedPublic

Authored by epriestley on Jun 16 2015, 10:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 11:17 PM
Unknown Object (File)
Thu, Apr 11, 7:50 AM
Unknown Object (File)
Tue, Apr 9, 10:31 PM
Unknown Object (File)
Mon, Apr 1, 8:21 AM
Unknown Object (File)
Wed, Mar 27, 6:04 PM
Unknown Object (File)
Mar 24 2024, 10:06 PM
Unknown Object (File)
Mar 24 2024, 9:44 PM
Unknown Object (File)
Mar 5 2024, 5:06 AM
Subscribers

Details

Summary

Ref T8574. This could fail because the target is disabled (as here), or doesn't have access to the API, or the API request needs to be satisfied by a different host which isn't available.

In any of these cases, just show the failure and continue generating the mail. This field isn't important enough to block the mail, and many of these errors are permanent.

(I'll follow up on T8574 with some more permanent ideas to address this class of issue.)

Test Plan

Faked API call failure, generated mail, saw clean generation of mail with a failure message.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fail gracefully on bad API call when building commit mail.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 16 2015, 11:04 PM
This revision was automatically updated to reflect the committed changes.