Commit Graph

27672 Commits

Author SHA1 Message Date
Treehugger Robot
04a8893896 Merge "Remove unused imports from Main.java" am: 8fe2c34a0d
Change-Id: Idb30773a7862c8bce6b24e51964d72e7e84ce122
2020-05-25 06:18:52 +00:00
Treehugger Robot
8fe2c34a0d Merge "Remove unused imports from Main.java" 2020-05-25 06:02:20 +00:00
Treehugger Robot
c26bc5cc4f Merge "Don't use unzip -t when unzip -l will do." am: a803d77648
Change-Id: Iff0917f55cf73803f2c381985ef445ce9f423bb7
2020-05-21 22:55:09 +00:00
Treehugger Robot
a803d77648 Merge "Don't use unzip -t when unzip -l will do." 2020-05-21 22:36:48 +00:00
Elliott Hughes
ad140286f3 Don't use unzip -t when unzip -l will do.
It's a *lot* more expensive, and ziptool doesn't support it. I can
easily add the functionality, but since our only user seems to be a
mistake, that wouldn't be my first choice!

Test: treehugger
Change-Id: Iab1a326e4cec3520942adaf9f3c9bb424adf4c35
2020-05-21 14:09:24 -07:00
Treehugger Robot
db109eabff Merge "repo-review: Add a 'submit' command line option" am: 758cd9929c
Change-Id: I43ea5e8ac0edca48611045946124b90a31f1b721
2020-05-21 08:45:42 +00:00
Treehugger Robot
758cd9929c Merge "repo-review: Add a 'submit' command line option" 2020-05-21 08:25:24 +00:00
Po-Chien Hsueh
4e83237bb5 repo-review: Add a 'submit' command line option
This CL enables repo_review.py to submit CL(s).

Test: repo-review.py -g [url] [query] --submit
Change-Id: I9ecdc2b97bb0250597d76ef2d39596f66182530f
2020-05-21 07:13:24 +00:00
Treehugger Robot
5ccf17b9d5 Merge "Update gitignore." am: dfb244428a
Change-Id: I70fd5d0da6482909871bad4209c33a8e5f4cb141
2020-05-19 03:54:04 +00:00
Treehugger Robot
dfb244428a Merge "Update gitignore." 2020-05-19 03:36:44 +00:00
Treehugger Robot
8d913adcc1 Merge "Parse merge commit recursively" am: 43f13ddb3a
Change-Id: I21b12bdde3aca6c26e49a10a4e75ec98138e6890
2020-05-19 00:49:01 +00:00
Treehugger Robot
43f13ddb3a Merge "Parse merge commit recursively" 2020-05-19 00:32:25 +00:00
Treehugger Robot
afee39a075 Merge "Move ModuleMerger to namespace header_checker::linker" am: cb6d6dc6a3
Change-Id: If805faefabf4975c56dccc16ce245015112c7bda
2020-05-18 03:20:18 +00:00
Treehugger Robot
cb6d6dc6a3 Merge "Move ModuleMerger to namespace header_checker::linker" 2020-05-18 03:04:34 +00:00
Justin Yun
04f8b34890 Parse merge commit recursively
To find a revision from the uploading branch, we find the parent
commit if the commit is a merge commit. But it fails if the parent
commit is also a merge commit. To avoid this, find the parent commit
recursively.

Bug: 156585121
Test: python check_gpl_license.py
Change-Id: I93149e8ee7d3e6b9eb0babdd017dcd9fdb10d4c0
2020-05-18 11:30:45 +09:00
Haibo Huang
36981ede3b Merge "Updates gdbclient.py for lldb" am: b5727d3e0e
Change-Id: Ifd61c1c40e1aeeac308a561d5548a589c0837324
2020-05-13 21:29:23 +00:00
Haibo Huang
b5727d3e0e Merge "Updates gdbclient.py for lldb" 2020-05-13 21:11:45 +00:00
Rico Wind
0885f568ce Merge "Revert back to using the default r8 jar for buildtools" am: d19b1fea66
Change-Id: Ifc265f1d64f63b34872bec071691d54238af845a
2020-05-13 09:59:39 +00:00
Rico Wind
d19b1fea66 Merge "Revert back to using the default r8 jar for buildtools" 2020-05-13 09:37:20 +00:00
Rico Wind
34e933850f Revert back to using the default r8 jar for buildtools
We have never actually updated the buildtools version independently of
the normal updates (except updating it to be the same)

If we ever need to update it to a seperate version, that is is easily
accomplished by changing the path.

Bug: b/134507641
Test: m -j55 sdk and run d8 in the sdk zip validating the version
Change-Id: Ib1540b22921e10946ec33076f1db40c50bccac76
2020-05-13 08:45:55 +00:00
Treehugger Robot
8a51def067 Merge "Remove obsolete zlib headers." am: cb5eb1f0b4
Change-Id: Iad6fd1637057198dd81a91eb8b71b6e3c065b218
2020-05-13 00:56:17 +00:00
Treehugger Robot
cb5eb1f0b4 Merge "Remove obsolete zlib headers." 2020-05-13 00:46:09 +00:00
Haibo Huang
07e17073c5 Updates gdbclient.py for lldb
1. Sets up source mapping so that people can run from other directories.
2. Removes PYTHONHOME. It is embedded into the binary.

