Fixed large amount of spelling errors (#83744)
This commit is contained in:
@@ -73,7 +73,7 @@ class Cocoon {
|
||||
/// Flutter infrastructure's workflow is:
|
||||
/// 1. Run DeviceLab test, writing results to a known path
|
||||
/// 2. Request service account token from luci auth (valid for at least 3 minutes)
|
||||
/// 3. Upload results from (1) to Cocooon
|
||||
/// 3. Upload results from (1) to Cocoon
|
||||
Future<void> sendResultsPath(String resultsPath) async {
|
||||
final File resultFile = fs.file(resultsPath);
|
||||
final Map<String, dynamic> resultsJson = json.decode(await resultFile.readAsString()) as Map<String, dynamic>;
|
||||
|
||||
@@ -25,7 +25,7 @@ final Set<String> noRebootForbidList = <String>{
|
||||
/// The maximum number of test runs before a device must be rebooted.
|
||||
///
|
||||
/// This number was chosen arbitrarily.
|
||||
const int maxiumRuns = 30;
|
||||
const int maximumRuns = 30;
|
||||
|
||||
/// Represents a unit of work performed in the CI environment that can
|
||||
/// succeed, fail and be retried independently of others.
|
||||
@@ -190,7 +190,7 @@ class _TaskRunner {
|
||||
} else {
|
||||
runCount = 0;
|
||||
}
|
||||
if (runCount < maxiumRuns) {
|
||||
if (runCount < maximumRuns) {
|
||||
rebootFile
|
||||
..createSync()
|
||||
..writeAsStringSync((runCount + 1).toString());
|
||||
|
||||
@@ -466,7 +466,7 @@ TaskFunction createFramePolicyIntegrationTest() {
|
||||
) as Map<String, dynamic>;
|
||||
final Map<String, dynamic> fullLiveData = data['fullyLive'] as Map<String, dynamic>;
|
||||
final Map<String, dynamic> benchmarkLiveData = data['benchmarkLive'] as Map<String, dynamic>;
|
||||
final Map<String, dynamic> dataFormated = <String, dynamic>{
|
||||
final Map<String, dynamic> dataFormatted = <String, dynamic>{
|
||||
'average_delay_fullyLive_millis':
|
||||
fullLiveData['average_delay_millis'],
|
||||
'average_delay_benchmarkLive_millis':
|
||||
@@ -478,8 +478,8 @@ TaskFunction createFramePolicyIntegrationTest() {
|
||||
};
|
||||
|
||||
return TaskResult.success(
|
||||
dataFormated,
|
||||
benchmarkScoreKeys: dataFormated.keys.toList(),
|
||||
dataFormatted,
|
||||
benchmarkScoreKeys: dataFormatted.keys.toList(),
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ Future<TaskResult> runWebBenchmark({ @required bool useCanvasKit }) async {
|
||||
if (benchmarkName != benchmarkIterator.current) {
|
||||
profileData.completeError(Exception(
|
||||
'Browser returned benchmark results from a wrong benchmark.\n'
|
||||
'Requested to run bechmark ${benchmarkIterator.current}, but '
|
||||
'Requested to run benchmark ${benchmarkIterator.current}, but '
|
||||
'got results for $benchmarkName.',
|
||||
));
|
||||
unawaited(server.close());
|
||||
|
||||
Reference in New Issue
Block a user