aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Copy out file from x86_64-unknown-linux-gnuHEADmasterChih-Hung Hsieh2020-10-021-1/+2
| | | | | | | | | * New cargo2android.py calls cargo with this default target for both host and device. Bug: 169872957 Test: .../updater.sh update --refresh --keep_date rust/crates/* Change-Id: Id0ad61572672f0173a38db290cbb4ce7fb8c8aed
* Remove */serde from the FIXME .bp list.Chih-Hung Hsieh2020-09-301-2/+2
| | | | | | | * Now crates/serde has its own post_update.sh to fix Android.bp. Test: tools/external_updater/updater.sh update --refresh --keep_date rust/crates/serde Change-Id: I7ffd8a78b45abda230facd0885e4470aeee6b664
* Add update --refresh and --keep_date flagsChih-Hung Hsieh2020-09-295-14/+38
| | | | | | | | | | | * Use --refresh to update a project with its current version, to check for any missing local changes after the update. * Use --keep_date to not change the last_upgrade_date in METADATA, useful to minimize diff output after a refresh update. Bug: 169725446 Test: .../updater.sh update --refresh --keep_date rust/crates/bitflags Change-Id: I7e0396c2653eb7b4c859a5887a8b1d62fc446910
* Use pylint3 hookThiébaud Weksteen2020-09-2911-14/+38
| | | | | | | | | | | The repohook configuration currently tries to force the use of a specific executable name for pylint3. Let repohook find the most appropriate executable by using the pylint3 hook instead. Fix the current warnings raised. Test: repo upload . Change-Id: I653aa921bbc8d2aec350b827c6828c1b761821e9
* Merge "Add myself to the external crates reviewer list"Thiébaud Weksteen2020-09-291-0/+1
|\
| * Add myself to the external crates reviewer listThiébaud Weksteen2020-09-281-0/+1
| | | | | | | | | | Test: atest Change-Id: I2b74bc842bbdf7b0df2dcebf3a52eb67ef0c3ff0
* | Do not use alpha/beta rust releases.Chih-Hung Hsieh2020-09-281-4/+45
|/ | | | | | | | | | | | | | * Print a message if the latest rust package release number contains the -alpha or -beta suffix. Ignore it and find the release with newest release number, not yanked, and without the -alpha or -beta suffix. Bug: 169535028 Test: tools/external_updater/updater.sh update rust/crates/nom Test: ... check rust/crates/clap Test: ... check rust/crates/pin-project Test: ... check rust/crates/bitflags Change-Id: Id1553cfe451a5b575ef14109e88a94bf76f048b5
* Set hashtag for external_updater changesHaibo Huang2020-09-254-10/+41
| | | | | | Bug: 169343230 Test: ./updater.sh update rust/crates/regex --force --branch_and_commit --push_change Change-Id: I00a383eb69cbbcc21dd806ffcf6ea01cf8971105
* Merge "git_utils: fix parsing of remote tags"Treehugger Robot2020-09-231-4/+2
|\
| * git_utils: fix parsing of remote tagsMatthias Maennich2020-09-221-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The locally defined function parse_remote_tag has a subtle bug that leads to incorrect results. string.lstrip(s) and string.rstrip(s) are left/right stripping the characters in s. That can eat into the actual tagname. E.g. "refs/tags/elfutils-0.180".lstrip("refs/tags") yields "lfutils-0.180. Fix that by replacing the implementation with a proper regex that extracts the tag. Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: I13d8e3caebadefb0b9b568bea08655c23a6fadfd
* | Copy cargo build output files to ./outChih-Hung Hsieh2020-09-221-0/+15
|/ | | | | | | | | | | | | * Copy from ./target.tmp to ./out before they are removed. Bug: 169119563 Bug: 169118732 Bug: 169119477 Test: tools/external_updater/updater.sh update rust/crates/bindgen Test: tools/external_updater/updater.sh update rust/crates/protobuf Test: tools/external_updater/updater.sh update rust/crates/clang-sys Test: tools/external_updater/updater.sh update rust/crates/proc-macro-nested Change-Id: Ib4b4a796142302999c42c97ddd5d54d6da07046f
* Regenerate Android.bp for external rust projectsChih-Hung Hsieh2020-09-103-0/+79
| | | | | | | | | | | | | | | * Rust projects have both Android.bp and Cargo.toml. * When called from update_packages.sh, development/scripts/cargo2android.py is used. * When regen_bp.sh is called alone, use cargo2android.py in PATH. * Append an error note to the new .bp file, if the old one is known to have manual changes. Manual edit/test is required. Bug: 168167364 Test: tools/external_updater/updater.sh update rust/crates/<some_pkg> Change-Id: I9c80daae89a207f25e8ca541425acaefc85c87ab
* Fix Rust METADATA URLs when updating it am: 63a9c391fdChih-Hung Hsieh2020-08-272-2/+20
|\ | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1410953 Change-Id: I3cdd1b6f62f5d8433a8be2edb3659f51f6c6f5da
| * Fix Rust METADATA URLs when updating itChih-Hung Hsieh2020-08-252-2/+20
| | | | | | | | | | | | | | | | | | * To follow the official METADATA requirement. * Fix some gpylint warnings. Bug: 166324735 Test: tools/external_updater/updater.sh update rust/crates/<pkg> Change-Id: I3a4f19d57f1d148d640a078773e07990710894ca
* | Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as mergedXin Li2020-08-270-0/+0
|\ \ | |/ |/| | | | | | | Bug: 166295507 Merged-In: I88941addcf620f5369076ce7954fc1a8009ff7b3 Change-Id: I90dad016128bc5831ce673a2a581da3287932e74
| * Fix documentation: use 'update' for updating a library am: e8c98de525 am: ↵Matthias Maennich2020-07-061-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | ef402ac6fc Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1354629 Change-Id: I88941addcf620f5369076ce7954fc1a8009ff7b3
| * \ [Updater] Copy and keep README.android am: ff06a4a3bf am: a77ebf8a1fChih-Hung Hsieh2020-06-231-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1346942 Change-Id: I9b86c8b67322cf565b79267a01d71d315da56371
| * \ \ Remove remote if it is not consistent with METADATA am: a08fb60ea4 am: ↵Haibo Huang2020-05-307-70/+92
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 7b02ba8a37 Change-Id: I5d6cf47c2748d7c18c09567de010a19b5c34cd61
| * \ \ \ Refactor updater for more type annotation am: 329e681293 am: 9816420500Haibo Huang2020-05-2912-419/+388
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Change-Id: Ica4c3f3d10345f85a3b210b13e365492e69e8b0e
| * \ \ \ \ Use crates.io API to get newest package version am: 5015d5b03a am: 3c756eb895Chih-Hung Hsieh2020-05-051-24/+6
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibbb60e54ec23456dc31389bdf90bda536a54c6e3
| * \ \ \ \ \ Use github tags if releases are not available am: 065d1ba358 am: 232a6bd898Haibo Huang2020-04-241-12/+35
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibbee0b91d4289f423adad2fa8c11629ecdb811c4
| * \ \ \ \ \ \ Prefers the versions with the same length am: 3ffcec14f6 am: 30a1886b8fHaibo Huang2020-04-102-7/+11
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8f94a8043366336de07dea31e3ecc6efaf782f4c
| * \ \ \ \ \ \ \ [automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li2020-04-100-0/+0
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stag-aosp-master am: 372a3777bd -s ours am skip reason: subject contains skip directive Change-Id: I238666e94471763ac3e6e7569eb6f7eed474f32f
| * \ \ \ \ \ \ \ \ Skip yanked packages and use newest version number. am: e85b7f345e am: ↵Chih-Hung Hsieh2020-04-031-4/+19
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a8183056b7 Change-Id: I734e16ec1021249ca0725da2b20cda079461e252
| * \ \ \ \ \ \ \ \ \ Merge "Starts a README.md for external_updater" am: 17d11c8770 am: d470c1b34dHaibo Huang2020-03-271-0/+138
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0a0e60c4c5b88148077b5ccf6269f64a53a85dc4
| * \ \ \ \ \ \ \ \ \ \ Add crates_updater, similar to git*_updater am: 11cf9960d0 am: 68ccc43e41Chih-Hung Hsieh2020-03-235-1/+101
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I79c795849dbde6040d9fe65b7eefcf802b52462b
| * \ \ \ \ \ \ \ \ \ \ \ [Updater] Fix ANDROID_BUILD_TOP am: 081300e836 am: 7063a6942dandroid-mainline-11.0.0_r1android11-mainline-releaseandroid11-devHaibo Huang2019-11-111-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d98145b82d Change-Id: Idada900c9cde5691aa9db697bb7d990758701c56
| * \ \ \ \ \ \ \ \ \ \ \ \ Merge "[Updater] Include owners file in email" am: b77119e0f5 am: c3f92dc0f1Haibo Huang2019-11-091-2/+20
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 15fe5d287d Change-Id: If320f0fc0f2479cbc8d468795e2fd944e77320e2
| * \ \ \ \ \ \ \ \ \ \ \ \ \ [Updater] Fix warning am: 19ec05f868 am: 1a30d74a6f am: b25d938d21Haibo Huang2019-07-091-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e574255500 Change-Id: I0a62ca3cdaff8be83831d82d0be8f5c9dbcc3344
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ [Updater] Do not use color if stdout is not tty am: 57a3bdcdc7 am: ↵Haibo Huang2019-07-091-0/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 83dbc07985 am: b9ee9873bb am: ccd86da7c9 Change-Id: I989bc906ea4ce770e1ee917cc3f7f0199c1bc630
* | \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Use weighted random selection; add project reviewers am: aa48555b73Chih-Hung Hsieh2020-08-225-82/+297
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1406253 Change-Id: I0a22bd327aa02a411caa1cae261bed9e3e4c5fba
| * | | | | | | | | | | | | | | | | Use weighted random selection; add project reviewersChih-Hung Hsieh2020-08-205-82/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow Rust reviewers to have different number (quota) of randomly assigned projects. * People owning K projects got their quota reduced by K. * Add more project owners (reviewers). * Sort a set of reviewers before adding all of them. * Add and separate unit tests. * Add TEST_MAPPING with the reviewers presubmit test. * Separate reviewers test in its own file; old external_updater test does not run with atest or TH. Bug: 162988933 Test: out/host/*/testcases/*/*/external_updater_test Test: out/host/*/testcases/*/*/external_updater_reviewers_test Test: out/.../bin/external_updater update --branch_and_commit --push_change <some_project> Change-Id: I375bf3d216f213452aacbedf844d1a1015310e7b
* | | | | | | | | | | | | | | | | | Allow multiple reviewers for a CL per project am: 4f2dd2310fChih-Hung Hsieh2020-08-203-13/+89
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1405688 Change-Id: I5e2e69f6afa070163e47142a26f25d85bed07c13
| * | | | | | | | | | | | | | | | | Allow multiple reviewers for a CL per projectChih-Hung Hsieh2020-08-193-13/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * For a List of reviewers, one will be randomly selected. * For a Set of reviewers, all will be selected. * Add some unit tests for reviewers and fix some gpylint warnings. Bug: 162988933 Test: out/.../bin/external_updater update --branch_and_commit --push_change <some_project> Test: out/host/linux-x86/testcases/external_updater_test/x86_64/external_updater_test Change-Id: I4fc226ed4a9fde59371f217a4f32545a9f694616
* | | | | | | | | | | | | | | | | | Add default Rust project reviewers and Test tag am: b298bcd766Chih-Hung Hsieh2020-08-194-2/+58
|\| | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1403830 Change-Id: I79b01f0365c3079fb88e159fcfa3441d28b4a62d
| * | | | | | | | | | | | | | | | Add default Rust project reviewers and Test tagChih-Hung Hsieh2020-08-184-2/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add default reviewers for a few external/rust/crates projects; more could be added later. When a rust project is not found in the map, a random reviewers is picked from a list. * Add a Test tag to git commit message. Bug: 162988933 Test: out/.../bin/external_updater update --branch_and_commit --push_change <some_project> Change-Id: I3f04dce0b801e4f33980a57347a2affd1438ead0
* | | | | | | | | | | | | | | | | Fix documentation: use 'update' for updating a library am: e8c98de525Matthias Maennich2020-07-061-1/+1
|\| | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1354629 Change-Id: I24963b1d7603f24e90de71368c48a5d95aaf6769
| * | | | | | | | | | | | | | | Fix documentation: use 'update' for updating a libraryandroid-r-beta-3android-r-beta-2Matthias Maennich2020-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: Iea0e44206a49f90ccf3f5107f1253e4b493ce54d
* | | | | | | | | | | | | | | | [Updater] Copy and keep README.android am: ff06a4a3bfChih-Hung Hsieh2020-06-231-0/+1
|\| | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/tools/external_updater/+/1346942 Change-Id: Icc335b9fa84265fda5a991e881ce6fe8e6aaef88
| * | | | | | | | | | | | | | [Updater] Copy and keep README.androidChih-Hung Hsieh2020-06-221-0/+1
|/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: local run Change-Id: I6ea8296ee24ff7a06460e2ad92f41be9eb443d85
* | | | | | | | | | | | | | Remove remote if it is not consistent with METADATA am: a08fb60ea4Haibo Huang2020-05-307-70/+92
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibb38b4766e6add9f02d1f1925182040be0688481
| * | | | | | | | | | | | | Remove remote if it is not consistent with METADATAHaibo Huang2020-05-297-70/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3166b87445dfdd5f3966086e32f71e7f6e69e730
* | | | | | | | | | | | | | Refactor updater for more type annotation am: 329e681293Haibo Huang2020-05-2912-419/+388
|\| | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0cda2051707398870d0fbdf87b4e5ced0684491a
| * | | | | | | | | | | | Refactor updater for more type annotationHaibo Huang2020-05-2912-419/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3ab3463c6f1fd1cdc4df099e8dff21685cbc722b
* | | | | | | | | | | | | Use crates.io API to get newest package version am: 5015d5b03aChih-Hung Hsieh2020-05-051-24/+6
|\| | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Change-Id: If605ba622332c3e944d5af9fdfdb760d9e86f6a6
| * | | | | | | | | | | Use crates.io API to get newest package versionChih-Hung Hsieh2020-05-041-24/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: updater.sh update rust/crates/<some_package> Change-Id: Id4f712d4ab3ed732cf84ebb9a727195e0c8a2a6a
* | | | | | | | | | | | Use github tags if releases are not available am: 065d1ba358Haibo Huang2020-04-241-12/+35
|\| | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | Change-Id: I92f06c0dfc8ff6dabeef1579c5ef1c062ddc8fcd
| * | | | | | | | | | Use github tags if releases are not availableHaibo Huang2020-04-241-12/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To deal with situations like libpcap Change-Id: I360c3c859d9e9a551795104dda70fb66bbe11686
* | | | | | | | | | | Prefers the versions with the same length am: 3ffcec14f6Haibo Huang2020-04-102-7/+11
|\| | | | | | | | | | | |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | Change-Id: Iad78e0a18a09af622d4d3e58487440f3b681808d
| * | | | | | | | | Prefers the versions with the same lengthHaibo Huang2020-04-102-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A version libcap-2.33 should be better than libcap-20071031 Change-Id: Ieeb6d4b953112a03f64fdac450c9a571015a55ab