Remove Cirrus check for web test concurrency (#143046)

Tests no longer run on Cirrus.
#40630
This commit is contained in:
Jenn Magder 2024-02-07 13:36:24 -08:00 committed by GitHub
parent d60643e82f
commit 025d18d70a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2285,8 +2285,6 @@ Future<void> _runFlutterWebTest(String webRenderer, String workingDirectory, Lis
flutter,
<String>[
'test',
if (ciProvider == CiProviders.cirrus)
'--concurrency=1', // do not parallelize on Cirrus, to reduce flakiness
'-v',
'--platform=chrome',
'--web-renderer=$webRenderer',
@ -2482,21 +2480,6 @@ void adjustEnvironmentToEnableFlutterAsserts(Map<String, String> environment) {
environment['FLUTTER_TOOL_ARGS'] = toolsArgs.trim();
}
enum CiProviders {
cirrus,
luci,
}
CiProviders? get ciProvider {
if (Platform.environment['CIRRUS_CI'] == 'true') {
return CiProviders.cirrus;
}
if (Platform.environment['LUCI_CONTEXT'] != null) {
return CiProviders.luci;
}
return null;
}
/// Checks the given file's contents to determine if they match the allowed
/// pattern for version strings.
///