]> khamidou — GitHub mirrors - arcanist.git/commit
Fix chunk upload fallback behavior
authorepriestley <git@epriestley.com>
Thu, 19 Mar 2015 02:06:27 +0000 (19:06 -0700)
committerepriestley <git@epriestley.com>
Thu, 19 Mar 2015 02:06:27 +0000 (19:06 -0700)
commit1a2829d281a9dac0c65a8127fdc7ddb594413c80
tree71f3a8c2a739cb806056c177f60dc9160015e090
parentb961869edac9469be93f2c3ac7a24562d3186860
Fix chunk upload fallback behavior

Summary:
Ref T7594. Currently, if a chunk upload fails, we incorrectly swallow the failure and fall back to single-file upload, which will often fail by hitting size limits. This also silences the original error.

Instead, do chunk uploads outside the block so that any exceptions escape, and we don't try to fall back to single-file upload.

Mostly just trying to get more info about what's going wrong on @joshuaspence's install.

Test Plan: Faked an exception in chunk upload, ran `arc upload` on a big file, saw the exception displayed on the console.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley, joshuaspence

Maniphest Tasks: T7594

Differential Revision: https://secure.phabricator.com/D12111
src/workflow/ArcanistUploadWorkflow.php