Status Update
Comments
co...@protonmail.com <co...@protonmail.com> #2
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com> #3
Actually these transforms are only ~40% of the time spend in there, but it's still a hot spot that we should resolve by not using a FileCollection
sp...@google.com <sp...@google.com> #4
xav@ could you assign this bug to someone to make sure it gets fixed?
co...@protonmail.com <co...@protonmail.com> #5
Jerome will do that for you :)
co...@protonmail.com <co...@protonmail.com> #6
Bingran, can you have a look at this asap. thx !
co...@protonmail.com <co...@protonmail.com> #7
To make sure I analyze the "buildOnServer-7.5-rc-2-2022-07-01-shutdown.snapshot" correctly, I attached a screenshot of how I find the concerning point. From the picture, the MergeGeneratedProguardFilesCreationAction takes 1924ms. Is that the right way to check your snapshot file? If so, what is the expected time for that creation action in a config cached build?
sp...@google.com <sp...@google.com> #8
I think you missed adding an attachment.
co...@protonmail.com <co...@protonmail.com> #9
oops, here it is =)
sp...@google.com <sp...@google.com> #10
From discussions with xav@ that time should almost be non-existent during the run when the configuration cache kicks in.
co...@protonmail.com <co...@protonmail.com> #11
I checked out androidx-main, is that the right one? There is no gradlew file under that directory.
bingran@bingran-linux-west:~/androidx-main/tools$ ls
external fetch_artifact metalava repohooks
And have you ever tried building androidx with the dev version of AGP(the one built from studio-main)?
sp...@google.com <sp...@google.com> #12
I checked out androidx-main, is that the right one? There is no gradlew file under that directory.
Yes, aosp androidx-main is the repo. You'll want to use frameworks/support/gradlew
thats the main repo all the work is done.
And have you ever tried building androidx with the dev version of AGP(the one built from studio-main)?
Yes we have a script for that
namely you can set a number of variables to use the latest AGP (
- GRADLE_PLUGIN_VERSION
- LINT_VERSION
- GRADLE_PLUGIN_REPO
and then run frameworks/support/gradlew
co...@protonmail.com <co...@protonmail.com> #13
I believe this issue can be fixed by Jerome'CL ag/19955912. I got 4 snapshots running androidx to verify the fix.
- the first run without the fix
- the second run(config cached) without the fix
- the first run with the fix
- the second run(config cached) with the fix
From the snapshot of secondWithFix_xxx
, if we do a search for MergeGeneratedProguardFilesCreationAction
in the call tree, nothing would show up. However, if we do the same search for secondWithoutFix_xx
, 3612ms is spent inside MergeGeneratedProguardFilesCreationAction
.
The fix also reduce the time spent in non config cached run if we compare the same thing for firstWithoutFix_xxx
and firstWithFix_xxx
sp...@google.com <sp...@google.com> #14
Great bug Aurimas, very useful to get such bugs filed.
sp...@google.com <sp...@google.com>
sp...@google.com <sp...@google.com> #15
Verified again for the latest patch of ag/19955912. The snapshot of the config cached run and the screenshot of the search result of the MergeGeneratedProguardFilesCreationAction
are attached. With the fix, the MergeGeneratedProguardFilesCreationAction
would only take a 8 ms which is close to zero.
sp...@google.com <sp...@google.com> #16
Thanks for filing the bug, OP. Your observation in
co...@protonmail.com <co...@protonmail.com> #17
FUCK YEAH! Glad I was helpful! Appreciate you working through it with me here. Cheers. Once I update to alpha08 I will remove the workaround I added. cheers
Description
You can see some of my investigation in this threadhttps://github.com/firebase/firebase-android-sdk/issues/3966
My hypothesis is either AGP 7.4.0-alpha09 has something broken that prevents builds to firebase app distribution OR app distribution needs something changed so that it can handle these builds.
I do not have a minimal repro project. Everytime I try to prune down my companys project, the uploads to firebase work again.
What I can say for certain is that if I switch from AGP 7.4.0-alpha09 to AGP 7.3.0-beta05, then everything works. If I move back to AGP 7.4.0-alpha09 then I can't upload into firebase app dist BUT I can upload to play store. I'm generating apks (not bundles) in all cases as I have not switched to aabs yet.
To continue my research I'm going to try to go from alpha01 to alpha09 and see which one breaks.