Commit Graph

1183 Commits

Author SHA1 Message Date
Treehugger Robot
5a69b09825 Merge "Speed up m command autocompletion" am: a56bce6ef1
Original change: https://android-review.googlesource.com/c/platform/build/+/2272251

Change-Id: I5c617649b184c2e48962993e38d88bd9b0755c87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 21:20:31 +00:00
Cole Faust
5d825b7a68 Speed up m command autocompletion
Generate a all_modules.txt file on every build that
can be used for autocompleting.

Because this adds time to every non-incremental build,
I profiled it by using `$(shell date +"%s.%3N")` before
and after, and disovered it only adds about 0.01 seconds
to the build. And of course it won't be rerun if there
weren't build changes.

Bug: 255867758
Test: Manually
Change-Id: I1d3f1008611fd542884322b27b19ea2fa1d341fe
2022-10-28 10:44:02 -07:00
Xin Li
c91853a2ef Merge "Merge tm-qpr-dev-plus-aosp-without-vendor@9129937" into stage-aosp-master 2022-10-11 17:39:31 +00:00
Treehugger Robot
c9bab71ead Merge "Limit cts-api-coverage parallelism to 8" am: c6ea3aa6e0 am: 2113522011 am: a35e6af4b1
Original change: https://android-review.googlesource.com/c/platform/build/+/2246353

Change-Id: I50156adb27e09cbc0b4b6431ca32b69503fea58a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 21:32:17 +00:00
Treehugger Robot
a35e6af4b1 Merge "Limit cts-api-coverage parallelism to 8" am: c6ea3aa6e0 am: 2113522011
Original change: https://android-review.googlesource.com/c/platform/build/+/2246353

Change-Id: I03a1ccbfad1f1f7a48fb5bd9a6f51f686c278395
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 20:58:45 +00:00
Colin Cross
bb5bb5e242 Limit cts-api-coverage parallelism to 8
cts-api-coverage is getting OOM killed in presubmit, likely due to
spawning a copy of dexdeps in parallel for every cpu in the system.
Limit it to 8 parallel subprocesses when running inside the build,
as other processes are likely already using cpu and memory.

Bug: 252817769
Test: m out/host/linux-x86/cts-api-coverage/system-api-coverage.html
Change-Id: Iaae6561ac173d32c1b5af895cab76f3f898da4bb
2022-10-10 10:16:23 -07:00
Bob Badour
cd25d6134b Merge "Policy change: GPL+CE is permissive." am: 9a76135e44 am: 63a85ce166 am: 9434cd7754 am: 3be77f249e am: 9db6cad5dd
Original change: https://android-review.googlesource.com/c/platform/build/+/2221992

Change-Id: I75ef3d314d78e3493022e02757a92c8548af278e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 13:47:04 +00:00
Duy Truong
64fece21f5 Merge changes from topic "sts-sdk" into tm-dev am: 7634f909cb am: cc4fa9825c
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19776213

Change-Id: I51e76786bfa1e22e46658953e380aff54be028d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 02:53:07 +00:00
Duy Truong
cc4fa9825c Merge changes from topic "sts-sdk" into tm-dev am: 7634f909cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19776213

Change-Id: I120fc8fe749e727a8598b358a146ace905c3ca75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 01:29:47 +00:00
Duy Truong
5d70edd3a2 Merge changes from topic "sts-sdk" into tm-dev am: 7634f909cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19776213

Change-Id: I1af7b5afd9ae9f07e7d8d5c39920e101cb2aaea4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 01:27:15 +00:00
Bob Badour
10f5c48b23 Policy change: GPL+CE is permissive.
Bug: 210546823

Test: m cts compliance_checkshare compliancenotice_bom \
    compliancenotice_shippedlibs compliance_listshare \
    compliance_dumpgraph compliance_dumpresolutions htmlnotice \
    compliance_rtrace textnotice xmlnotice

Change-Id: I7da36972ffbb1494e33fd63db8e5ec851d47704c
2022-09-20 21:50:08 -07:00
Edward Liaw
50f712a9ac Merge "vts: split kselftests and ltp" am: cfb5fb5227 am: 29fa97aeea am: 428d005fb2 am: 670268eb26 am: 77dc36e521
Original change: https://android-review.googlesource.com/c/platform/build/+/2192098

