-
Notifications
You must be signed in to change notification settings - Fork 124
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
Update AGP to version 8.2.1 or newer #2680
base: main
Are you sure you want to change the base?
Conversation
be90068
to
fffb5b8
Compare
interestingly this doesn't fail for me locally |
oh, that last log line was not even accurate. |
Hm, is this this? |
AGP 8.1+ seem to be buggy in general when it comes to overly-aggressive optimizations by R8. mcarare has had a number of issues with that with Fenix too. Talking to him, we both kind of figured this was a similar issue but I haven't really had time to poke around with disabling the different R8 optimizations to see if any of them happen to fix this. Been just kind keeping my fingers crossed that maybe a newer AGP would eventually sort it out 😄 |
@badboy Feel free to take over this PR if you're feeling so inclined. This hasn't been a high priority for me. |
Nah, I just wanted to look if there's anything low-hanging that can make this work. But I equally don't really have the time right now to see that through, so if that's not currently high priority and required for anything this will be defered a bit longer. |
193e951
to
38b7818
Compare
38b7818
to
631c1ec
Compare
@badboy this is just a fly-by comment: consider disabling R8 fullmode for now, as we have done in fenix/focus, so that it doesn't block you from upgrading to a newer version of AGP. |
well, that didn't fix things on its own. |
I'm going to punt on updating AGP for now and focus just on updating Gradle in a new PR. |
3c9cc00
to
eca7c25
Compare
eca7c25
to
c1c9b3a
Compare
c1c9b3a
to
ba62ab8
Compare
ba62ab8
to
eb5303d
Compare
I tried looking into this once more. On
The first one is from where the tests will load On this branch it only ends up in
and according to the tests the resource path includes On my Macbook on this branch
and thus the tests work. So for some reason on Linux the |
@badboy shot in the dark: maybe compare the results on linux with your mac using the command below that will re-run all the tasks (disables task caching) and dry-run to see the tasks in an easily diff-able way. Maybe there is something different happening on each?
|
The only difference is which cargo build task is invoked, which is expected. --- gradle-linux.log 2024-04-16 18:42:48
+++ gradle-macos.log 2024-04-16 18:41:51
@@ -82,11 +82,11 @@
:glean:generateDebugUnitTestConfig SKIPPED
:glean:processDebugJavaRes SKIPPED
:generateLinkerWrapper SKIPPED
-:glean-native:cargoBuildLinux-x86-64 SKIPPED
+:glean-native:cargoBuildDarwin-aarch64 SKIPPED
:glean-native:cargoBuild SKIPPED
:glean:processDebugUnitTestJavaRes SKIPPED
:glean-native:bundleLibRuntimeToJarDebug SKIPPED
:glean-native:processDebugJavaRes SKIPPED
:glean:testDebugUnitTest SKIPPED
-BUILD SUCCESSFUL in 6s
+BUILD SUCCESSFUL in 4s |
I can't shake this feeling that jnaForTest is the source of the problem, specifically the jnaForTestConfiguration stuff in |
FYI, this blocks updating to and compiling with the Android SDK 35 also. |
ae5daee
to
c4e28d2
Compare
No description provided.