mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:10:22 +00:00
[infra] Remove creation of unused file
Change-Id: Ie13367008cbd64dcacd06ca7e8f5c76fea9aa795 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141601 Commit-Queue: Karl Klose <karlklose@google.com> Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
parent
fb3ea6a8f2
commit
5507e3bd32
1 changed files with 0 additions and 32 deletions
|
@ -10,10 +10,6 @@
|
|||
// so the cloud function only needs to process 100 records within its time
|
||||
// limit of 60s. Because of this, we never approach the limit of 10 MB
|
||||
// base64-encoded data bytes per message.
|
||||
//
|
||||
// The function also scans results.json to find the configurations tested
|
||||
// by this builder, and writes them and a results feed URL filtered to
|
||||
// those configuration groups to a json file, used later in the recipe.
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
@ -62,34 +58,6 @@ main(List<String> args) async {
|
|||
print('No results in input file');
|
||||
return;
|
||||
}
|
||||
// Record the configurations appearing in these results.
|
||||
final configurationRegexp = RegExp('"configuration":"([^"]*)"');
|
||||
final configurationsSet = {
|
||||
for (final result in lines) configurationRegexp.firstMatch(result)?.group(1)
|
||||
};
|
||||
if (configurationsSet.contains(null)) {
|
||||
print("Error: result without a configuration");
|
||||
configurationsSet.remove(null);
|
||||
}
|
||||
final configurations = configurationsSet.toList()..sort();
|
||||
final configurationGroups = {
|
||||
for (final configuration in configurations) configuration.split('-').first
|
||||
};
|
||||
// Construct a link to the results feed that includes a filter showing
|
||||
// unapproved failures for those configuration groups.
|
||||
String fragment = [
|
||||
'showLatestFailures=true',
|
||||
'showUnapprovedOnly=true',
|
||||
if (configurationGroups.isNotEmpty)
|
||||
'configurationGroups=${configurationGroups.join(',')}'
|
||||
].join('&');
|
||||
final resultsFeedUrl = 'https://dart-ci.firebaseapp.com/#$fragment';
|
||||
// Save them to a file.
|
||||
await File('builder_tested_configurations')
|
||||
.writeAsString(JsonEncoder.withIndent(' ').convert({
|
||||
'configurations': configurations,
|
||||
'results_feed_link': resultsFeedUrl,
|
||||
}));
|
||||
|
||||
final changedPattern = '"changed":true';
|
||||
List<String> changedResults =
|
||||
|
|
Loading…
Reference in a new issue