-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'android-15.0.0_r6' into staging/lineage-22.0_merge-android…
…-15.0.0_r6 Android 15.0.0 Release 6 (AP4A.241205.013) # -----BEGIN PGP SIGNATURE----- # # iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ1IssQAKCRDorT+BmrEO # eBrKAJ9FmL5mDOHG8U+CMKbPhMhF6MfpaQCdERo5ad5GLy9WXkX8q7C7Xy03FVs= # =dG9F # -----END PGP SIGNATURE----- # gpg: Signature made Fri Dec 6 00:44:01 2024 EET # gpg: using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78 # gpg: Good signature from "The Android Open Source Project <[email protected]>" [marginal] # gpg: [email protected]: Verified 2457 signatures in the past # 3 years. Encrypted 4 messages in the past 2 years. # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 4340 D135 70EF 945E 8381 0964 E8AD 3F81 9AB1 0E78 # By Android Build Coastguard Worker (138) and others # Via Automerger Merge Worker (847) and others * tag 'android-15.0.0_r6': (472 commits) Version bump to AP4A.241205.013 [core/build_id.mk] Version bump to AP4A.241205.012 [core/build_id.mk] Version bump to AP4A.241205.011 [core/build_id.mk] Version bump to AP4A.241205.010 [core/build_id.mk] Version bump to AP4A.241205.009 [core/build_id.mk] Version bump to AP4A.241205.004.X1 [core/build_id.mk] Revert^3 "Use -target-feature for MTE" Version bump to AP4A.241205.007 [core/build_id.mk] Version bump to AP4A.241205.006 [core/build_id.mk] Version bump to AP4A.241205.005.X1 [core/build_id.mk] Version bump to AP4A.241205.005 [core/build_id.mk] Version bump to AP4A.241205.004.E1 [core/build_id.mk] Version bump to AP4A.241205.004.W1 [core/build_id.mk] Version bump to AP4A.241205.004 [core/build_id.mk] Version bump to AP4A.241205.003 [core/build_id.mk] Version bump to AP4A.241205.002 [core/build_id.mk] Version bump to AP4A.241205.001 [core/build_id.mk] Version bump to AP4A.240925.023 [core/build_id.mk] Version bump to AP4A.240925.022 [core/build_id.mk] Version bump to AP4A.240925.021 [core/build_id.mk] ... Conflicts: core/Makefile core/android_soong_config_vars.mk core/build_id.mk core/config.mk core/soong_config.mk core/soong_extra_config.mk core/sysprop.mk target/product/base_product.mk target/product/base_vendor.mk Change-Id: I53f95787079151ab3286df9e72ac53a17a86a863
- Loading branch information
Showing
234 changed files
with
10,757 additions
and
2,357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 2024, The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Container class for build context with utility functions.""" | ||
|
||
import re | ||
|
||
|
||
class BuildContext: | ||
|
||
def __init__(self, build_context_dict: dict[str, any]): | ||
self.enabled_build_features = set() | ||
for opt in build_context_dict.get('enabledBuildFeatures', []): | ||
self.enabled_build_features.add(opt.get('name')) | ||
self.test_infos = set() | ||
for test_info_dict in build_context_dict.get('testContext', dict()).get( | ||
'testInfos', [] | ||
): | ||
self.test_infos.add(self.TestInfo(test_info_dict)) | ||
|
||
def build_target_used(self, target: str) -> bool: | ||
return any(test.build_target_used(target) for test in self.test_infos) | ||
|
||
class TestInfo: | ||
|
||
_DOWNLOAD_OPTS = { | ||
'test-config-only-zip', | ||
'test-zip-file-filter', | ||
'extra-host-shared-lib-zip', | ||
'sandbox-tests-zips', | ||
'additional-files-filter', | ||
'cts-package-name', | ||
} | ||
|
||
def __init__(self, test_info_dict: dict[str, any]): | ||
self.is_test_mapping = False | ||
self.test_mapping_test_groups = set() | ||
self.file_download_options = set() | ||
for opt in test_info_dict.get('extraOptions', []): | ||
key = opt.get('key') | ||
if key == 'test-mapping-test-group': | ||
self.is_test_mapping = True | ||
self.test_mapping_test_groups.update(opt.get('values', set())) | ||
|
||
if key in self._DOWNLOAD_OPTS: | ||
self.file_download_options.update(opt.get('values', set())) | ||
|
||
def build_target_used(self, target: str) -> bool: | ||
# For all of a targets' outputs, check if any of the regexes used by tests | ||
# to download artifacts would match it. If any of them do then this target | ||
# is necessary. | ||
regex = r'\b(%s)\b' % re.escape(target) | ||
return any(re.search(regex, opt) for opt in self.file_download_options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#/bin/bash | ||
|
||
# Copyright 2024, The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -ex | ||
|
||
export TARGET_PRODUCT=aosp_arm64 | ||
export TARGET_RELEASE=trunk_staging | ||
export TARGET_BUILD_VARIANT=eng | ||
|
||
build/soong/bin/m dist \ | ||
all_teams | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.