Change-Id: Ieaf5b2702e002a5791358cb7ac337595de7cbee3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 17:47:09 +00:00
Edward Liaw
cfb5fb5227 Merge "vts: split kselftests and ltp" 2022-09-20 15:00:58 +00:00
Yike Zhang
a2a19387a1 Merge "Export the target_required property to module-info" am: d8b3c2901d am: 021d4f8f55 am: 0691f3d115 am: 41b179a1ee am: 6f65d5f649
Original change: https://android-review.googlesource.com/c/platform/build/+/2219529

Change-Id: If2f82dae43a558e54bc27e0d0c1031e08b635965
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 03:13:31 +00:00
Yike
450197e265 Export the target_required property to module-info
Some host test modules such as `python_test_host` use the
`target_required` attribute to declare target dependencies that will
be pushed to device. For example, `aidl_integration_test` references
several target dependencies in the `target_required` attribute since
those output files will be searched and pushed to device at runtime.
Besides, those target dependencies can't be declared in the `data`
attribute instead, since some modules' `data` attribute doesn't
support multi-arch.

So that, this information needs to present in module_info.json and
exported to properly generate Bazel targets that include these
dependencies.

Test: m out/target/product/coral/module-info.json
Bug: 222438068
Change-Id: Ia5ee103be1e7a811e1fdbd2b39252912b1a35c18
2022-09-19 16:42:04 +08:00
Filip
6b2198847f automotive-general-tests package definition
Test: manual
Bug: 246471877
Change-Id: I68ad15970c6df7c521e252abaf00a639c39188e8
2022-09-16 18:28:25 +00:00
Edward Liaw
f867471865 vts: split kselftests and ltp
Split the location of ltp and kselftest files so that they are not
uploaded together if running individually.  Should improve the
performance of kselftest.

Bug: 190800715
Test: atest vts_ltp_test_x86_64
Test: atest vts_linux_kselftest_x86_64
Signed-off-by: Edward Liaw <edliaw@google.com>
Change-Id: I121e6d5bab8edd185c8d73ad7849dff9e8b5f118
2022-09-14 22:59:11 +00:00
Yihan Dong
30ea59e065 Merge "Assign each xts test package a copy license metadata" am: 46ee66c098 am: a958c1c195 am: a64cd3c677 am: 61193ff0fd am: af42121da6
Original change: https://android-review.googlesource.com/c/platform/build/+/2208856

Change-Id: I6cc370eb50c3341505b264fbf2dea1acb0449564
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 03:28:13 +00:00
Yihan Dong
46ee66c098 Merge "Assign each xts test package a copy license metadata" 2022-09-09 00:56:42 +00:00
Yike Zhang
b41d2e4048 Merge "Export Java libraries into module-info" am: 6ba1c7b6c3 am: 2d8316d04e am: 7344f805f2 am: 05a9b7f464 am: c3442a1f4e
Original change: https://android-review.googlesource.com/c/platform/build/+/2200056

Change-Id: I1052c064e7615300b5eb71d604797489400ff36f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 14:05:46 +00:00
Yike
82f0a2d751 Export Java libraries into module-info
Some Java modules are defined in Android.mk and they declare
dependencies in eigther LOCAL_STATIC_JAVA_LIBRARIES or
LOCAL_JAVA_LIBRARIES. This information needs to present in
module_info.json and be exported to properly generate Bazel targets
that include these dependencies.

Test: m out/target/product/coral/module-info.json
Bug: 245686435
Change-Id: I77bc8de59f1d46bb098463066e1f52b98ebae955
2022-09-08 07:59:20 +00:00
Yihan Dong
9b75c9ee1a Assign each xts test package a copy license metadata
Use a copy license metadata instead of module_license_metadata to make each xts test package names shown in the final xts notice file.

Test: m gts reportmissinglicenses
Bug: 245474938
Change-Id: Ic5e28763bc4e8448d3e04a80e89db147387164a6
2022-09-07 08:12:37 +00:00
Presubmit Automerger Backend
96c462ed29 [automerge] Initial STS sdk 2p: 5987bd823b 2p: afcd8ed66a
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19776213

Bug: 238373261
Change-Id: Iecf9a88c03cbb75aae17ad41ee98a2e2e0dad5b8
2022-09-05 16:58:20 +00:00
Presubmit Automerger Backend
3d6879bef1 [automerge] Initial STS sdk 2p: 5987bd823b
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/19776213

Bug: 238373261
Change-Id: Iddf3ae22987e540eb0f2dcde10c36407d0eb85df
2022-09-05 16:58:11 +00:00
Duy Truong
5987bd823b Initial STS sdk
Bug: 238373261
Test: m sts-sdk
Test: unzip sts-sdk.zip && tree -a
Test: echo 'sdk.dir=/home/duytruong/Android/Sdk' > local.properties && ./gradlew assemblestsarm

