Commit Graph

29810 Commits

Author SHA1 Message Date
Treehugger Robot
ae475e51a6 Merge "Add support for partial update and target library." 2021-06-15 16:21:50 +00:00
lishutong
dce3afb0e9 Add support for partial update and target library.
New functions:
- The uploaded target files will be stored into a database.
- The detailed info of target files can be shown in the target library.
- Add support for generating partial OTA.

Test: Mannual tested.
Change-Id: Idf715994fe51b9ab6addbfe72792be890243702d
2021-06-15 13:59:57 +00:00
Treehugger Robot
53f2408738 Merge changes Ice2c3a8a,I5c4f16af
* changes:
  update_crate_tests: Add documentation
  update_crate_tests: Remove cwd
2021-06-14 07:43:09 +00:00
Treehugger Robot
acec66d1b0 Merge "update_crate_tests: Clean up" 2021-06-14 07:43:05 +00:00
Treehugger Robot
4d9029f5d4 Merge "update_crate_tests: Generate Bazel files" 2021-06-14 07:43:02 +00:00
Treehugger Robot
eccee76591 Merge changes I6080fa7f,I3c0477cf,I0beac6e7
* changes:
  update_crate_tests: Add init exceptions
  update_crate_tests: Use prebuilt bazel
  update_crate_tests: Use subprocess.DEVNULL
2021-06-14 07:42:54 +00:00
Treehugger Robot
d14ce2564e Merge "DO NOT MERGE - Merge ab/7272582" 2021-06-14 07:12:31 +00:00
Xin Li
8b46ef0456 DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Change-Id: I3552305b323cceea05942cc9f7b8bb46f835df4b
2021-06-11 17:34:21 -07:00
Thiébaud Weksteen
3604b75456 update_crate_tests: Add documentation
Test: pydoc update_crate_tests
Change-Id: Ice2c3a8ab901e38b2cf77433ec1ba6aac2360236
2021-06-10 14:27:16 +02:00
Thiébaud Weksteen
fc485b2384 update_crate_tests: Remove cwd
Env.cwd is misleading as it captures the location of the crate/package
being updated. Move the detection logic to the Package class and rename
the attribute.

There is the expectation that before running soong_ui, cwd is set to
ANDROID_BUILD_TOP; and before running write_mapping, that cwd is set to
the package directory. Add comments to capture this.

Test: update_crate_tests.py in external/rust/crates/libc
Change-Id: I5c4f16afe0b92b7c85173e4149ee17dd39c773c2
2021-06-10 14:27:10 +02:00
Thiébaud Weksteen
2e532bb1c1 update_crate_tests: Clean up
Rename the Crate class to Package as this script may also be used to
update TEST_MAPPING for the prebuilts/rust toolchain.

Inline get_tests function as one branch was never used.

Rename `create_test_mapping` to `create` as it is already a method of
TestMapping.

Test: update_crate_tests.py in external/rust/crates/libc
Test: update_crate_tests.py in prebuilts/rust
Change-Id: I06bd6d4f93223bb50fdb898980bd25fa3cea9019
2021-06-10 10:56:24 +02:00
Thiébaud Weksteen
df132d6056 update_crate_tests: Generate Bazel files
Bug: 190582745
Test: update_crate_tests.py in external/rust/crates/libc
Change-Id: If61239c5fe9ae3f8fc568eec906bf73baf603105
2021-06-10 10:56:13 +02:00
Thiébaud Weksteen
5212f8a43f update_crate_tests: Add init exceptions
Normalize the object initializations by raising exceptions and catching
them within main.

