Commit Graph

33941 Commits

Author SHA1 Message Date
Treehugger Robot
b037e85818 Merge "c2a: Support customizing rustc" 2023-06-22 00:27:37 +00:00
Sim Sun
ecff5ddc84 c2a: Support customizing rustc
The current cargo2android.py doesn't work well w/ `--cargo_bin`. It would use the full path rustc(/<HOME>/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc) instead of basename(`rustc`). The `RUSTC_PAT` and `RUSTC_VV_CMD_ARGS` regex doesn't match the full path.

This CL uses `(.*\/)?` to match the path if it exists.

Change-Id: If5e4060410c1cd45ad6c9612ebe856552aa14d08
2023-06-21 14:08:38 -07:00
Elliott Hughes
f87641a7ea Merge "Support gdbclient.py on riscv64" 2023-06-21 14:12:35 +00:00
Hsin-Yi Chen
01018f02c4 Merge "Fix the link to Update-Opt_in-Reference-ABI-Dumps" 2023-06-21 10:10:54 +00:00
Treehugger Robot
bbb1f20b81 Merge "STT: Remove some dist artifacts from test build" 2023-06-21 09:34:05 +00:00
Justin Yun
b178c4c900 STT: Remove some dist artifacts from test build
They consume much disk space even though they are not used.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
                     -d out/dist -a cf_x86_64_foldable -o -c droid
Change-Id: I4fd5e9326e5c77c28c5e178f63ba396c9e462cbd
2023-06-21 15:23:49 +09:00
Hsin-Yi Chen
9d4a5a7248 Fix the link to Update-Opt_in-Reference-ABI-Dumps
Test: none
Change-Id: I759f825e213cd6dcb42f2b7b29c344a41691aeaf
2023-06-20 17:56:13 +08:00
Treehugger Robot
63cbded623 Merge "Update ab tool path" 2023-06-19 11:18:37 +00:00
Justin Yun
d7cd02f7b7 Update ab tool path
Bug: 287915808
Test: utils.get_latest_vndk_bid('android13-gsi')
Change-Id: If5fe7f0e972cc465fd126b7b3ffa6f0234898830
2023-06-19 09:01:15 +00:00
Treehugger Robot
92b2b32900 Merge "Add a folder for Aconfig demo" 2023-06-16 19:13:07 +00:00
Zhi Dou
709eb6d9a2 Add a folder for Aconfig demo
The Aconfig demo will be used as
1. As an example for aconfig code lab
2. As an example for user to learn Aconfig

Test: N/A
Bug: 287644619
Change-Id: Ida6c922fdd52caaecfadff99809a70fab8442814
2023-06-16 17:39:23 +00:00
Samuel Holland
c434deca4e Support gdbclient.py on riscv64
Add the path to the existing architecture-specific runtime directory,
in preparation for when lldb-server is added to the toolchain build by
Iba7efaa62e7d3cc8e3bd1080d9b4a67bc241faf2.

Test: `gdbclient.py -r surfaceflinger` connected to a riscv64 board
Change-Id: I1654378a7ba92fcd7ffe478d2b491f426655e6f1
2023-06-16 09:48:11 -07:00
Treehugger Robot
3414060631 Merge "STT: Add encoding option to read trace files" 2023-06-16 08:05:21 +00:00
Justin Yun
a21f7f598d STT: Add encoding option to read trace files
Bug: 284915566
Test: read_build_trace_gz.py build.trace.gz
Change-Id: I90dc3e7c70cecf63ab1a29d972bf8333423436e7
2023-06-16 15:52:42 +09:00
Justin Yun
a5b9424827 Merge "STT: Generate output result from the test builds" 2023-06-14 00:11:12 +00:00
Treehugger Robot
f97a3286ec Merge "Support Python 3.8.10." 2023-06-13 14:59:55 +00:00
Andrew Walbran
90bfd75d6b Support Python 3.8.10.
Redshell unfortunately uses this old version, while the union operator
for dictionaries was only added in Python 3.9.

Test: Ran cargo2android.py on a crate with variants
Change-Id: I7a875acde11c23a3b789ef384f3ab32100d7c6d5
2023-06-13 13:06:26 +00:00
Justin Yun
e2d794cff0 STT: Generate output result from the test builds
Enable multiple test builds in one command and collect the results
from the build.trace.gz files.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
                     -d out/dist -a cf_x86_64_foldable -o -c droid
Change-Id: Ie566fd76463aa615c37130f4c4c7b8287fd8c447
2023-06-13 18:48:12 +09:00
Nikita Putikhin
2876fbc6ed Merge "Add --vscode-launch-props to gdbclient.py" 2023-06-12 09:32:33 +00:00
Nikita Putikhin
9aa3bc65ba Add --vscode-launch-props to gdbclient.py
The new argument allows the user to pass a JSON of properties to merge
into the generated launch.json config when setting up vscode-lldb
forwarding. This way the user can add pre-build tasks, extra init
commands etc.

Test: atest gdbclient_test
Test: lldbclient.py --setup-forwarding=vscode-lldb
  --vscode-launch-props='{"sourceMap": {"test1": "test2"},
  "postDebugTask": "Stop LLDB client", "processCreateCommands" :
  ["test"]}' -r test
Change-Id: I763dd15dde10421e86bc0a6ddfde974156ef1588
2023-06-10 20:47:31 +00:00
Treehugger Robot
43e163e870 Merge "Test script for source tree treble build" 2023-06-08 03:27:24 +00:00
Justin Yun
b931ab1e4c Test script for source tree treble build
The script tests building two targets with a sigle build artifact
path.
Give two targets A and B, build A and then build B without cleaning
the out directory. After that, build the A again.

Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone \
             -a cf_x86_64_foldable -v userdebug -c -d out/dist droid
Change-Id: I143412ca67717a5ee3b437c84b230a58a00b065e
2023-06-07 17:45:21 +09:00
Treehugger Robot
fc9eaf5daa Merge "Apply riscv64 workarounds." 2023-06-07 00:54:33 +00:00
Dan Albert
cc5dad70f8 Apply riscv64 workarounds.
These were needed in build-ndk-prebuilts.sh too. Copy them here.

Bug: None
Test: ./update_ndk_abi.sh
Change-Id: Ia6263ff1b0936aa3a80747042662df24ddfb88e0
2023-06-06 23:39:55 +00:00
Treehugger Robot
5d5398a7f5 Merge "Package version bump to 34.0.4" 2023-06-06 23:28:28 +00:00
Shaju Mathew
a933fc2956 Package version bump to 34.0.4
Merged-in:https://googleplex-android-review.git.corp.google.com/c/platform/development/+/23456351

Test: treehugger

Bug: 284530649
Change-Id: I3a55f52aa74d2743280288b21e6dfafa1064674f
2023-06-06 22:16:54 +00:00
Nikita Putikhin
f118084dfa Merge "Add type annotations to gdbclient.py" 2023-06-05 12:01:07 +00:00
Nikita Putikhin
516960e34e Add type annotations to gdbclient.py
In a couple cases it exposed unused arguments or type errors. This
change fixes those as well.

Test: mypy development/scripts/gdbclient.py
Test: gdbclient -r /system/bin/date
Change-Id: If471a1853b813e01c89e321eab3d424f1c256f2d
2023-05-31 21:57:38 +00:00
Treehugger Robot
8520a96d35 Merge "Deprecate FILE_NAME_TAG" 2023-05-23 08:56:48 +00:00
Jeongik Cha
88895e5233 Deprecate FILE_NAME_TAG
Test: m dist
Bug: 278060169
Change-Id: I040b66d5448b2b4c8276ef1148f4517a3ab3b13a
Merged-In: I040b66d5448b2b4c8276ef1148f4517a3ab3b13a
2023-05-22 12:36:16 +00:00
Treehugger Robot
3b3aef3544 Merge "Export type info." 2023-05-19 22:54:26 +00:00
Dan Albert
14c0b1006d Merge "Convert to setuptools pacakge." 2023-05-18 18:43:22 +00:00
Treehugger Robot
d50ebda005 Merge "Support delete" 2023-05-18 10:26:42 +00:00
SzuWei Lin
2aa95c6a9c Support delete
Bug: 278860852
Test: repo_review.py -g ... --delete "..."
Change-Id: Ib986cdf0d99b5cd29e3abf8b2e282d1e586a478d
2023-05-17 11:43:01 +08:00
Dan Albert
e7e4d2f80f Export type info.
Though there are no type hints here, exporting this file will at least
suppress errors from importers and will allow mypy to infer the things
it can.

