Luca Farsi
99d40d7554
Change artifact matching to be more strict
...
The current artifact matching logic will cause any test target that uses
something like .*-tests.zip to be way too broad in what it causes to
build. Change the logic to look for the target name in the artifact
matching regex to make it so that only tests that look for a specific
target to match.
Test: atest build_test_suites_test
Bug: 348489774
Change-Id: Ia75e38b676607f45f2b1c8fcf948045c248f1729
2024-08-12 09:59:11 -07:00
Luca Farsi
944fa4f813
Merge "Refactor OptimizedBuildTarget and add general-tests optimization" into main
2024-08-08 23:16:53 +00:00
Luca Farsi
70a53bd6cf
Refactor OptimizedBuildTarget and add general-tests optimization
...
Refactor the OptimizedBuildTarget base class to more simply handle
enabling/disabling build optimizations based on flags. Now all
optimizers (aside from the no-op NullOptimizer will have their enabling
built into the base class, and also necessitate their get_build_targets
and package_outputs functions to be defined in order to not error out.
Add the GeneralTestsOptimizer class as well, unimplemented for now.
Test: atest build_test_suites_test
Bug: 358215235
Change-Id: Ide22c64fc238d754db8d8e76484947401e54e680
2024-08-08 12:02:57 -07:00
Treehugger Robot
9fe7f1fa9e
Merge "Update sts-sdk to use new source" into main
2024-08-08 18:19:28 +00:00
Zhi Dou
fa47605191
Merge "DO NOT MERGE: manually cherry pick" into main
2024-08-07 20:23:41 +00:00
Zhi Dou
8ee1a5b785
DO NOT MERGE: manually cherry pick
...
Change-Id: I47b6d783f32b7c260dd806898ed880901b5f784b
Test: presubmit
Bug: n/a
2024-08-07 18:51:23 +00:00
Bart Van Assche
671dd3c7af
Merge "base_vendor.mk: Add filterPowerSupplyEvents.o" into main
2024-08-06 23:51:23 +00:00
Treehugger Robot
70270692d0
Merge "Read from new storage in Java codegen" into main
2024-08-06 21:16:42 +00:00
Treehugger Robot
0284610ba7
Merge "change thread policy to allow read disk" into main
2024-08-06 20:57:22 +00:00
Ted Bauer
06560bed93
Read from new storage in Java codegen
...
Change-Id: I8baa089f37dcc496096e124d605f08727647053c
Test: m
Bug: 312235596
2024-08-06 19:34:33 +00:00
Zhi Dou
f5f5992893
change thread policy to allow read disk
...
Bug: 356614910
Test: presubmit
Change-Id: I65cc2cbd5e17b1ee93e64d8b20e53c42547c985a
2024-08-06 18:58:45 +00:00
Treehugger Robot
a490d1bf68
Merge "Install cppreopts.sh to copy dexpreopt files on first boot" into main
2024-08-06 18:40:40 +00:00
Wei Li
9489a0835c
Merge "Switch SBOM generation of products to Soong and remove the function in Make." into main
2024-08-06 18:17:36 +00:00
Treehugger Robot
f4a9dab360
Merge "core/Makefile: Add desktop recovery image target hook" into main
2024-08-06 17:54:42 +00:00
Bart Van Assche
2807e4aa36
base_vendor.mk: Add filterPowerSupplyEvents.o
...
Bug: 203462310
Test: Cuttlefish
Change-Id: Id293028335733fc83877f380d12f855cd735e85e
Signed-off-by: Bart Van Assche <bvanassche@google.com >
2024-08-06 10:49:35 -07:00
Spandan Das
fcf124988d
Install cppreopts.sh to copy dexpreopt files on first boot
...
This relands https://r.android.com/3205048 without the
`BOARD_USES_SYSTEM_OTHER_ODEX` conditional. Board config runs after
product config, so the value of `BOARD_USES_SYSTEM_OTHER_ODEX` is not
available in runtime_libart.mk
Adding cppreopts.sh to PRODUCT_PACKAGES ensures that the dexpreopt files
can be copied from system_other to /data on first boot.
Test: lunch aosp_cheetah-trunk_staging-userdebug
Test: get_build_var PRODUCT_SYSTEM_PROPERTIES # verified that ro.cp_system_other_odex=1 is present
(this was incorrectly removed from build.prop after
https://r.android.com/3205048 )
Test: device boot test go/abtd https://android-build.corp.google.com/builds/abtd/run/L83800030005663221
(this failed previously with https://r.android.com/3205048 )
Bug: 356075780
Change-Id: I6a596373bbbe8587620c5867fb43fcbf3f3b2b2b
2024-08-06 16:41:45 +00:00
Spandan Das
699f9be18a
Merge "Move the installation rules of device boot images to soong" into main
2024-08-06 02:27:31 +00:00
Treehugger Robot
905319607d
Merge "Build system_ext build.prop with Soong" into main
2024-08-06 02:00:28 +00:00
Makoto Onuki
c60b50c29c
Merge "[Ravenwood] Use default socket timeout" into main
2024-08-05 15:45:13 +00:00
Zhi Dou
b7bb53d392
Merge "change fileinputstream to filechannel" into main
2024-08-05 13:49:24 +00:00
PODISHETTY KUMAR (xWF)
556f030c41
Merge "Revert "Prevent misconfigured cp_system_other_odex=1 device boots"" into main
2024-08-05 05:41:05 +00:00
PODISHETTY KUMAR (xWF)
d7e98c63e9
Revert "Prevent misconfigured cp_system_other_odex=1 device boots"
...
This reverts commit 9c54f38250
.
Reason for revert: <Droidmonitor created revert due to b/357468332. Will be verifying through ABTD before submission.>
Change-Id: I201339aa920dcb7fec5e8b6e74b0f0ff35c91416
2024-08-05 03:55:55 +00:00
Inseob Kim
6dbd7eb601
Build system_ext build.prop with Soong
...
Bug: 322090587
Test: build and compare system_ext/etc/build.prop
Change-Id: I7b1af2e2b1fe7f107e1540d7b797c7bf489b8a0d
2024-08-05 12:50:01 +09:00
Spandan Das
fa154fd697
Merge "Prevent misconfigured cp_system_other_odex=1 device boots" into main
2024-08-05 02:15:34 +00:00
Wei Li
4d7e700997
Switch SBOM generation of products to Soong and remove the function in Make.
...
Bug: 324467079
Test: m sbom
Test: m dist
Test: banchan com.android.adbd module_arm64 userdebug && m sbom && m dist
Test: build/soong/tests/sbom_test.sh
Change-Id: Ic862604acd3ad11ef238748a744a8e675d2a141a
2024-08-02 17:56:28 -07:00
Zhi Dou
8af83ccd50
change fileinputstream to filechannel
...
The restrict mode doesn't allow to have disk read from main thread. Some
apps enabled this check. The code in the dependencies of the
fileinputstream. This chagne switch to filechannel.
Test: presubmit
Bug: 356614910
Change-Id: Icf2175fe75ed1bfad4a048ead680b08e57d6c2ca
2024-08-03 00:08:40 +00:00
Luca Farsi
1ef9d680af
Merge "Don't build targets if they're not used." into main
2024-08-02 23:36:03 +00:00
Luca Farsi
b24c1c3dbd
Don't build targets if they're not used.
...
Add functionality in build_test_suites.py to not build targets if
their outputs are not used in the test configurations saved in the build
context. If none of the tests reference the targets' outputs they will
not be built at all.
Note that the corresponding flags will need to be enabled for these
optimizations to take place.
Test: atest optimized_targets_test
Bug: 348489774
Change-Id: I8f0ac90e75552ae80073f13229b026c7f23476a6
2024-08-02 14:45:36 -07:00
Chris Dombroski
1b569e4dd3
Update sts-sdk to use new source
...
Test: builds
Bug: 325295485
Change-Id: Iced085665b567eb675e3ee4ff54070d542b97f7d
2024-08-02 21:31:31 +00:00
Spandan Das
9c54f38250
Prevent misconfigured cp_system_other_odex=1 device boots
...
https://r.android.com/3177659 set ro.cp_system_other_odex=1 to request
copy of the dexpreopt app images to system_other partition on first
boot. This created a misconfiguration for devices that
1. Do not have a system_other partition
2. Do not have cppreopts.sh listed in PRODUCT_PACKAGES
This CL adds a conditional to request this copy operation in devices
with a system_other partition, and adds cppreopts.sh to PRODUCT_PACKAGES
Test: presubmits
Bug: 356075780
Change-Id: I703c15a5fd96d1efad7f93e6bcb1b968ae4f38a1
2024-08-02 21:28:00 +00:00
Lokesh Kumar Goel
a4007985ec
Merge "Allow PLATFORM_BASE_OS override from product config" into main
2024-08-02 14:55:29 +00:00
Automerger Merge Worker
55ebcbb3aa
Merge changes from topic "am-606f4760fe694687b9188f486060d18f" into main
...
* changes:
Merge changes from topic "am-43b4283abaf141c7ad054d3d2f41c002" into android14-tests-dev am: 575462fb40
[automerger skipped] Merge "Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS."" into android13-tests-dev am: 1b7445982b
-s ours am: 4a1a977f47
-s ours
2024-08-02 13:33:22 +00:00
Automerger Merge Worker
ccdfce4a7e
Merge changes from topic "am-43b4283abaf141c7ad054d3d2f41c002" into android14-tests-dev am: 575462fb40
...
Original change: https://android-review.googlesource.com/c/platform/build/+/3204292
Change-Id: Ib54761538b84092600c1ffdd86891fc1b6d8828a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 13:33:10 +00:00
Chaitanya Cheemala (xWF)
5b0ef41b45
[automerger skipped] Merge "Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS."" into android13-tests-dev am: 1b7445982b
-s ours am: 4a1a977f47
-s ours
...
am skip reason: contains skip directive
Original change: https://android-review.googlesource.com/c/platform/build/+/3204292
Change-Id: I2cbe03efb8f45618dbcd39d98307050a3126267e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 13:33:05 +00:00
Automerger Merge Worker
575462fb40
Merge changes from topic "am-43b4283abaf141c7ad054d3d2f41c002" into android14-tests-dev
...
* changes:
[automerger skipped] Merge "Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS."" into android13-tests-dev am: 1b7445982b
-s ours
[automerger skipped] Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS." am: 68a4dda683
-s ours
2024-08-02 13:20:59 +00:00
Chaitanya Cheemala (xWF)
4a1a977f47
[automerger skipped] Merge "Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS."" into android13-tests-dev am: 1b7445982b
-s ours
...
am skip reason: contains skip directive
Original change: https://android-review.googlesource.com/c/platform/build/+/3204292
Change-Id: Ic5acf9eab78143dbe59c51b63a6f295bf732963e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 13:20:52 +00:00
PODISHETTY KUMAR (xWF)
e58df3f353
[automerger skipped] Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS." am: 68a4dda683
-s ours
...
am skip reason: contains skip directive
Original change: https://android-review.googlesource.com/c/platform/build/+/3204292
Change-Id: I850cc7a44ca630670911767c456133f82685a560
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 13:20:46 +00:00
Chaitanya Cheemala (xWF)
1b7445982b
Merge "Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS."" into android13-tests-dev
2024-08-02 13:08:54 +00:00
Jae Hoon Kim
3a38f1f108
core/Makefile: Add desktop recovery image target hook
...
.. allowing for targets to trigger recovery image builds.
Bug: b:343235730, b:355487693
Test: m, with desktop target enabling PACK_DESKTOP_RECOVERY_IMAGES
Flag: EXEMPT desktop only change
Change-Id: Idd5483747283aeba8086a90b7eb0590e47b9549e
2024-08-02 06:55:49 +00:00
PODISHETTY KUMAR (xWF)
68a4dda683
Revert "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS."
...
This reverts commit 11840e42bd
.
Reason for revert: <Droidmonitor created revert due to b/356996882. Will be verifying through ABTD before submission.>
Change-Id: I1813b8f1215f42c2ae8421f19ff25f507604b385
2024-08-02 06:01:02 +00:00
Automerger Merge Worker
f297060a02
Merge changes from topic "am-2b845371bfb24cbda58a356f9712fc87" into main
...
* changes:
Merge changes from topic "am-233042b8d4194015b3e2cf0f69bfda1b" into android14-tests-dev am: 4f0f22ed65
[automerger skipped] Merge "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS." into android13-tests-dev am: 8fc262ab36
-s ours am: 1513cac5ae
-s ours
2024-08-02 05:18:01 +00:00
Automerger Merge Worker
75fef75f4f
Merge changes from topic "am-233042b8d4194015b3e2cf0f69bfda1b" into android14-tests-dev am: 4f0f22ed65
...
Original change: https://android-review.googlesource.com/c/platform/build/+/3198231
Change-Id: I0bc1198446a16a13ee843c2d9e3634bc628664af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 05:17:54 +00:00
Ziwei Zhang
29cef0f2c5
[automerger skipped] Merge "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS." into android13-tests-dev am: 8fc262ab36
-s ours am: 1513cac5ae
-s ours
...
am skip reason: contains skip directive
Original change: https://android-review.googlesource.com/c/platform/build/+/3198231
Change-Id: Ic11a400b2e6d2cd0b73e922ebb66799914b3cec9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 05:17:48 +00:00
Automerger Merge Worker
4f0f22ed65
Merge changes from topic "am-233042b8d4194015b3e2cf0f69bfda1b" into android14-tests-dev
...
* changes:
[automerger skipped] Merge "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS." into android13-tests-dev am: 8fc262ab36
-s ours
[automerger skipped] RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS. am: 11840e42bd
-s ours
2024-08-02 05:03:00 +00:00
Ziwei Zhang
1513cac5ae
[automerger skipped] Merge "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS." into android13-tests-dev am: 8fc262ab36
-s ours
...
am skip reason: contains skip directive
Original change: https://android-review.googlesource.com/c/platform/build/+/3198231
Change-Id: If5a06d363f6dbd482b653a35676474f9dd08df62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 05:02:54 +00:00
Ziwei Zhang
ae8433307d
[automerger skipped] RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS. am: 11840e42bd
-s ours
...
am skip reason: contains skip directive
Original change: https://android-review.googlesource.com/c/platform/build/+/3198231
Change-Id: I458567a2b0bc267aea22b86cbea3b127cec04abe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-08-02 05:02:50 +00:00
Ziwei Zhang
8fc262ab36
Merge "RESTRICT AUTOMERGE: Package xTS console into CTS 13 to support MCTS." into android13-tests-dev
2024-08-02 04:52:40 +00:00
Treehugger Robot
9b6324bf40
Merge "Add art_build_host_debug to soong config variable" into main
2024-08-02 04:50:44 +00:00
Treehugger Robot
351106c236
Merge "Reland "Add variables for init.environ.rc"" into main
2024-08-02 02:28:10 +00:00
John Wu
5a6dc72340
[Ravenwood] Use default socket timeout
...
Test: manually run long ravenwood tests
Flag: EXEMPT host side change only
Change-Id: Ic29bd9279c55a7f9d75aa873451e53bf725b8e6d
2024-08-02 00:24:18 +00:00