mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
fix: internal and log url (#2492)
This commit is contained in:
@@ -454,7 +454,7 @@ def _save_results(results: List[NotebookExecutionResult],
|
||||
fail_count = 1
|
||||
if result.error_message is None:
|
||||
error_type = ''
|
||||
elif 'INTERNAL' in result.error_message:
|
||||
elif '500 Internal' in result.error_message:
|
||||
error_type = 'INTERNAL'
|
||||
elif 'context deadline exceeded' in result.error_message:
|
||||
error_type = 'TIMEOUT'
|
||||
|
||||
@@ -32,7 +32,14 @@ for item in results.items():
|
||||
|
||||
error = item[1]['error_type']
|
||||
|
||||
if error == '' and passed == "FAIL":
|
||||
error = "undetermined"
|
||||
if passed == "FAIL":
|
||||
if error == '':
|
||||
error = "undetermined"
|
||||
if 'log_url' in item[1]:
|
||||
log_url = item[1]['log_url']
|
||||
else:
|
||||
log_url = ''
|
||||
else:
|
||||
log_url = ''
|
||||
|
||||
print(f"{notebook:75} {passed} {error}")
|
||||
print(f"{notebook:75} {passed} {error:10} {log_url}")
|
||||
|
||||
Reference in New Issue
Block a user