Test: update_crate_tests.py in external/rust/crates/libc
Change-Id: I6080fa7f22d740f5dd384c15ef74097e61dbb210
2021-06-10 10:54:02 +02:00
Thiébaud Weksteen
3e32afc5a6 update_crate_tests: Use prebuilt bazel
Bug: 181953100
Test: update_crate_tests.py in external/rust/crates/libc
Change-Id: I3c0477cf8d5aac0ae9e444d1b95b8670c9e2e588
2021-06-10 10:34:16 +02:00
Thiébaud Weksteen
76c4e232ad update_crate_tests: Use subprocess.DEVNULL
Test: update_crate_tests.py in external/rust/crates/libc
Change-Id: I0beac6e7e4f795bf8581f9c6448968f721da4b75
2021-06-10 10:14:23 +02:00
Joel Galenson
62b113d654 Merge "Add a lib blocklist and an option to force rust_library_rlib." 2021-06-09 16:00:22 +00:00
Joel Galenson
cb5f2f0bd7 Add a lib blocklist and an option to force rust_library_rlib.
Test: Use in some crates.
Change-Id: I5d098ce9b0f1fc37c5d8408524c0755869657992
2021-06-08 15:08:29 -07:00
Treehugger Robot
316ce8acca Merge "Add support for uploading and downloading." 2021-06-08 18:37:27 +00:00
lishutong
fcdf777e5e Add support for uploading and downloading.
New functions:
- Can upload target file.
- Can select target file from the uploaded ones.
- Can download the generated OTA file.
- Can monitor the stdout during OTA package generation.

Also decoupled the job running function with the web server code.

Test: Mannual tested.
Change-Id: Ic525ef3997f048d73b21ad1d9475d54b1f8d112c
2021-06-08 16:54:40 +00:00
Treehugger Robot
981aea2210 Merge "Allow blocklisting cfgs." 2021-06-08 15:16:04 +00:00
Kelvin Zhang
e326e629ed Merge "Add some configuration files." 2021-06-07 23:09:53 +00:00
Kelvin Zhang
71772d6961 Merge "A demo of OTAGUI, still in its very early version." 2021-06-07 23:09:20 +00:00
Joel Galenson
3d6d1e78b5 Allow blocklisting cfgs.
Test: Use it for a crate.
Change-Id: I72e383ce58f64c7e545db3049376feea8ac006d1
2021-06-07 15:00:24 -07:00
lishutong
f0e53f58aa Add some configuration files.
Test: Mannual tested.
Change-Id: I688bf65cadfc094800635b1e26b51411b473bb6a
2021-06-07 03:12:46 +00:00
lishutong
bb656f5ea8 A demo of OTAGUI, still in its very early version.
Functions:
- Create OTA_package generate jobs.
- Monitor OTA_package generate jobs.
Please refer to 'README.md' for more details.
Test: Mannual tested.

Change-Id: Ie0eb836e28b338b50c58abe146a234dfb751e163
2021-06-07 03:04:36 +00:00
Pirama Arumuga Nainar
e66ad34156 Merge "[update_clang-tools.sh] Ignore failures when removing .fetch*" 2021-06-04 16:49:36 +00:00
Joel Galenson
695f93434f Merge "Allow blocklisting tests." 2021-06-04 15:39:31 +00:00
Ivan Lozano
414406092b Merge "Add rlib support for vendor_snapshot/update.py" 2021-06-04 13:48:11 +00:00
Pirama Arumuga Nainar
755c2a3bff [update_clang-tools.sh] Ignore failures when removing .fetch*
Sometimes these files are absent but this causes the script to fail since
it's run with `-e`.  Ignore failures when deleting .fetch*.

Test: run script
Change-Id: Ida750b504064f2da53d0d9444838a49e476530d4
2021-06-04 05:15:31 +00:00
Joel Galenson
f6b3c91d21 Allow blocklisting tests.
This allows you to give cargo2android.py a list of test files to ignore.

Test: Use on a couple crates.
Change-Id: Id9422c496de6693029754f32d9805f1cb92d33cb
2021-06-03 16:00:54 -07:00
Joel Galenson
48a7eed92d Merge "Allow blocklisting dependencies." 2021-06-03 20:07:33 +00:00
Ivan Lozano
40c498011f Add rlib support for vendor_snapshot/update.py
Adds support for collecting rlibs as part of the vendor snapshot.

Bug: 184042776
Test: m dist vendor-snapshot
Test: python3 development/vendor_snapshot/update.py --local $DIST_DIR --install-dir
    vendor/vendor_name/vendor_snapshot VER
Test: vendor_snapshot_rlib modules generated, vendor_snapshot has rlibs
Change-Id: Ia90e53131c4ffba32883718b66ba99f4962d4633
2021-06-03 10:52:33 -04:00
Joel Galenson
97e414af12 Allow blocklisting dependencies.
A few crates have patches that manually remove a dependency that
cargo2android.py adds.  This option can allow us to remove those
patches.

