feat: support show_error and show_proc_peak
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				build / build (push) Failing after 45s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	build / build (push) Failing after 45s
				
			This commit is contained in:
		
							parent
							
								
									e1e3d59492
								
							
						
					
					
						commit
						7b9f57343b
					
				|  | @ -199,6 +199,7 @@ class ResultDetailConfig(BaseModel): | ||||||
|     show_time: bool = Field(True, serialization_alias="showTime") |     show_time: bool = Field(True, serialization_alias="showTime") | ||||||
|     show_memory: bool = Field(False, serialization_alias="showMemory") |     show_memory: bool = Field(False, serialization_alias="showMemory") | ||||||
|     show_runtime: bool = Field(True, serialization_alias="showRuntime") |     show_runtime: bool = Field(True, serialization_alias="showRuntime") | ||||||
|  |     show_proc_peak: bool = Field(False, serialization_alias="showProcPeak") | ||||||
|     show_files: List[str] = Field([], serialization_alias="showFiles") |     show_files: List[str] = Field([], serialization_alias="showFiles") | ||||||
|     files_in_code_block: bool = Field(True, serialization_alias="filesInCodeBlock") |     files_in_code_block: bool = Field(True, serialization_alias="filesInCodeBlock") | ||||||
|     max_file_length: int = Field(2048, serialization_alias="maxFileLength") |     max_file_length: int = Field(2048, serialization_alias="maxFileLength") | ||||||
|  |  | ||||||
|  | @ -21,7 +21,9 @@ class ParserResultDetail(BaseModel): | ||||||
|     mem: bool = True  # Display memory usage |     mem: bool = True  # Display memory usage | ||||||
|     stdout: bool = False  # Display stdout messages |     stdout: bool = False  # Display stdout messages | ||||||
|     stderr: bool = False  # Display stderr messages |     stderr: bool = False  # Display stderr messages | ||||||
|     exit_status: bool = True |     exit_status: bool = True  # Display exit status | ||||||
|  |     proc_peak: bool = False  # Display peak process count | ||||||
|  |     error: bool = False  # Display error messages | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class ParserFile(BaseModel): | class ParserFile(BaseModel): | ||||||
|  |  | ||||||
|  | @ -149,6 +149,8 @@ def fix_result_detail( | ||||||
|         show_runtime=result_detail_parser_config.time, |         show_runtime=result_detail_parser_config.time, | ||||||
|         show_time=result_detail_parser_config.cpu_time, |         show_time=result_detail_parser_config.cpu_time, | ||||||
|         show_memory=result_detail_parser_config.mem, |         show_memory=result_detail_parser_config.mem, | ||||||
|  |         show_error=result_detail_parser_config.error, | ||||||
|  |         show_proc_peak=result_detail_parser_config.proc_peak, | ||||||
|     ) |     ) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user