I think this is one of the first thing that I tried when I encountered this problem, but I have to admit I did not checked the size improvement, since the ‘repo sync’ execution time from a local mirror was still above 25min.
On a general note, I would expect calling repo init / repo sync without any additional arguments to give me a standard source tree with “reasonable” size. I always considered extra arguments as “optimizations”, and not something to always add (…. And here I use “I” since this is my personal opinion 😉) On Tue, May 14, 2024 at 18:00 'Dan Willemsen' via Android Building < [email protected]> wrote: > I'd still recommend using `--partial-clone` in `repo init`, the downloads > will be significantly smaller. But it does make more git operations talk to > the server, in order to download historical objects that you didn't > download initially. > > One tradeoff, which is slightly larger and takes more time to download, > but doesn't trigger network operations nearly as often is to use > `--partial-clone-exclude=platform/frameworks/base > --clone-filter=blob:limit=10M`. We use that in addition to ` > REPO_ALLOW_SHALLOW=0` to switch from clone-depth to partial-clones. I've > filed a bug against source.android.com to document that in the > instructions, but it may be a while. > > Was there a notification that lunch is now manual? If so where and can >> you provide insight as to why? Mostly just curious .. >> > > I think it's more of a bug that the common lunch choice menu > isn't working. But in any case, they've never been comprehensive, and it's > always been faster to specify the combination you want on the command line. > > - Dan > > On Tue, May 14, 2024 at 11:53 AM Mathieu Fluhr <[email protected]> > wrote: > >> This issue was triggered by a commit when 14 QPR2 was released: >> https://android.googlesource.com/platform/manifest/+/88132d440afaa83857b85c0ca49ac3f463a363c9 >> The main branch remains unaffected, so checking out main still gives >> reasonable sizes. >> >> Kind Regards, >> Mathieu >> On Tuesday, May 14, 2024 at 5:45:58 PM UTC+2 enh wrote: >> >>> "works for me" in AOSP master, so maybe just a bug that it was broken >>> in the particular snapshot you're using? >>> >>> note that there's also tab-completion for lunch targets. i personally >>> find that super useful. >>> >>> On Tue, May 14, 2024 at 11:28 AM 'John W. Blue' via Android Building >>> <[email protected]> wrote: >>> > >>> > Was there a notification that lunch is now manual? If so where and can >>> you provide insight as to why? Mostly just curious .. >>> > >>> > >>> > >>> > John >>> > >>> > >>> > >>> > From: [email protected] [mailto: >>> [email protected]] On Behalf Of Michael Swartout >>> > Sent: Tuesday, May 14, 2024 10:21 AM >>> > To: [email protected] >>> > Subject: Re: [android-building] AOSP downloads just got much bigger! >>> > >>> > >>> > >>> > You figured it out, good for you. "--partial-clone" can also be used >>> instead of "--depth=1". We have to manually do lunch now though, no more >>> list to choose from. >>> > >>> > >>> > >>> > On Tue, May 14, 2024 at 10:03 AM 'chris simmonds' via Android Building >>> <[email protected]> wrote: >>> > >>> > I just did a repo sync on android-14.0.0_r29 and was surprised that it >>> downloaded almost 900 GB of data! Why? >>> > >>> > Answer: before r29, most of the binary blobs in the manifest were >>> marked with clone-depth="1" so you only got the most recent version. Now >>> you get all versions. For example >>> .repo/projects/device/google/bluejay-kernel.git/ has gone from 0.5 GB to 14 >>> GB >>> > >>> > Solution: *always* set the clone depth to 1 when you repo init: >>> > >>> > $ repo init --depth=1 -u ..... >>> > >>> > >>> > >>> > Cheers, >>> > >>> > Chris Simmonds, https://aospandaaos.github.io/ >>> > >>> > >>> > >>> > -- >>> > -- >>> > You received this message because you are subscribed to the "Android >>> Building" mailing list. >>> > To post to this group, send email to [email protected] >>> > To unsubscribe from this group, send email to >>> > [email protected] >>> > For more options, visit this group at >>> > http://groups.google.com/group/android-building?hl=en >>> > >>> > --- >>> > You received this message because you are subscribed to the Google >>> Groups "Android Building" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> > To view this discussion on the web visit >>> https://groups.google.com/d/msgid/android-building/1e778aa7-f6b3-4e32-aa18-03c60fdea8b2n%40googlegroups.com. >>> >>> > >>> > -- >>> > -- >>> > You received this message because you are subscribed to the "Android >>> Building" mailing list. >>> > To post to this group, send email to [email protected] >>> > To unsubscribe from this group, send email to >>> > [email protected] >>> > For more options, visit this group at >>> > http://groups.google.com/group/android-building?hl=en >>> > >>> > --- >>> > You received this message because you are subscribed to the Google >>> Groups "Android Building" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> > To view this discussion on the web visit >>> https://groups.google.com/d/msgid/android-building/CAEq4fyAeVf1e8xHxH1xm%2BR3r08K0QRphdTa-AJVtBG1g32Wm-A%40mail.gmail.com. >>> >>> > >>> > -- >>> > -- >>> > You received this message because you are subscribed to the "Android >>> Building" mailing list. >>> > To post to this group, send email to [email protected] >>> > To unsubscribe from this group, send email to >>> > [email protected] >>> > For more options, visit this group at >>> > http://groups.google.com/group/android-building?hl=en >>> > >>> > --- >>> > You received this message because you are subscribed to the Google >>> Groups "Android Building" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> > To view this discussion on the web visit >>> https://groups.google.com/d/msgid/android-building/f1df71694b07446084215c99dbf2ee01%40mail.rrcic.com. >>> >>> >> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-building?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Building" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/android-building/caf3ae68-0be0-41b2-8863-474c1a97b065n%40googlegroups.com >> <https://groups.google.com/d/msgid/android-building/caf3ae68-0be0-41b2-8863-474c1a97b065n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to a topic in the > Google Groups "Android Building" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-building/q-VkE5Oc9ec/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/CALQgHdnFhTyuCFb35u653K7UDpoFA7BbTgD1N4U1e4mj-HPHqw%40mail.gmail.com > <https://groups.google.com/d/msgid/android-building/CALQgHdnFhTyuCFb35u653K7UDpoFA7BbTgD1N4U1e4mj-HPHqw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAPyJwA9oih4z-4UVG41zfKk19bQraJoKCxkdkSR6Y6DubAGGYA%40mail.gmail.com.
