Upload DerivedData logs in CI (#142643)
When the Dart VM is not found within 10 minutes in CI on CoreDevices (iOS 17+), stop the app and upload the logs from DerivedData. The app has to be stopped first since the logs are not put in DerivedData until it's stopped. Also, rearranged some logic to have CoreDevice have its own function for Dart VM url discovery. Debugging for https://github.com/flutter/flutter/issues/142448.
This commit is contained in:
committed by
GitHub
parent
899f423464
commit
e5c286e02e
@@ -469,6 +469,7 @@ List<String> _flutterCommandArgs(String command, List<String> options) {
|
||||
final String? localEngineHost = localEngineHostFromEnv;
|
||||
final String? localEngineSrcPath = localEngineSrcPathFromEnv;
|
||||
final String? localWebSdk = localWebSdkFromEnv;
|
||||
final bool pubOrPackagesCommand = command.startsWith('packages') || command.startsWith('pub');
|
||||
return <String>[
|
||||
command,
|
||||
if (deviceOperatingSystem == DeviceOperatingSystem.ios && supportedDeviceTimeoutCommands.contains(command))
|
||||
@@ -489,7 +490,9 @@ List<String> _flutterCommandArgs(String command, List<String> options) {
|
||||
// Use CI flag when running devicelab tests, except for `packages`/`pub` commands.
|
||||
// `packages`/`pub` commands effectively runs the `pub` tool, which does not have
|
||||
// the same allowed args.
|
||||
if (!command.startsWith('packages') && !command.startsWith('pub')) '--ci',
|
||||
if (!pubOrPackagesCommand) '--ci',
|
||||
if (!pubOrPackagesCommand && hostAgent.dumpDirectory != null)
|
||||
'--debug-logs-dir=${hostAgent.dumpDirectory!.path}'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user