Change-Id: I7e7cf112d5fcd391169982a55e1d951a808b472d
2022-09-05 09:56:09 -07:00
Zhenhuang Wang
8795c16f30 Merge "Export test_options.tags to module-info" am: aa6a6a4f36 am: adfe90de1f am: bb6c3bf224 am: e5dbce3e80 am: 183cc0daf2
Original change: https://android-review.googlesource.com/c/platform/build/+/2176502

Change-Id: I21b296d99e34150f7b71197b9e7dada9f0f64370
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 06:55:57 +00:00
Zhenhuang Wang
415ee12c76 Export test_options.tags to module-info
The test_options.tags attribute modifies execution behavior when running
tests in ATest Bazel mode. Exporting the value to module-info enables
ATest to add them to the corresponding Bazel target.

Bug: 240928948
Test: manually add `test_options.tags` attribute and run:
    $ refreshmod && \
      cat out/target/product/generic/module-info.json |\
      grep <tags>
Change-Id: I1a70d5c66703ed6a5a250459a80e8bca71d659b6
2022-08-22 20:59:54 +08:00
Hung-Wei Chen
d194b86fd1 Merge changes Ifbcde7da,Icee659ff,I267da2d5 am: a7dfb456a1 am: cb7c04f783 am: f44646461d am: 653425238b am: 1a2b5f7b91
Original change: https://android-review.googlesource.com/c/platform/build/+/2176952

Change-Id: I9be6e54fdcfb684dc11585f4aecc1aff67feeedd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-17 16:50:16 +00:00
hungweichen
e3ca398a1e Remove verity.mk, verity_key, PRODUCT_VERITY_SIGNING_KEY
verity.mk is used to set the related variable for VB 1.0 support, but
we already removed VB 1.0. This change removes the unused code. We also
remove and block PRODUCT_VERITY_SIGNING_KEY in this change.

Bug: 241044073
Test: atest under build/make
Change-Id: Ifbcde7da27a931ef3b9d746b1c5a279d88c0ec85
2022-08-11 08:12:58 +00:00
hungweichen
bf11e34897 Remove PRODUCT_SUPPORTS_VERITY(_FEC) reference
PRODUCT_SUPPORTS_VERITY and PRODUCT_SUPPORTS_VERITY_FEC are going to be
deprecated since we removed VB 1.0 support. This change removes the
related references.

Bug: 241044073
Test: atest under build/make
Change-Id: Icee659ff0606cda1ab44e92372d86a394ddf1466
2022-08-11 08:12:58 +00:00
Bob Badour
917c60a267 Fix pitfall: do not delete intermediates dir.
Test: build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_coral_hwasan TARGET_BUILD_VARIANT=userdebug droid dist with-license platform_tests continuous_instrumentation_tests continuous_native_tests

Bug: 240342946

Change-Id: Ibf1bff6ee67e4958b1e1ea2fbc0385787d3bf0f0
Merged-in: Ibf1bff6ee67e4958b1e1ea2fbc0385787d3bf0f0
Merged-in: I6f0f2fa7861bca18e34576c920a3c33ffef6b46e
2022-08-03 14:02:21 -07:00
Bob Badour
bb6cde6064 Create license metadata for copied targets.
Bug: 213388645
Bug: 240342946

Test: m cts dist reportmissinglicenses

Change-Id: I43043e5e7b80d9f3210d6498c215846aec761add
Merged-in: I43043e5e7b80d9f3210d6498c215846aec761add
2022-08-03 14:02:18 -07:00
Treehugger Robot
cc6a4e2b21 Merge "Export the host_required property to module-info" am: ea00bc65af am: bd1224f7e4 am: 6f58845a96 am: e0349d7083 am: c849b44630
Original change: https://android-review.googlesource.com/c/platform/build/+/2133266

Change-Id: If2b94d8c19bd64196572f3292246475156d97091
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 09:17:05 +00:00
Yike
e4a549195c Export the host_required property to module-info
Some test modules such as `android_test` use the `host_required` attribute to include additional harness dependencies. For example, `CtsLibcoreTestCases` references `cts-dalvik-host-test-runner` in the `host_required` attribute since those jars are required by Tradefed at runtime.

This information needs to present in module_info.json and exported to properly generate Bazel targets that include these runtime dependencies.

Test: m out/target/product/coral/module-info.json
Bug: 220991354
Change-Id: I8d2ab0da04c9f4aff17d290999c69ffe0534729f
2022-06-28 10:10:35 +08:00
Filip
148c05b9af Add automotive-tests build target
Bug: 235717579
Test: package based on device-tests