Change-Id: Ic7a7f1483dc645d890b7e0f3dcbb0ebb169794ac
2020-05-12 16:51:29 -07:00
Elliott Hughes
ace04a05b2 Remove obsolete zlib headers.
Test: builds
Change-Id: I320a6be58e1cb6f82f66d3931a7f55ec6de64605
Merged-In: I320a6be58e1cb6f82f66d3931a7f55ec6de64605
2020-05-12 15:46:41 -07:00
Treehugger Robot
137218a565 Merge "Miscellaneous coding style and output improvements" am: 856b7fc7d1
Change-Id: I8dc99a62f7ba898bdad009f8b55f92f68fe62de6
2020-05-12 20:09:05 +00:00
Treehugger Robot
856b7fc7d1 Merge "Miscellaneous coding style and output improvements" 2020-05-12 19:49:12 +00:00
Chih-hung Hsieh
8d973bd2f8 Merge "Ensure unique name for non-merged modules." am: 489013b6c0
Change-Id: I86334b96620de23598cd957e61c720cd253e419e
2020-05-12 18:24:51 +00:00
Chih-hung Hsieh
489013b6c0 Merge "Ensure unique name for non-merged modules." 2020-05-12 17:37:46 +00:00
Hsin-Yi Chen
0aa48733d0 Move ModuleMerger to namespace header_checker::linker
- Move ModuleMerger from header_checker::repr to header_checker::linker.
- Remove unused ModuleMerger::max_type_id_.

Test: development/vndk/tools/header-checker/tests/test.py
Bug: 147396457
Change-Id: Ib8ed9d1444135871f7a580fb3c5735b219dae97f
2020-05-12 18:22:54 +08:00
utzcoz
0609c877cf Remove unused imports from Main.java
Test: mm.

Change-Id: I22589ca03914833b569c969c011a932f9c564dca
Signed-off-by: utzcoz <utzcoz@gmail.com>
2020-05-09 17:08:36 +08:00
Chih-Hung Hsieh
185052a369 Ensure unique name for non-merged modules.
* Do not emit relative_install_path;
  use default unique module name.
* Copy errors in cargo output to Android.bp.
  Some Rust packages are incomplete at crates.io
  and fail to run through cargo test.
* Apply pyformat.

