-
Notifications
You must be signed in to change notification settings - Fork 263
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
CI failing in Android build as out of memory #1330
Comments
After some further investigation: The failures started when this upstream PR landed: A CI run succeeded using the upstream commit just before that one; and then the next CI run used that upstream commit, and CI failed consistently from there. That PR is intentionally adding another step that happens in Android builds, when the Android NDK gets downloaded. Discussion on this upstream issue: which is about the effect on run times; it's unsurprising that it also affects memory use. It's a bit unfortunate that Flutter Android builds in a CI environment are now substantially more memory-hungry (was <1.5 GiB, now >2.5 GiB), and presumably slower too. But so be it — the new step serves a valuable purpose: flutter/flutter#60240 (comment) And a mitigating factor is that this seems to only affect running in a more or less fresh environment, like in CI — when I tried to reproduce on my desktop, the build consistently worked even with the old 1.5 GiB limit. |
Fixes zulip#1330. Since Monday, CI builds have been running out of memory, presumably due to some upstream change. Allocate more memory so that the CI can pass again. The limit was 1.5 GiB, but now even 2.5 GiB doesn't seem to be enough. So increase it to 3 GiB. CZO discussion: https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/Execution.20failed.20for.20task.20'.3Aapp.3AcompileDebugKotlin'/near/2076887 Signed-off-by: Zixuan James Li <[email protected]>
Update: #1324 increasing the limit to 3 GiB made CI pass most of the time (instead of never), but it's been flaky: In #1331 we bumped the limit further, to 4 GiB. We'll monitor to see if flakes continue. |
Fixes #1330. Since Monday, CI builds have been running out of memory, presumably due to some upstream change. Allocate more memory so that the CI can pass again. The limit was 1.5 GiB, but now even 2.5 GiB doesn't seem to be enough. So increase it to 3 GiB. CZO discussion: https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/Execution.20failed.20for.20task.20'.3Aapp.3AcompileDebugKotlin'/near/2076887 Signed-off-by: Zixuan James Li <[email protected]>
Starting Monday around 48 hours ago, our CI runs have all been failing with a "Java heap space" error in the
android
suite, like this:So the JVM under Gradle is running out of memory.
The workaround is we'll increase the limit of memory Gradle is allowed to use, in #1324.
It turns out the increase in needed memory is real steep, though — the limit was 1.5 GiB and it was running fine, and now (as @PIG208 determined in #1324) even 2.5 GiB isn't enough. (The PR makes it 3 GiB.) So it'd be good to spend a bit of time trying to pin down what caused the change, to see if there's something to fix upstream.
Chat thread: https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/Execution.20failed.20for.20task.20'.3Aapp.3AcompileDebugKotlin'/near/2076887
The text was updated successfully, but these errors were encountered: