Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Oct 17, 2020

Description

Remove devicelab specific code for shutting down gradle daemon, add --android-gradle-daemon option 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-daemon will pass --no-daemon on to gradle

@flutter-dashboard flutter-dashboard bot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Oct 17, 2020
@google-cla google-cla bot added the cla: yes label Oct 17, 2020
@flutter-dashboard flutter-dashboard bot added the a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) label Oct 18, 2020
@jonahwilliams jonahwilliams requested a review from dnfield October 19, 2020 14:52

/// Whether to enable the Gradle daemon when performing an Android build.
///
/// Starting the daemon is the default behavior of the gradle wrapper script created
Copy link
Member

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?

Copy link
Contributor Author

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();
Copy link
Member

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?

Copy link
Contributor Author

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

@jonahwilliams
Copy link
Contributor Author

iOS/macOS failures is the current SDK flake and is unrelated

@jonahwilliams jonahwilliams merged commit ddab72e into flutter:master Oct 19, 2020
@jonahwilliams jonahwilliams deleted the no_gradle_daemon branch October 19, 2020 16:12
jonahwilliams pushed a commit that referenced this pull request Oct 19, 2020
jonahwilliams pushed a commit that referenced this pull request Oct 19, 2020
@jonahwilliams jonahwilliams restored the no_gradle_daemon branch October 19, 2020 16:35
@whesse
Copy link
Contributor

whesse commented Oct 25, 2023

This was relanded in #68491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants