Commit Graph

32023 Commits

Author SHA1 Message Date
Matthew Maurer
a9fb65d155 c2a: Automatically make crates APEX available
The bulk of Rust packages in external/ are OS agnostic and do not care
about individual platform features. This change is intended to reduce
the churn of repeatedly adding new `apex_available` attributes to crates
by defaulting to availability. When landing a new crate which is either
platform revision specific or has an unstable file format, prefer to
set `apex_available: ["//apex_available:platform"]` until you have
thought things through.

Bug: 174862583
Test: Regenerate with no apex_available, see universal availability
Test: Regenerate with apex_available: [], see []
Test: Regenerate with apex_available: [foo], see [foo]
Change-Id: I958597789bfc966caec043d051996284dab7a927
2022-06-16 13:07:12 -07:00
Matthew Maurer
e1d07ba872 c2a: Only use postsubmit when configured
Previous logic would place tests in both presubmit and postsubmit if the
postsubmit_tests configuration was not specified. This is both
unnecessary and wastes resources because presubmit tests are also run in
postsubmit.

Bug: 236006683
Test: Regenerate all TEST_MAPPINGs, manually check postsubmit removal
Change-Id: Ie8ff0e351776711e07bf7646efd916d970254e9c
2022-06-14 16:28:36 -07:00
Matthew Maurer
037b445ed8 c2a: Denylist additional Rust tests modules
These modules are not suitable for direct execution on cuttlefish, but
are still built as `rust_test` to get the harness.

Bug: 233924440
Test: Regenerate all TEST_MAPPINGs, pass presubmit
Change-Id: I4aebdb5e36cf3a80780483e0a7ebeb83e9735d29
2022-06-14 14:32:15 -07:00
Matthew Maurer
3f7f7e2236 c2a: Do not assume test_mapping.json exists
update_crate_tests would previously assume test_mapping.json existed
when trying to generate a TEST_MAPPING update. This made updating
mappings for the majority of existing crates fail.

Bug: 233924440
Test: Regenerate all Rust TEST_MAPPINGs
Change-Id: I4d9b906f4db233ee0223a3035c1b63bf1ca681f4
2022-06-14 14:32:00 -07:00
Treehugger Robot
1a4e4daf49 Merge "Allow ABI dumps to contain ANDROID_BUILD_TOP that is not a path prefix" 2022-06-13 10:05:10 +00:00
Hsin-Yi Chen
2ed4052a06 Allow ABI dumps to contain ANDROID_BUILD_TOP that is not a path prefix
Test: ./create_reference_dumps.py -products aosp_x86_64 -libs libm
Bug: 235300136
Change-Id: I75fa175018d6ed0da7a0949ff133869fd874c667
2022-06-13 16:47:32 +08:00
Yi-yo Chiang
c38fa6eb0a Merge "create_reference_dumps.py: Always rebuild lsdump_paths.txt" 2022-05-25 04:03:43 +00:00
Yi-Yo Chiang
43271c7bc8 create_reference_dumps.py: Always rebuild lsdump_paths.txt
If the contents of lsdump_paths.txt was corrupted,
create_reference_dumps.py might not rebuild lsdump_paths.txt due to
incremental build mechanism. Manually unlink and rebuild
lsdump_paths.txt in create_reference_dumps.py so that it always get the
up-to-date lsdump_paths.txt.

Bug: 233562033
Test: $ development/vndk/tools/header-checker/utils/create_reference_dumps.py -l libbinder -product aosp_arm64
  $ echo "" > $ANDROID_PRODUCT_OUT/lsdump_paths.txt
  $ development/vndk/tools/header-checker/utils/create_reference_dumps.py -l libbinder -product aosp_arm64
Change-Id: Iedccba6ffb659b3348c4f3fb57b82e38de8e53c3
2022-05-24 18:25:38 +08:00
Treehugger Robot
323c559e2e Merge "create_reference_dumps.py: Clear SKIP_ABI_CHECKS" 2022-05-24 08:03:43 +00:00
Yi-Yo Chiang
ec469d15ea create_reference_dumps.py: Clear SKIP_ABI_CHECKS
It's possible that a developer would set SKIP_ABI_CHECKS during
development, and only execute create_reference_dumps.py before
submitting the change. If the developer forgot to clear SKIP_ABI_CHECKS
before running create_reference_dumps.py, the developer would be hit by
a confusing error (something about lsdump_paths.txt has invalid format),
because some preconditions of create_reference_dumps.py aren't met.
The error message isn't helpful as it doesn't tell the developer how to
resolve the error.
Let's just unset SKIP_ABI_CHECKS in create_reference_dumps.py, so
create_reference_dumps.py can be as fool-proof as possible.
The developer doesn't need to know the preconditions of
create_reference_dumps.py as it should handle it by itself.

Bug: 233562033
Test: export SKIP_ABI_CHECKS=true && ./create_reference_dumps.py
Change-Id: I397f1fcad7f0a1f9a7cb2781f32d85cdf2439e60
2022-05-24 14:29:01 +08:00
Treehugger Robot
120f46ef53 Merge "Fix adb proxy get device id on windows" 2022-05-23 14:42:21 +00:00
zengshuchuan
a7526ac28b Fix adb proxy get device id on windows
Window adb device contains a '\r' character,
translate string to integer comparing.

Bug: 232488036
Test: 1. Excute python.exe winscope_proxy.py on Window Powershell.
2. Launch winscope index.html and set the Winscope token.
3. Tablet connect adb and winscope select the device.
4. Tap the 'DUMP STATE' button.

Change-Id: I8c261da523763982ea4a4bfae6883694b221883c
2022-05-13 16:58:41 +08:00
Anton Hansson
4f9305a51c Merge "Use lint database from api_versions_public" 2022-05-11 08:11:45 +00:00
Anton Hansson
1d75c7fe31 Use lint database from api_versions_public
These two databases are (nearly) identical but the latter is generated
in a much more efficient way.

The diffs are very minor and it's not clear to me which versions is more
correct than the other, though I'm fairly confident they don't matter.

https://paste.googleplex.com/5567994005553152

Bug: 187398174
Test: diff api-versions.xml
Change-Id: I97375e0d72675bc8ff102551b3e3913e684be683
2022-05-09 10:46:38 +00:00
Treehugger Robot
430aa3f2a4 Merge "Bumping package version number for next release Test: N/A Bug: b/230461482 Change-Id: I8b5d925e556e493ab56fa52cedfed7476df46260" 2022-05-06 22:54:02 +00:00
Raju Kulkarni
fc22586cb5 Bumping package version number for next release
Test: N/A
Bug: b/230461482
Change-Id: I8b5d925e556e493ab56fa52cedfed7476df46260
2022-05-06 21:36:19 +00:00
Christopher Ferris
d6ba6d2400 Merge "Modify any lines with libc.so!libc.so to libc.so." 2022-05-06 01:11:41 +00:00
Christopher Ferris
7d4d527a1c Modify any lines with libc.so!libc.so to libc.so.
I had made this change if there was an offset on the line,
but I didn't make if there is no offset present. Add the
no offset present case.

Bug: 206463081

Test: Ran unit tests.
Test: Modified a normal stack line with libart.so to be
Test: libart.so!libart.so and verified the line numbers
Test: are still present.
Change-Id: I75e3fbe5eaa3a5419a2dca2c4542731c61c7b971
2022-05-05 15:14:01 -07:00
Christopher Ferris
53c707781a Merge "Allow fixup of apex directories." 2022-05-03 19:02:24 +00:00
Treehugger Robot
5c744010a0 Merge "Update clang-tools build to clang-r450784d" 2022-04-28 19:54:02 +00:00
Yi Kong
70645edd80 Update clang-tools build to clang-r450784d
Bug: 219872355
Test: presubmit
Change-Id: I05db5bfbf8562ec8a0ce0f36e4e2446bbb705da0
2022-04-29 02:52:19 +08:00
Anton Hansson
1db78504aa Merge "Remove non-existing dependency" 2022-04-28 12:18:56 +00:00
Anton Hansson
1710a2efc7 Remove non-existing dependency
We have removed the system-images sdk zip, so remove the tracking of it
as a dependency for the addon.

Bug: 205008975
Test: presubmit
Change-Id: I14e47d6418f355c6c7db7444a25c3030f36a3f92
2022-04-27 15:41:13 +00:00
Ivan Lozano
175c7a013d Merge "Add test_mapping_config to update_crate_tests" 2022-04-27 14:06:25 +00:00
Anton Hansson
0a264aa980 Merge changes from topic "sdksys"
* changes:
  Remove system-images files from the SDK
  Stop building the system-image zip
2022-04-27 10:56:04 +00:00
Ivan Lozano
d7438cff3b Add test_mapping_config to update_crate_tests
Adds support for configuring TEST_MAPPING output in
update_crate_tests.py by defining a test_mapping_config.json.

The initial option that can be set is whether a test should be a
postsubmit test instead of a presubmit test.

Bug: 229727993
Test: update_crate_tests.py with test_mapping_config.json produces
      postsubmit tests
Change-Id: I2f5a336c1af12630cc5df9d2c32ab63ac6099af8
2022-04-26 13:04:08 -04:00
Anton Hansson
ae04c5c358 Remove system-images files from the SDK
The system images distributed externally are created by a separate
set of rules than these. There are no known consumers of these
legacy system-image files.

This makes the SDK zip architecture-agnostic.

Bug: 205008975
Test: m sdk sdk_repo dist
Test: diff sdk zips from sdk_phone_arm64 and sdk_phone_x86 (no diff)
Change-Id: I7ba2eb244a5930721c82895cd2947a1d2aff63e2
2022-04-25 16:28:03 +01:00
Anton Hansson
897fe05053 Stop building the system-image zip
The system images distributed externally are created by a separate
set of rules than these. There are no known consumers of these
legacy system-image zip files.

Bug: 205008975
Test: m sdk sdk_repo dist
Change-Id: I11a9aaea89c307d4698787e228fb47228244ab74
2022-04-25 16:24:33 +01:00
Christopher Ferris
598cc3607b Allow fixup of apex directories.
For some reason, apex directory structure in the symbols directory
is not the same as on device.

This means that a directory on device like:

  /apex/com.android.art/lib64/libart.so

Is really found in symbols as:

  /apex/com.google.android.art/lib64/libart.so

Modify the script to look in both places for libraries.

Bug: 206463081

Test: Verified that libart.so in a backtrace now finds the symbols
Test: libart.so.
Change-Id: I67610e3a236765cc92397c70a769c4aa705f13ce
2022-04-22 14:37:56 -07:00
Treehugger Robot
afdc6bc134 Merge "[DO NOT MERGE] Update winscope proxy on R" 2022-04-21 17:13:07 +00:00
Nataniel Borges
50775a7444 [DO NOT MERGE] Update winscope proxy on R
Backport uspport for device paths with :

Fixes: 196260922
Test: open winscope and collect a trace
Change-Id: Ib2d8088e3a3452c1fea1cccb599dbd9d2ce642d4
2022-04-21 14:32:26 +00:00
Treehugger Robot
6cf816bbcf Merge "Fix incorrect prebuilt-info.txt" 2022-04-20 06:54:32 +00:00
Yi Kong
0228b3a92e Merge "Update clang-tools build to clang-r450784c" 2022-04-18 18:24:21 +00:00
Yi Kong
76b6aa23c2 Update clang-tools build to clang-r450784c
Bug: 219872355
Test: presubmit
Change-Id: I38ce0c3d9ec7d983f7146509c7701b79ba97f531
2022-04-16 22:32:31 +08:00
Edward Liaw
7a89ee5b1b Merge "gdbclient: use host ip when connecting to gdb" 2022-04-07 18:19:33 +00:00
Edward Liaw
22e9c50ec0 gdbclient: use host ip when connecting to gdb
When the device is not on localhost, gdbclient won't connect to it
properly.  If the serial is a tcp address, parse the host and pass that
to gdb-remote.

Bug: 228371506
Test: gdbclient.py -r /system/bin/ls /bin
Change-Id: I635d4bdc483a66ab908f5aa02aa94e2504976a45
2022-04-07 00:46:07 +00:00
Treehugger Robot
721e4ba29e Merge "Fix typo in documentation of script acov-llvm.py." 2022-04-05 17:06:58 +00:00
Roland Levillain
e6d2736cf4 Fix typo in documentation of script acov-llvm.py.
Test: n/a (comment-only change)
Change-Id: I1c10bfd65477dd2550ed86732f9bf077c59b5a59
2022-04-05 11:00:01 +01:00
Rob Seymour
3f04ab2fb4 Merge "Do not install host snapshot modules with existing prebuilts." 2022-03-30 00:52:39 +00:00
Rob Seymour
01a4f9b2e3 Do not install host snapshot modules with existing prebuilts.
Host fake snapshot includes a prebuilt attribute for a host module
that already contains a prebuilt version in the source tree.  When
installing the host snapshot ignore any modules that already contains
a prebuilt version.

Bug: 225890931
Test: m HOST_FAKE_SNAPSHOT_ENABLE=true host-fake-snapshot dist
Test: install fake snapshot with update.py and validate prebuilt modules are not included
Change-Id: Ia8bb44c00ad5fc448ab9110d840d9059ae3294f9
2022-03-29 16:09:25 +00:00
Ivan Lozano
ffb96b63ef Merge "Add Rust proc-macros to host snapshot update.py" 2022-03-29 13:29:24 +00:00
Treehugger Robot
681bf56a56 Merge "Revert "Add parameters to repack_kernels.sh"" 2022-03-29 03:27:21 +00:00
SzuWei Lin
5384e2bd34 Revert "Add parameters to repack_kernels.sh"
This reverts commit a2a360813f.

Reason for revert: build errors

Change-Id: I33df157af39e148adef1e26e8b06e25157d78397
2022-03-29 01:34:10 +00:00
Treehugger Robot
3e0d53dc2f Merge "Add parameters to repack_kernels.sh" 2022-03-28 06:53:23 +00:00
Howard Chen
f3e1facf7f Fix incorrect prebuilt-info.txt
The 8351194 has a kernel-build-id=8339614 in the prebuilt-info.txt.
This value is incorrect and should be 8350305. Fix this issue by
get the build id from artifact.

Bug: 198363484
Test: development/gsi/build_with_kernel/repack_kernels.sh aarch64
Change-Id: I4c0fd6273df4a794b7dddb5346d182e7fc91adf4
2022-03-25 13:00:16 +08:00
SzuWei Lin
a2a360813f Add parameters to repack_kernels.sh
To handle different CPU architectures and build variants. To avoid
output dist/kernel/*-debug folder on user builds

Bug: 226297708
Test: TH
Change-Id: I8ebfa00cb3f9e54bc131d8226cf756f92335be19
2022-03-25 12:46:41 +08:00
Treehugger Robot
c59205de2a Merge "Remove obsolete OWNER." 2022-03-24 22:22:30 +00:00
Ivan Lozano
5a747c7b55 Add Rust proc-macros to host snapshot update.py
Bug: 204304380
Test: The host snapshot Android.bp includes proc-macros.
Change-Id: I7d406d9075fc5a6aa5983a5fef71edd119c6f67f
2022-03-24 15:33:38 -04:00
Dan Albert
22902078f1 Remove obsolete OWNER.
Test: None
Bug: None
Change-Id: I0bbaafb392b5283edd0ec49de3d15a3dd7834173
2022-03-24 12:22:59 -07:00
Treehugger Robot
9ad7ca0281 Merge "Avoid duplicated module name for vndk_prebuilt_shared" 2022-03-21 05:11:08 +00:00