-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add flag to disable output library.ap_ #11253
Add flag to disable output library.ap_ #11253
Conversation
defaultValue = "true", | ||
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED, | ||
effectTags = {OptionEffectTag.UNKNOWN}, | ||
help = "If disabled, does not provide library.ap_ outputs for library targets") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also include the PR description here? The PR description has great context, e.g. reducing download overhead and devices not requiring these files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - thanks for the review!
Update: looking into failing tests internally with blaze. |
Thanks Jin!
…On Thu, Apr 30, 2020, 7:51 PM Jin ***@***.***> wrote:
Update: looking into failing tests internally with blaze.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQFU6GIJFHIAQEPDJ4JWCTRPI2LDANCNFSM4MT6K52A>
.
|
I think bazelbuild/rules_android#10 is a better solution |
But do you think there is any use case in I agree that disabling R class merging is generally what we should aim for but wouldn't it still be producing useless |
I can't see a usecase for library.ap_ - I think it was just a side affect (-o is a mandatory parameter) from calling aapt2 link which is used to generate the R.java + R.txt. However, |
transitive_static_lib should be removed in coordination with #11253 PiperOrigin-RevId: 311406837
@jin, can you provide an update here, please? This is part of a batch of changes that are necessary to get Bazel's Android builds on par with Buck wrt. build performance. This is a blocker for some people for migrating from Buck to Bazel. |
I'm currently adding tests to add coverage for our decoupled |
Cool, glad to hear it. Have you been able to make progress? Anything we can help with? |
Blocking on internal review. |
Could you rebase your PRs onto f3d1683 please? |
@jin Just resolved conflicts is that enough? |
|
||
boolean outputLibraryLinkedResources() { | ||
return outputLibraryLinkedResources; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a missing closing brace here
Friendly ping. The tests are failing. Are you going to fix or drop this. |
@jin any updates on getting this merged? |
Any updates on this? |
@jin It looks like this PR was approved and it doesn't need any more changes. Can it be merged? Or does it not make sense any more and it should be closed? |
Any update on this? |
I tried to get a better reviewer than myself. Let's follow up in the other
PR.
…On Thu, Feb 10, 2022 at 5:38 PM Ben Lee ***@***.***> wrote:
This is still something that would be really nice to merge so I opened the
PR back up with the merge conflicts resolved. Mind taking another quick
look @jin <https://github.com/jin> @aiuto <https://github.com/aiuto>?
#14786 <#14786>
—
Reply to this email directly, view it on GitHub
<#11253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHADOLIS33DYCY5CAYLU2Q477ANCNFSM4MT6K52A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Awesome thanks @aiuto! |
Hello @jongerrish, Can you please check build failures and code conflicts Thanks! |
transitive_static_lib should be removed in coordination with bazelbuild/bazel#11253 PiperOrigin-RevId: 311406837
Hi there! Thank you for contributing to the Bazel repository. We appreciate your time and effort. We're doing a clean up of old PRs and will be closing this one since it seems to have stalled. Please feel free to reopen if you’re still interested in pursuing this or if you'd like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so. |
This PR is still in our backlog, sorry for the confusion. I'll mark this as "P3" so it doesn't get closed again. |
This PR was reopened over here with the conflicts resolved. |
Oh, thanks Ben! Closing this PR then. |
android_library
ResourceLinkAction
exports generated library.ap_ files. These files grow exponentially in size as their contents are merged in to depending libraries, but library.ap_ files are in the format consumable by devices only. Since android_binary generated the final library.ap_ file these intermediates are not needed as outputs.For a build the size of ours this saves around 2GB of unnecessary outputs.