Bug: 156014698
Test: in external/rust/crates/*, cargo2android.py --run --tests
Change-Id: Ide77ca34e47048a8bc03b18eebbe92fb17666784
2020-05-08 12:31:04 -07:00
Dan Albert
f92680d51a Update gitignore.
Was missing .mypy_cache mainly, but this is a full update from
https://github.com/github/gitignore/blob/master/Python.gitignore.

Test: git status
Bug: None
Change-Id: Ic47242e907cd24a8e58d2ba1d5c3fc2c6d4b7513
2020-05-08 11:41:32 -07:00
Treehugger Robot
2f5f0c7390 Merge "Support repacking super image with virtual AB" am: 04d2e03be7
Change-Id: Ib2697f93cdca0b0472445aecda796b9739271de3
2020-05-08 02:41:38 +00:00
Treehugger Robot
04d2e03be7 Merge "Support repacking super image with virtual AB" 2020-05-08 02:21:49 +00:00
Chih-Hung Hsieh
2f22d1cb80 Miscellaneous coding style and output improvements
* Call print with flush=True to get immediate output to piped files.
* Simplify code with functools.reduce or for-loops.
* Clarify error handling and messages.
* Skip output of empty dependent lists.
* Suppress output of repeated dependent lists.
* Move "revisit" logic from recursive add_non_dev_dependencies to
  a while loop in add_indirect_build_deps.
  This is less efficient, but more complete and easier to understand.
* Align table captions to something like:
    build_deps[k] = # of non-dev-dependent packages of pkg[k]
      dev_deps[k] = # of all dependent packages of pkg[k]
all_build_deps[k] = # of non-dev-dependent ... of pkg[1] to pkg[k]
  all_dev_deps[k] = # of all dependent ... of pkg[1] to pkg[k]

Test: get_rust_pkg.py -h
Test: get_rust_pkg.py -v -show remain syn quote
Test: get_rust_pkg.py -v -show glob libloading
Change-Id: I6171b6be8806bcdd1129f52e7e5ccf7b274e2e8c
2020-05-06 18:22:17 -07:00
Chih-hung Hsieh
15fbb9c2ea Merge "Show number of dependent packages" am: 7dc3f534a0
Change-Id: Ic709dadfe4e5abd629c8e75e549b2a8692fe9fb2
2020-05-06 17:27:42 +00:00
Chih-hung Hsieh
7dc3f534a0 Merge "Show number of dependent packages" 2020-05-06 17:08:42 +00:00
Treehugger Robot
f648351379 Merge "Add METADATA to development: Apache2+BSD+MIT+UNICODE+zlib+CC-BY=NOTICE" am: d8af1d3392
Change-Id: I4972d6fca6d9e8fdee5f394adabd3792415b30c3
2020-05-06 13:57:21 +00:00
Treehugger Robot
d8af1d3392 Merge "Add METADATA to development: Apache2+BSD+MIT+UNICODE+zlib+CC-BY=NOTICE" 2020-05-06 13:45:23 +00:00
Hsin-Yi Chen
3e8b7f96d8 Support repacking super image with virtual AB
Bug: 155702857
Test: repack_super_image --ota-tools ./otatools.zip \
      --misc-info ./misc_info.txt ./super.img product= \
      system=system.img
Change-Id: I03f33969d3c033a47cf123f94d875a4b56d2d343
2020-05-06 16:48:13 +08:00
Yo Chiang
38629e4d29 Merge "repo_pull: Refactor error handling" am: d3639deadf
Change-Id: I27f62d9f0339cbd227056dd699823ff652b97d5b
2020-05-06 03:42:36 +00:00
Yo Chiang
d3639deadf Merge "repo_pull: Refactor error handling" 2020-05-06 03:26:09 +00:00
Chih-Hung Hsieh
783dfd4c64 Show number of dependent packages
* With flag "-show" and a list of package names,
  call crates.io api to count dependent packages.
  * The packages are NOT fetched.
  * Optional dependent packages are not counted.
  * Indirect non-dev dependent packages are counted.
  * Finally all non-dev dependent packages are also
    included in the report.
  * The report is a table like this:

  build_deps[k] = # of non-dev-dependent packages of pkg[k]
  dev_deps[k] = # of all dependent packages of pkg[k]
  all_build_deps[k] = # of non-dev-dependent ... of pkg[1] to pkg[k]
  all_dev_deps[k] = # of all dependent ... of pkg[1] to pkg[k]
    k pkg         build_deps   dev_deps all_build_deps   all_dev_deps
    1 unicode-xid          0          0              0              0
    2 proc-macro2          1          3              0              1
    3 syn                  2        107              0            104
    4 quote                2         18              0            107
    5 remain               4         18              0            107

  Packages are sorted topologically by the non-dev-dependencies.
  The column all_build_deps should be 0 if the topological sort
  did not find cyclic dependency.

* Simplify find_dl_path with a crates.io api call to get max_version.
* Handle urllib.error.HTTPError exception
* Formatted by pyformat.

Test: get_rust_pkg.py -h
Test: get_rust_pkg.py -show syn remain quote
Test: get_rust_pkg.py -v -show remain syn quote

Change-Id: Ib4ece8dd391558fb5fd866b153f30cd2ef59f6b3
2020-05-05 17:13:34 -07:00
Bob Badour
0a0259d1ba Add METADATA to development: Apache2+BSD+MIT+UNICODE+zlib+CC-BY=NOTICE
Bug: 68860345
Bug: 69058154
Bug: 151953481

Test: no code changes
Change-Id: I7d28c14059b6901b742a055d2cbe053104f2cf2e
2020-05-05 13:30:03 -07:00
Yo Chiang
5f451a4676 repo_pull: Refactor error handling
* repo_review.py requests all go through _make_json_post_request()
* _make_json_post_request() gracefully handles exceptions
* _print_error() prints json or plain text response
* Add some docstrings

Test: ./repo_review.py --add-reviewer [invalid username] [query]
Test: ./repo_review.py --add-reviewer [ambiguous username] [query]
Test: ./repo_review.py --delete-reviewer [invalid username] [query]
Test: ./repo_review.py --delete-topic [query]
Change-Id: I900ef416bb4195d6fb4d72b0c4f53f3fd78a6e7e
2020-05-04 03:23:15 +00:00
Treehugger Robot
c8baaa410e Merge "Switch to clang-r383902" am: a0ba9fab45
Change-Id: I039499a777e7dc3bfb46ae23e0205862dfb8cd93
2020-05-01 18:20:31 +00:00
Treehugger Robot
a0ba9fab45 Merge "Switch to clang-r383902" 2020-05-01 18:11:01 +00:00
Yi Kong
bf61605531 Switch to clang-r383902
This change also adapts to llvm::StringRef losing its implicit
conversion to std::string().

Test: ./build-prebuilts.sh
Change-Id: I32e2ca71fde4d39726a5061d641e933121e9bafe
2020-05-01 03:41:51 -07:00
Chih-hung Hsieh
0bb869f863 Merge "Accept and fetch multiple packages" am: 066b315b2c
Change-Id: I1a3f250a7d1747258b94b99a4aca3f0497974277
2020-04-28 17:42:15 +00:00
Chih-hung Hsieh
066b315b2c Merge "Accept and fetch multiple packages" 2020-04-28 17:22:14 +00:00