aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-24Merge "Define macro for declaring package METADATA file." into udc-devandroid14-devWei Li
2023-05-23Define macro for declaring package METADATA file.Wei Li
Bug: 275472038 Test: CIs (cherry picked from https://android-review.googlesource.com/q/commit:b1aab9de1eed5b461c48a863d401f5626e214c89) Merged-In: Ia9946db10f10555deff044b55fae1367a4ab41d7 Change-Id: Ia9946db10f10555deff044b55fae1367a4ab41d7
2023-05-22add toc to _cc_stub_library_shared rulesSam Delmerico
Bug: 270408757 Test: m droid --bazel-mode-dev (cherry picked from https://android-review.googlesource.com/q/commit:83756af876d3f233ecd13f2dc2770a12214ade6c) Merged-In: I4a9145fc2e56e7fb9f74903e6f711ef5bc7adcbd Change-Id: I4a9145fc2e56e7fb9f74903e6f711ef5bc7adcbd
2023-05-19Changes in Bazel rules to support SBOM generation of b build unbundled APEXs.Wei Li
1) Add MetadataFileInfo provider to modules if METADATA file is declared in attribute applicable_licenses, which might be from default_metadata_file of packages 2) cc_aspect collect MetadataFileInfo for some rules that are transitive deps and included in APEXs 3) Generate SBOM for .apex or .capex in apex rule Bug: 275472038 Test: CIs Test: b build //packages/modules/adb/apex:com.android.adbd --config=android --output_groups=+apex_sbom (cherry picked from https://android-review.googlesource.com/q/commit:8efceb357b097cf977cb06ad9dc4f5b3089f9d6a) Merged-In: I727610608487a12873671dd27d56465fc2c19436 Change-Id: I727610608487a12873671dd27d56465fc2c19436
2023-05-19Check LicenseInfo provider since there might be more metadata includedWei Li
in attribute "applicable_licenses". Ignore default_metadata_file targets in apex_deps_aspect. Bug: 275472038 Test: CIs (cherry picked from https://android-review.googlesource.com/q/commit:0cb9f8fccce40c5dfc0b05107361ad04f77fc874) Merged-In: I98d3f9bb0235b082a7db64e3f2ad790e4d9c3d15 Change-Id: I98d3f9bb0235b082a7db64e3f2ad790e4d9c3d15
2023-05-19Add some product variables to provider ProductVariablesInfo.Wei Li
Bug: 275472038 Test: CIs (cherry picked from https://android-review.googlesource.com/q/commit:647f151ff509b8ae9ffbd78abb9a8097f6800a7e) Merged-In: I513180f3db4b1fdd579336e118e375398fd8d4f7 Change-Id: I513180f3db4b1fdd579336e118e375398fd8d4f7
2023-04-2816K: Declare DeviceMaxPageSizeSupported as a product variableJuan Yescas
DeviceMaxPageSizeSupported product variable will be used in arm/arm64 targets to configure the binary alignment. Test: Unit tests Bug: 276963698 Bug: 276801883 (cherry picked from https://android-review.googlesource.com/q/commit:68470992f2bbdcc5c01fbf28a6407029e38c55bc) Merged-In: I27168b3343ac383020483eddf907ee71cf084de8 Change-Id: I27168b3343ac383020483eddf907ee71cf084de8
2023-04-21Merge "improvements to determinism_test" am: 216298a2d7 am: e1a2b03468 am: ↵Christopher Parsons
70060dbff1 Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2552612 Change-Id: I6c4f5e4c02c8c7b14f61ba4592d6de10f245e213 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21Merge "improvements to determinism_test" am: 216298a2d7 am: e1a2b03468Christopher Parsons
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2552612 Change-Id: I52a2e17777536016fe735eba58590962e07aa56a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21Merge "improvements to determinism_test" am: 216298a2d7Christopher Parsons
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2552612 Change-Id: I76a616b34e54d64aa42561dc61a0e6ff2233f689 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21Merge "improvements to determinism_test"Christopher Parsons
2023-04-20Merge "Move rules_java to bazel_common_rules" am: ec45c46c7d am: ee219e51ca ↵Treehugger Robot
am: 8306b6e2f7 Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2547130 Change-Id: Iee181a515725e9b91ef003aa15c3514b6b387e8f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20explict log dir in canonical_perf.sh am: faec657d10 am: 7a8ac53da9 am: ↵Usta Shrestha
abcc5a2a97 Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2550930 Change-Id: Ic61c3254bb4d64dbb468b1c6e1a6721fa0edbf29 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20Merge "Move rules_java to bazel_common_rules" am: ec45c46c7d am: ee219e51caTreehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2547130 Change-Id: I106713f79a502d3279b58ddc8c0a878812a28b69 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20explict log dir in canonical_perf.sh am: faec657d10 am: 7a8ac53da9Usta Shrestha
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2550930 Change-Id: Idf06107c9d5afc186f6b0872cf8c1ca05d8f18c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20Merge "Move rules_java to bazel_common_rules" am: ec45c46c7dTreehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2547130 Change-Id: I92dc2b3bfb8eb4958920cae566b5e63678030404 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20Merge "Move rules_java to bazel_common_rules"Treehugger Robot
2023-04-20explict log dir in canonical_perf.sh am: faec657d10Usta Shrestha
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2550930 Change-Id: I749816c22ee9f63db5cee9cfd0bf8b6fa0f0f404 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20improvements to determinism_testChris Parsons
1. Remove -x from the script, which reduces the verbosity of script logs 2. Check the toplevel makefile determinism 3. Check the toplevel ninja file determinism (toggleable by an env var) 4. Allow target product and build variant to be set by env var Bug: 279031476 Test: Ran script in AOSP with and without the SKIP_NINJA_CHECK env var, and with and without product env vars. Change-Id: I0b91b2c45f3cdc5cf6fb62e72b0affc865bfa0ff
2023-04-20explict log dir in canonical_perf.shUsta Shrestha
Bug: NA Test: ran `canonical_perf.sh` and verified log dir is created Change-Id: I188d2d2151a4d631269853becfd04a7966eda32a
2023-04-20Move rules_java to bazel_common_rulesUlises Mendez Martinez
This will benefit other projects like Kleaf. Bug: 245624185 Change-Id: Ia89d7f2c23821f233f2f120aeab6de2aa207503d Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
2023-04-19Fix api fingerprinting with apex and update tests am: 0f189b62bd am: ↵Zi Wang
3e88349adf am: 20c05aeb0f Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2541793 Change-Id: I594869ee3f9030fc947d16f47dc56f8ae1772051 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19Fix api fingerprinting with apex and update tests am: 0f189b62bd am: 3e88349adfZi Wang
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2541793 Change-Id: I07e0933bf008a763d0a43100ab37802a85ac5fb5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19Fix api fingerprinting with apex and update tests am: 0f189b62bdZi Wang
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2541793 Change-Id: I324954165102c117a8d44f4c8ba993004a4d8355 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18Fix api fingerprinting with apex and update testsZi Wang
Use run_shell instead of run in _run_apexer because --target_sdk_version may use the API fingerprinting file contents using bash expansion, and only run_shell can support that by executing the whole command with /bin/bash -c. Regular run would quote the --target_sdk_version value with single quotes ('--target_sdk_version=ABC.$(cat version.txt)'), preventing bash expansion. Test: adbd and tzdata have correct target sdk version and all the tests in apex_test.bzl Bug: 277921995 Change-Id: I6ec4e9ee4b01acb70b2b38b1416a59b2d1bfe18b
2023-04-18Merge changes I6773b80c,I9b81bbf7 am: 50f7e3212f am: 6847d6043b am: 6be668fce6Usta (Tsering) Shrestha
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2541670 Change-Id: Iebf5b5755d7c990c4184d20e4ff6a990fbb28ff0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18Merge changes I6773b80c,I9b81bbf7 am: 50f7e3212f am: 6847d6043bUsta (Tsering) Shrestha
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2541670 Change-Id: I26fd9be0e78951a518879edd6d5e31cd8e2e57f8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18Merge changes I6773b80c,I9b81bbf7 am: 50f7e3212fUsta (Tsering) Shrestha
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2541670 Change-Id: I18864329ea57a9bf4ed4d3fc6de78b8c682451bc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18Merge changes I6773b80c,I9b81bbf7Usta (Tsering) Shrestha
* changes: Fix event ordering in perf script cosmetic: use os.walkdir()
2023-04-17Merge "cc_prebuilt_library_{shared,static}: macros->rules" am: 8bbd1f3b30 ↵Alex Márquez Pérez Muñíz Díaz Puras Thaureaux
am: 4a81e6727e am: 5278fa37ae Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2507235 Change-Id: Ib27dbe4411085e5a83fdfeb7d0e471a1f6ba52a6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "Allow sdk transition wrappers in exports of aar_import." am: ↵Romain Jobredeaux
146e4150d3 am: c3104659bb am: 8cfa27a8ba Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2537759 Change-Id: Ied4f7f4a4023864f6b3530270aad6649889fddcb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "cc_prebuilt_library_{shared,static}: macros->rules" am: 8bbd1f3b30 ↵Alex Márquez Pérez Muñíz Díaz Puras Thaureaux
am: 4a81e6727e Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2507235 Change-Id: I99b71e4d6715f0ca741ee8f1a7970126e08952d1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "Allow sdk transition wrappers in exports of aar_import." am: ↵Romain Jobredeaux
146e4150d3 am: c3104659bb Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2537759 Change-Id: I00ce03ef3aa02cc9bb41e54cb75fc85ff6f11cdc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "cc_prebuilt_library_{shared,static}: macros->rules" am: 8bbd1f3b30Alex Márquez Pérez Muñíz Díaz Puras Thaureaux
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2507235 Change-Id: I16a50ed3411c0eb62a93c41dfe80da4606cfe86b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "Allow sdk transition wrappers in exports of aar_import." am: 146e4150d3Romain Jobredeaux
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2537759 Change-Id: Ib880576a0371eacfc5c1a6f479cde88c7f799bb6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "cc_prebuilt_library_{shared,static}: macros->rules"Alex Márquez Pérez Muñíz Díaz Puras Thaureaux
2023-04-17Merge "Allow sdk transition wrappers in exports of aar_import."Romain Jobredeaux
2023-04-17Fix event ordering in perf scriptUsta Shrestha
concurrent events aren't properly handled e.g. if one run had a->b->c->d and the other had d->c->b->a there was non-determinism in which cycle is detected first. And that cycle detection also modified some global state raising exceptions Bug: NA Test: ran `b test` which failed for perf_metrics_test without the changes in perf_metrics.py Change-Id: I6773b80c2598a278f4016d50c6dd193c0b500307
2023-04-17cosmetic: use os.walkdir()Usta Shrestha
Test: `incremental_build.sh -c "no change" -b prod` and see "VERIFIED Symlink Forest ..." in console log Bug: NA Change-Id: I9b81bbf710d7d8056989f8f7debe0927402578eb
2023-04-17Merge "cosmetic: warmup runs made clearer" am: 3a7126408b am: 6f98bee6ba am: ↵Usta (Tsering) Shrestha
c0f340770a Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2537137 Change-Id: Idbc23251f62a2ee601af01697ab6a5273d19cc4e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "cosmetic: warmup runs made clearer" am: 3a7126408b am: 6f98bee6baUsta (Tsering) Shrestha
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2537137 Change-Id: Icebd8df558b437111b3d5b970ae748f5bc754f50 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "cosmetic: warmup runs made clearer" am: 3a7126408bUsta (Tsering) Shrestha
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2537137 Change-Id: I7434d26ffafb266cc73fcd7d65eee65187180933 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-17Merge "cosmetic: warmup runs made clearer"Usta (Tsering) Shrestha
2023-04-17Allow sdk transition wrappers in exports of aar_import.Romain Jobredeaux
The Bazel Android rules hard-code the names of rule types that can be exported by an aar_import rule, but the AOSP-specific wrappers we've written don't match the names, even though they are equally valid for export. Test: Presubmits Change-Id: I14cf50ec553380d377a685b65e5eac4404c64f9a
2023-04-15Merge "Add hwasan_libc to bionic libs" am: 80c3fa469f am: f572c6ebc9 am: ↵Florian Mayer
dfc0bccd5d Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2526579 Change-Id: I23ddf179d1ca45ffd53efde9988043e46bb84ec5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "Add hwasan_libc to bionic libs" am: 80c3fa469f am: f572c6ebc9Florian Mayer
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2526579 Change-Id: Ia3a631094d4661665b69302d08544114d2804459 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "Add hwasan_libc to bionic libs" am: 80c3fa469fFlorian Mayer
Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2526579 Change-Id: I0f407fecba30b603c7ee7cd7cf360846dac466d1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "Add hwasan_libc to bionic libs"Florian Mayer
2023-04-14Stop using platform mapping and delete mapping file am: 08e4fc845d am: ↵Romain Jobredeaux
e78a94df78 am: ae8a1b9e16 Original change: https://android-review.googlesource.com/c/platform/build/bazel/+/2517836 Change-Id: I0bcc136ff819bc0b7e691724a23af636e0aa9f55 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14cosmetic: warmup runs made clearerUsta Shrestha
Test: `incremental_build.sh -c clean -b prod soong` and verify rows for WARMUP in summary.csv and metrics.csv Bug: NA Change-Id: I3df521daa30ce7f91072570f4ffef5f0314a737f