Bug: None
Test: mypy gdbrunner
Test: mypy ndkgdb.py # in the NDK
Change-Id: Idf4b7fc646b53e10f36900d09ea98feaa64fd794
2023-05-16 16:09:37 -07:00
Dan Albert
754c05b8fb Convert to setuptools pacakge.
The normal python package structure and setuptools package are required
for py.typed to be seen by importers, which is needed for callers to
type check use of gdbrunner.

Bug: None
Test: ndk-gdb --help && gdbclient --help
Change-Id: I9a6d65595f9572275e31f08b3678c300a78275d5
2023-05-16 15:54:17 -07:00
Treehugger Robot
32be457c7a Merge "cargo_embargo: dedup output modules" 2023-05-15 23:49:52 +00:00
Treehugger Robot
15b2fcc4db Merge "Update clang version to clang-r487747c" 2023-05-13 17:59:25 +00:00
Yi Kong
fda7cced69 Update clang version to clang-r487747c
Test: presubmit
Bug: 279955553
Change-Id: I8043ab75173420f60e828d973ba69d47011c2953
2023-05-13 18:11:44 +01:00
Treehugger Robot
ff98cee914 Merge "Add --dependency-suffix flag." 2023-05-12 18:10:40 +00:00
Andrew Walbran
59f441224e Add --dependency-suffix flag.
This adds a suffix to all dependencies, which may be useful for no_std
crates.

Bug: 279614907
Test: Ran on external/rust/crates/ciborium
Change-Id: I4d504fbfdcd079a946814dcf953b42baa0ca3563
2023-05-12 16:47:19 +00:00
Andrew Walbran
8ddcc6c479 Merge "Fix handling of tests for variants." 2023-05-12 14:42:50 +00:00
Treehugger Robot
1604ded8da Merge "Added --no-std and --alloc flags." 2023-05-12 14:35:19 +00:00
Andrew Walbran
aff9481608 Fix handling of tests for variants.
Variant test and cargo flags were being ignored.

Bug: 279614907
Test: Ran on external/rust/crates/serde
Change-Id: I9c6cf71c8d04944cc7c532cfb53b50c2efc3e375
2023-05-12 13:24:37 +00:00
Andrew Walbran
d579a0fa61 Added --no-std and --alloc flags.
These allow most no_std crates to be supported without extra patches.

Bug: 279614907
Test: Ran on external/rust/crates/half
Change-Id: I1a69ff7950fb63320ef7c87d6cd45b20915df801
2023-05-12 13:22:55 +00:00
Frederick Mayle
3d6e609f03 cargo_embargo: dedup output modules
This is needed because of https://crrev.com/c/4517945. The new resolver
causes there to be multiple `rustc` invocations for some libraries. They
are only trivially different though, so dedup'ing the final output is
sufficient for now.

Bug: 280489895
Test: m cargo_embargo && ./android-merge-2-cargo-embargo.sh
Change-Id: If4a36e4f3847d18d03f76bad63bab6c45a9aef97
2023-05-10 14:57:13 -07:00
Anvesh Renikindi
270b7c9fed Merge "Added shortcutlauncherdemo Initialization provider" 2023-05-10 20:18:09 +00:00
Anvesh Renikindi
4b48ea39e3 Added shortcutlauncherdemo Initialization provider
Bug: 277943394
Change-Id: I4a87f0539e1f269b5990acd522ba3916fdb6fe56
Test: None
2023-05-10 18:57:52 +00:00
Adrian Roos
f2384e9621 Merge "[Monkey][Bugfix] Do not report crash in monkey proc." 2023-05-10 10:01:59 +00:00
qinyige1
f2a198dd83 [Monkey][Bugfix] Do not report crash in monkey proc.
It's not necessary to report crash to system for monkey process,
which even causes system deadlock. So we override it.

Bug: 279527651
Test: Manual
Change-Id: I2672a372dfe445a4f2400db01ec837ec6b528303
2023-05-04 15:11:08 +08:00