996930da2ae0773b78ec336819f1ca1660b60482
				
			
			
		
	 epriestley
		
	
	996930da2a
	
	
	Improve several exception behaviors for Harbormaster workers
			epriestley
		
	
	996930da2a
	
	
	Improve several exception behaviors for Harbormaster workers
		
			
			Summary:
Ref T2015. Several fixes:
  - `checkForCancellation()` no longer exists, and isn't relevant for resumable stops. Throw it away for now.
  - Fix an issue where a build could pass even if the final step failed.
  - `phlog()` exceptions so they show up in `bin/harbormaster` and the daemon logs.
  - Write an exception log if a step fails.
  - Add a "throw an exception" step to debug this stuff more easily.
Test Plan:
  - Grepped for `checkForCancellation()`.
  - Ran a failing build where the final step caused the failure.
  - Observed `phlog()` in `bin/harbormaster` output.
  - Observed log in web UI:
{F101168}
Reviewers: btrahan, hach-que
Reviewed By: btrahan
CC: aran
Maniphest Tasks: T2015
Differential Revision: https://secure.phabricator.com/D7935
		
	
Phabricator is an open source collection of web applications which make it easier to write, review, and share source code. Phabricator was developed at Facebook. It's pretty high-quality and usable, but under active development so things may change quickly. You can learn more about the project and find links to documentation and resources at: http://phabricator.org/ LICENSE Phabricator is released under the Apache 2.0 license except as otherwise noted.
Description
				
					Languages
				
				
								
								
									PHP
								
								93.4%
							
						
							
								
								
									JavaScript
								
								4.1%
							
						
							
								
								
									CSS
								
								2.4%