[infra] Add unapproved failures test to builder status script

TBR: athom@google.com
Change-Id: I086b26acb310e407cb4060db1e14d7a7c6c57cdc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129707
Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
William Hesse 2019-12-30 14:02:23 +00:00
parent d3b40e59c6
commit 05e70d5b38

View file

@ -97,8 +97,13 @@ main(List<String> args) async {
(document['fields']['success'] ?? const {})['booleanValue'];
bool completed =
(document['fields']['completed'] ?? const {})['booleanValue'];
bool activeFailures =
(document['fields']['active_failures'] ?? const {})['booleanValue'];
if (completed) {
exit(success ? 0 : 1);
print('Success: $success');
if (activeFailures == true) print('Has active unapproved failures');
exit((success && (activeFailures != true)) ? 0 : 1);
}
String chunks =
(document['fields']['num_chunks'] ?? const {})['integerValue'];