Set distributed build state to failed if local build failed first
Set distributed build state to failed if local build failed first

Summary: Currently if a build finishes locally before remotely we always set the remote state to FINISHED_SUCCESSFULLY. We should differentiate between locally failed and locally succeeded.

Test Plan: ci

Reviewed By: shivanker

fbshipit-source-id: f8e2778

brettwooldridge/buck,romanoid/buck,ilya-klyuchnikov/buck,kageiit/buck,clonetwin26/buck,rmaz/buck,zpao/buck,Addepar/buck,zpao/buck,brettwooldridge/buck,shs96c/buck,shs96c/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,rmaz/buck,LegNeato/buck,ilya-klyuchnikov/buck,romanoid/buck,Addepar/buck,LegNeato/buck,rmaz/buck,SeleniumHQ/buck,brettwooldridge/buck,romanoid/buck,romanoid/buck,SeleniumHQ/buck,nguyentruongtho/buck,clonetwin26/buck,Addepar/buck,SeleniumHQ/buck,shs96c/buck,Addepar/buck,nguyentruongtho/buck,rmaz/buck,SeleniumHQ/buck,clonetwin26/buck,JoelMarcey/buck,JoelMarcey/buck,brettwooldridge/buck,LegNeato/buck,rmaz/buck,JoelMarcey/buck,romanoid/buck,SeleniumHQ/buck,brettwooldridge/buck,nguyentruongtho/buck,LegNeato/buck,LegNeato/buck,nguyentruongtho/buck,brettwooldridge/buck,clonetwin26/buck,JoelMarcey/buck,JoelMarcey/buck,facebook/buck,kageiit/buck,SeleniumHQ/buck,facebook/buck,LegNeato/buck,Addepar/buck,clonetwin26/buck,clonetwin26/buck,Addepar/buck,romanoid/buck,brettwooldridge/buck,LegNeato/buck,ilya-klyuchnikov/buck,zpao/buck,romanoid/buck,SeleniumHQ/buck,zpao/buck,facebook/buck,romanoid/buck,LegNeato/buck,shs96c/buck,Addepar/buck,ilya-klyuchnikov/buck,ilya-klyuchnikov/buck,clonetwin26/buck,Addepar/buck,facebook/buck,kageiit/buck,Addepar/buck,ilya-klyuchnikov/buck,rmaz/buck,kageiit/buck,shs96c/buck,LegNeato/buck,JoelMarcey/buck,romanoid/buck,zpao/buck,JoelMarcey/buck,SeleniumHQ/buck,brettwooldridge/buck,shs96c/buck,shs96c/buck,shs96c/buck,JoelMarcey/buck,brettwooldridge/buck,rmaz/buck,clonetwin26/buck,clonetwin26/buck,shs96c/buck,kageiit/buck,rmaz/buck,rmaz/buck,clonetwin26/buck,SeleniumHQ/buck,SeleniumHQ/buck,facebook/buck,romanoid/buck,brettwooldridge/buck,Addepar/buck,brettwooldridge/buck,rmaz/buck,Addepar/buck,rmaz/buck,facebook/buck,Addepar/buck,ilya-klyuchnikov/buck,romanoid/buck,LegNeato/buck,facebook/buck,kageiit/buck,JoelMarcey/buck,shs96c/buck,Addepar/buck,JoelMarcey/buck,JoelMarcey/buck,nguyentruongtho/buck,ilya-klyuchnikov/buck,ilya-klyuchnikov/buck,rmaz/buck,LegNeato/buck,kageiit/buck,SeleniumHQ/buck,shs96c/buck,ilya-klyuchnikov/buck,LegNeato/buck,nguyentruongtho/buck,shs96c/buck,SeleniumHQ/buck,nguyentruongtho/buck,zpao/buck,clonetwin26/buck,brettwooldridge/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,LegNeato/buck,zpao/buck,SeleniumHQ/buck,clonetwin26/buck,ilya-klyuchnikov/buck,romanoid/buck,rmaz/buck,romanoid/buck,shs96c/buck,brettwooldridge/buck,clonetwin26/buck