-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[flutter_tools] add --android-gradle-daemon option, use in devicelab #68409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| /// Whether to enable the Gradle daemon when performing an Android build. | ||
| /// | ||
| /// Starting the daemon is the default behavior of the gradle wrapper script created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this go in the help text for the flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| } finally { | ||
| if (!runnerFinished) | ||
| runner.kill(ProcessSignal.sigkill); | ||
| await cleanupSystem(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to check that the gradle daemon is not running?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could look for still running java processes in the before/after process check
|
iOS/macOS failures is the current SDK flake and is unrelated |
|
This was relanded in #68491 |
Description
Remove devicelab specific code for shutting down gradle daemon, add
--android-gradle-daemonoption to build/run/drive`. Avoids need for un-tested devicelab specific handler. There are also some feature requests for this, so 2 birds one stone.Example:
flutter build apk --no-android-gradle-daemonwill pass--no-daemonon to gradle