Change-Id: Id7e3d62dda7bd206677018a43b76524394d85052
2022-06-16 16:21:32 +00:00
Bob Badour
b5353a160b Fix license package name and provide license text.
Bug: 235331488

Test: m droid dist

Change-Id: Ic450732083773668bf9d9d0e1fffa1852f88ab45
Merged-in: Ic450732083773668bf9d9d0e1fffa1852f88ab45
2022-06-09 06:42:42 -07:00
Treehugger Robot
294aeed6d5 Merge "Fix license package name and provide license text." 2022-06-09 10:25:34 +00:00
Bob Badour
8ef100aee9 Fix license package name and provide license text.
Test: build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_coral_hwasan TARGET_BUILD_VARIANT=userdebug droid dist with-license platform_tests continuous_instrumentation_tests continuous_native_tests

Change-Id: Ic450732083773668bf9d9d0e1fffa1852f88ab45
2022-06-08 18:28:04 -07:00
Bob Badour
fc26ac07a4 Fix recovery_unit_test
Return to using zip instead of SOONG_ZIP

Bug: 235405168

Test: m droid dist
Change-Id: I6f0f2fa7861bca18e34576c920a3c33ffef6b46e
2022-06-08 17:03:02 -07:00
Bob Badour
eb9431ee8a Fix pitfall: do not delete intermediates dir.
Test: build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_coral_hwasan TARGET_BUILD_VARIANT=userdebug droid dist with-license platform_tests continuous_instrumentation_tests continuous_native_tests

Change-Id: Ibf1bff6ee67e4958b1e1ea2fbc0385787d3bf0f0
2022-06-07 10:02:12 -07:00
Bob Badour
ba3372439f Create license metadata for copied targets.
Bug: 213388645

Test: m cts dist reportmissinglicenses
Change-Id: I43043e5e7b80d9f3210d6498c215846aec761add
2022-06-02 15:43:08 -07:00
Jiakai Zhang
500671f61c Add a doc about dex_preopt_check.
The doc lists some possible causes of a `dex_preopt_check` error, which
can be useful for developers to understand how to debug the error.

Bug: 232542678
Test: m nothing
Change-Id: I2e9868a6a470e41e8c3743c045e0cf4cf7367efa
2022-05-20 16:21:46 +01:00
Treehugger Robot
266225ccb2 Merge "Revert "Do not compress zip file for unit tests."" 2022-05-13 23:44:57 +00:00
Sam Saccone
7d7ae94bef Revert "Do not compress zip file for unit tests."
This reverts commit a24c755f66.

Reason for revert: not worth the additional storage cost.

Change-Id: I8ed24ddef4ac3f640bf35e79cddf433e0df0854d
2022-05-13 19:55:25 +00:00
Inseob Kim
05fa7f1455 Prototype changes for multitree
This change contains a prototype implementation for multitree.
A new file core/tasks/multitree.mk adds a goal named "update-meta",
which searches for "imported" and "exported" Android.bp modules and
writes a json metadata to track dependencies between components.

Bug: 230448564
Test: m
Change-Id: Ie93e3bf130cacb6b6de41acee3bd302f64f1ab95
2022-04-28 08:03:55 +00:00
Bob Badour
540a3f8ec1 Declare license metadata for copied files.
Bug: 151177513

Test: m droid dist reportmissinglicenses
Change-Id: Iada4a0ba3583f78e9419a5f487388b5e5eba195a
2022-04-20 13:01:35 -07:00
Sam Saccone
a24c755f66 Do not compress zip file for unit tests.
BUG=229404699

Change-Id: I91df8973b9308cd3fa572d7afe1e9e4ec8a9af39
2022-04-15 23:50:12 +00:00
Dan Shi
52cf004a37 Merge "Package vts kernel tests in general-tests.zip" 2022-04-15 05:03:20 +00:00
Bob Badour
b03c16badc Non-module targets.
Bug: 151177513
Bug: 213388645
Bug: 210912771

Test: m droid dist reportmissinglicenses

Change-Id: I4ee8fd67ee30a3e21723e13642fdb89cd626a2dd
2022-04-12 18:57:15 -07:00
Dan Shi
dadf7ca475 Package vts kernel tests in general-tests.zip
Bug: 228204473
Test: m dist general-tests
Change-Id: Ic6dac4427f1cc2c3bbfdb6905936e2478e5a4350
2022-04-12 15:50:53 -07:00