Provide more detailed info about build status to hydra-queue-runner
In particular, hydra-queue-runner can now distinguish between remote build / substitution / already-valid. For instance, if a path already existed on the remote side, we don't want to store a log file.
This commit is contained in:
		
							parent
							
								
									ccf31dbc25
								
							
						
					
					
						commit
						eda2f36c2a
					
				
					 2 changed files with 75 additions and 47 deletions
				
			
		|  | @ -103,13 +103,23 @@ enum BuildMode { bmNormal, bmRepair, bmCheck }; | |||
| struct BuildResult | ||||
| { | ||||
|     enum Status { | ||||
|         Success = 0, | ||||
|         PermanentFailure = 1, | ||||
|         TimedOut = 2, | ||||
|         MiscFailure = 3 | ||||
|         Built = 0, | ||||
|         Substituted, | ||||
|         AlreadyValid, | ||||
|         PermanentFailure, | ||||
|         InputRejected, | ||||
|         OutputRejected, | ||||
|         TransientFailure, // possibly transient
 | ||||
|         CachedFailure, | ||||
|         TimedOut, | ||||
|         MiscFailure, | ||||
|         DependencyFailed | ||||
|     } status = MiscFailure; | ||||
|     std::string errorMsg; | ||||
|     //time_t startTime = 0, stopTime = 0;
 | ||||
|     bool success() { | ||||
|         return status == Built || status == Substituted || status == AlreadyValid; | ||||
|     } | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue