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
F14062735: D13319.diff
Mon, Nov 18, 1:50 PM
F14035205: D13319.diff
Sun, Nov 10, 4:52 AM
F14031134: D13319.id32234.diff
Sat, Nov 9, 9:24 AM
F14031133: D13319.id32233.diff
Sat, Nov 9, 9:24 AM
F14031132: D13319.id.diff
Sat, Nov 9, 9:23 AM
F14020754: D13319.diff
Wed, Nov 6, 1:50 AM
F14019183: D13319.diff
Tue, Nov 5, 9:41 PM
F14007125: D13319.id32233.diff
Tue, Oct 29, 12:02 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.