anchor.diff:    }
   
     builder = options['builder'];
  -  final buildNumber = options['build_number'];
  -  final table = builder.endsWith('-try') ? 'try_builds' : 'builds';
  +  buildNumber = int.parse(options['build_number']);
  +  builderBase = builder.replaceFirst(RegExp('-try\$'), '');
     token = await File(options['auth_token']).readAsString();
     client = http.Client();
  -  final query = {
  -    'from': [
  -      {'collectionId': table}
  -    ],
  -    'limit': 1,
  -    'where': {
  -      'compositeFilter': {
  -        'op': 'AND',
  -        'filters': [
  -          {
  -            'fieldFilter': {
  -              'field': {'fieldPath': 'build_number'},
  -              'op': 'EQUAL',
  -              'value': {'integerValue': buildNumber}
  -            }
  -          },
  -          {
  -            'fieldFilter': {
  -              'field': {'fieldPath': 'builder'},
  -              'op': 'EQUAL',
  -              'value': {'stringValue': builder}
  -            }
  -          }
  -        ]
  -      }
  -    }
  -  };
     for (int count = 0; count < numAttempts; ++count) {
       if (count > 0) {
         await Future.delayed(Duration(seconds: 10));
       }
  -    final response = await runFirestoreQuery(query);
  +    final response = await runFirestoreQuery(buildQuery());
       if (response.statusCode == HttpStatus.ok) {
         final documents = jsonDecode(response.body);
         final document = documents.first['document'];
  
positive.code:             print('No unapproved new failures');
              if (activeFailures == true) {
                print('There are unapproved failures from previous builds');
                await printResultsFeedLink();
              }
            } else {
              print('There are unapproved new failures on this build');
              await printResultsFeedLink();
            }
            exit((success && (activeFailures != true)) ? 0 : 1);
          }
  
negative.code: import 'package:http/http.dart' as http;
  
  const numAttempts = 20;
  const failuresPerConfiguration = 20;
  const queryUrl = 'https://firestore.googleapis.com/v1/'
      'projects/dart-ci/databases/(default)/documents:runQuery';
  String builder;
  String builderBase;
  int buildNumber;
  String token;
  List<String> configurations;
  Map<String, List<Map<String, dynamic>>> failures = {};
  http.Client client;
  
  String get buildTable => builder.endsWith('-try') ? 'try_builds' : 'builds';
  String get resultsTable => builder.endsWith('-try') ? 'try_results' : 'results';
  
  bool booleanFieldOrFalse(Map<String, dynamic> document, String field) {
    Map<String, dynamic> fieldObject = document['fields'][field];
  