Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 05e70d5

Browse files
committed
[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>
1 parent d3b40e5 commit 05e70d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/bots/get_builder_status.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,13 @@ main(List<String> args) async {
9797
(document['fields']['success'] ?? const {})['booleanValue'];
9898
bool completed =
9999
(document['fields']['completed'] ?? const {})['booleanValue'];
100+
bool activeFailures =
101+
(document['fields']['active_failures'] ?? const {})['booleanValue'];
102+
100103
if (completed) {
101-
exit(success ? 0 : 1);
104+
print('Success: $success');
105+
if (activeFailures == true) print('Has active unapproved failures');
106+
exit((success && (activeFailures != true)) ? 0 : 1);
102107
}
103108
String chunks =
104109
(document['fields']['num_chunks'] ?? const {})['integerValue'];

0 commit comments

Comments
 (0)