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
@@ -377,6 +377,8 @@ abstract class FlutterCommand extends Command<void> {
|
||||
/// Whether flutter is being run from our CI.
|
||||
bool get usingCISystem => boolArg(FlutterGlobalOptions.kContinuousIntegrationFlag, global: true);
|
||||
|
||||
String? get debugLogsDirectoryPath => stringArg(FlutterGlobalOptions.kDebugLogsDirectoryFlag, global: true);
|
||||
|
||||
/// The value of the `--filesystem-scheme` argument.
|
||||
///
|
||||
/// This can be overridden by some of its subclasses.
|
||||
|
||||
@@ -44,6 +44,7 @@ abstract final class FlutterGlobalOptions {
|
||||
static const String kVersionFlag = 'version';
|
||||
static const String kWrapColumnOption = 'wrap-column';
|
||||
static const String kWrapFlag = 'wrap';
|
||||
static const String kDebugLogsDirectoryFlag = 'debug-logs-dir';
|
||||
}
|
||||
|
||||
class FlutterCommandRunner extends CommandRunner<void> {
|
||||
@@ -164,6 +165,11 @@ class FlutterCommandRunner extends CommandRunner<void> {
|
||||
help: 'Enable a set of CI-specific test debug settings.',
|
||||
hide: !verboseHelp,
|
||||
);
|
||||
argParser.addOption(
|
||||
FlutterGlobalOptions.kDebugLogsDirectoryFlag,
|
||||
help: 'Path to a directory where logs for debugging may be added.',
|
||||
hide: !verboseHelp,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user