-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listblockedIssue is blocked by another issueIssue is blocked by another issuec: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.fyi-androidFor the attention of Android platform teamFor the attention of Android platform teamfyi-infraFor the attention of Infrastructure teamFor the attention of Infrastructure teamplatform-androidAndroid applications specificallyAndroid applications specificallyteam-toolOwned by Flutter Tool teamOwned by Flutter Tool team
Description
Working theory: This is caused by #51421.
A lot of credit goes both to @gmackall and @reidbaker for offline conversations that led to this issue.
As of today (2024-11-15), different integration tests (in particular, tooling integration tests, if that ends up mattering) are having somewhat significant and currently undiagnosed problems with tests that call (and block on) flutter build apk.
For example:
- Windows tool integration tests are flaky: "Java heap space" #157640
flutter build "apk" succeeds without librariesfromnative_assets_without_cbuild_assemble_test.dartis slow and flaky #158560
Three possible things happen that end up leading to failures:
- The test times out (taking longer than 15m) or the shard times out (taking longer than 30-60m)
- The test fails due to a Java Heap/OOM
- The test fails due to (hypothesis) the OS killing Gradle due to low memory
Some things to try:
- Try creating a
bringup: trueshard where failures happen somewhat consistently to try fixes - Try adding
--verboseto get information about the version of Gradle/Gradle settings being used - Remove the
no-daemonfrom recipes which doesn't appear to be having any effect/is confusing - Try using jps to list active Java processes and memory usage between/after tests.
- Try running with double the amount of RAM to see if higher memory lowers flakes significantly
/cc @andrewkolos @bkonyi.
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listblockedIssue is blocked by another issueIssue is blocked by another issuec: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passc: tech-debtTechnical debt, code quality, testing, etc.Technical debt, code quality, testing, etc.fyi-androidFor the attention of Android platform teamFor the attention of Android platform teamfyi-infraFor the attention of Infrastructure teamFor the attention of Infrastructure teamplatform-androidAndroid applications specificallyAndroid applications specificallyteam-toolOwned by Flutter Tool teamOwned by Flutter Tool team