Hi Dan,
Thank you for the response.
Yeah it's not a very simple problem to solve , for product configuration
I`m skipping the builds for now since I have to build the product for those
changes to take effect.
For Android.mk and Android.bp files the script checkout the changes from
gerrit and rebuilds the module-info.json(make
out/target/product/TARGET/module-info.json) file with the updated/added
module changes.
For now I am more concerned about compilation so I can avoid devs to
"break" branches.
Anyway thank you for your insights.
BR,
Paul

On Mon, Dec 13, 2021 at 4:48 PM 'Dan Willemsen' via Android Building <
[email protected]> wrote:

> This isn't a simple problem, even just in Soong (what do you do when an
> Android.bp file changes? what about a product config file that changes how
> a module is built, but is nowhere near it?). At Google we're largely just
> building a representative sample, but using incremental builds -- so we're
> always doing a bunch of builds, but if we've determined nothing interesting
> has changed, they're very short. There are some out-of-tree configurations
> that trigger more presubmit builds in some cases where the representative
> sample is not large enough, but those are all maintained by hand, not
> automatically.
>
> Test capacity is also a concern, and you'll find TEST_MAPPING files
> throughout AOSP that attempt to say which tests should be run when files
> under them are changed. Here are the docs for these:
> https://source.android.com/compatibility/tests/development/test-mapping
>
> - Dan
>
> On Mon, Dec 13, 2021 at 2:50 PM Paulo Maia <[email protected]> wrote:
>
>> Hello ,
>> Currently I have been working on a feature to build gerrit single or
>> chained changes
>> Ex:
>> Some makes a change (gerrit patchset update) to
>> frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java
>> I know just for experience that I need to make SystemUI target to check
>> if that change is going to compile successful .
>> But I want to automate this somehow, so far I have been using
>> module-info.json to try and find target to build based on the checkout path
>> , but this is not very reliable (since I can pickup extra targets on the
>> same repo/project)
>>
>> I wonder if anyone here has any insights on that matter or have
>> implemented something similar. If so please do share :D
>>
>> PS: There is one very cool project called bgraph (
>> https://pypi.org/project/bgraph/) but relies only on the existence of
>> Android.bp file it works pretty good , but it is limited.
>>
>> BR,
>> Paul
>>
>> --
>> --
>> 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/c0052985-6923-42e7-adb7-1ade271cf966n%40googlegroups.com
>> <https://groups.google.com/d/msgid/android-building/c0052985-6923-42e7-adb7-1ade271cf966n%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/Mon9kAQBxsQ/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/CALQgHdkr37PrOd1uKc-a2jeAYVSpfd8T6KWdJmpfPXiZc0Z0Fg%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-building/CALQgHdkr37PrOd1uKc-a2jeAYVSpfd8T6KWdJmpfPXiZc0Z0Fg%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/CAGD9sB-P9Gv1nNvwXdURDvo4k%3Dv9WiMQ_mHSNGdcVZNDh%2B58jw%40mail.gmail.com.

Reply via email to