Test: Use when running on a few crates.
Change-Id: Ie8337789ab232fb726ccfe361df489acfdd31b20
2021-06-02 15:49:04 -07:00
Joel Galenson
30e705aefe Merge changes from topic "updater-c2a-fixes"
* changes:
  Abort cargo2android.py if the patch fails.
  Raise an exception if we encountered an error.
2021-06-02 20:51:38 +00:00
Yuntao Xu
34c918d55b Merge "Convert UiAutomator/Android.mk to Android.bp" 2021-05-26 00:10:23 +00:00
Colin Cross
eb979b9145 Merge "Update lint baseline for AutofillKeyboard" 2021-05-25 16:40:51 +00:00
Colin Cross
86786ee8ae Update lint baseline for AutofillKeyboard
An androidx update triggered some NewApi errors.

Bug: 189179560
Test: m out/soong/.intermediates/development/samples/AutofillKeyboard/AutofillKeyboard/android_common/lint/lint-report.html
Change-Id: I219130d6f8ee791566ddeb4542a52225f124500d
2021-05-25 08:11:26 -07:00
Treehugger Robot
f85188cf82 Merge "Select apex variants from lsdump paths" 2021-05-25 06:30:40 +00:00
Hsin-Yi Chen
ebea84643a Select apex variants from lsdump paths
Bug: 188870336
Test: ./create_reference_dumps.py
Change-Id: I15a1f6a7c5c4952d2deb403aa9e9d58a0733561b
2021-05-25 12:56:23 +08:00
Treehugger Robot
7f7af47357 Merge "First commit for otagui project." 2021-05-25 02:24:30 +00:00
lishutong
9295b995ea First commit for otagui project.
Test: no test is required.
Change-Id: I29bbe71df3087b006540903b7b86d124da07d913
2021-05-24 23:05:16 +00:00
Joel Galenson
7e8247e2eb Abort cargo2android.py if the patch fails.
This allows the external_updater to understand that an error occurred.

The pre-patched version of the file will still exist.

Test: Run when a patch fails.
Change-Id: I59cc12eeaa751b5e3e2956060f58981d27875748
2021-05-24 15:31:08 -07:00
Joel Galenson
5774c85c70 Raise an exception if we encountered an error.
This allows the caller to handle it if they wish.

Test: Call with an error.
Change-Id: Ia2e0d38e8e486a2b78e42d154654332e88909e9f
2021-05-24 15:31:08 -07:00
Roland Levillain
1f1a79d97d Merge "Print the coverage report location at the end of acov-llvm.py report." 2021-05-21 19:28:39 +00:00
Roland Levillain
d2f1236a6e Print the coverage report location at the end of acov-llvm.py report.
This makes it easier to identify the directory where the coverage
report data of the latest `acov-llvm.py report` was written,
especially when the current directory already contains previous
coverage reports.

Test: acov-llvm.py report
Bug: 160401633
Change-Id: I96fc860940f5be11c4c3b702dfce74226afabfce
2021-05-21 17:36:13 +01:00
Julien Desprez
59189ecc35 Merge "Attempt to run python-stack_core_test" 2021-05-21 01:04:24 +00:00
Yuntao Xu
d690d16db5 Convert UiAutomator/Android.mk to Android.bp
Convert the Make file to a Soong one

Bug: 188694412
Test: compared the two jar files built by Make and Soong
Test: TreeHugger
Change-Id: I84b6e1311d0e35d4bce1c86d9c6eff1ce051c7f8
2021-05-20 17:41:05 -07:00
Treehugger Robot
0b1aa4958f Merge "When cargo errors, print an error about cargo.out." 2021-05-18 04:05:19 +00:00
Joel Galenson
6bf54e3abb When cargo errors, print an error about cargo.out.
Currently if cargo produces an error it's not obvious how to debug it.
Add a message telling the user to look at the cargo.out file, which
has its output.

Test: Ran on crates with and without errors
Change-Id: Ib681a8e87f60467c7425aed5f7e5277a0603bcc8
2021-05-17 10:54:50 -07:00
Roland Levillain
97988980d0 Merge "Fix adb root invocations in script acov-llvm.py." 2021-05-14 16:35:08 +00:00