From c183559d9c40285129d08a1146cfde0982b6c356 Mon Sep 17 00:00:00 2001 From: Salud Lemus Date: Wed, 11 Sep 2019 10:19:30 -0700 Subject: LLVM tools: Updated README.md to include auto LLVM bisection Also includes a section for the script that updates all tryjobs whose status is 'pending' to the result of `cros buildresult`. Also included examples for each script. BUG=None TEST=None Change-Id: I1b6a5096eb0c3fe48d3b4962ce464afee785b4ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1798816 Reviewed-by: Manoj Gupta Tested-by: Salud Lemus --- llvm_tools/README.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'llvm_tools/README.md') diff --git a/llvm_tools/README.md b/llvm_tools/README.md index f0aefce8..abf7a6f9 100644 --- a/llvm_tools/README.md +++ b/llvm_tools/README.md @@ -253,6 +253,39 @@ For help with the command line arguments of the script, run: $ ./llvm_bisection.py --help ``` +### `auto_llvm_bisection.py` + +#### Usage + +This script automates the LLVM bisection process by using `cros buildresult` to +update the status of each tryjob. + +An example when this script would be used to do LLVM bisection overnight +because tryjobs take very long to finish. + +For example, assuming the good revision is 369410 and the bad revision is +369420, then: + +``` +$ ./auto_llvm_bisection.py --start_rev 369410 --end_rev 369420 \ + --last_tested /abs/path/to/last_tested_file.json \ + --extra_change_lists 513590 1394249 \ + --options latest-toolchain nochromesdk \ + --builder eve-release-tryjob +``` + +The example above bisects LLVM between revision 369410 and 369420. If the file +exists, the script resumes bisection. Otherwise, the script creates the file +provided by `--last_tested`. `--extra_change_lists` and `--options` are used for +each tryjob when being submitted. Lastly, the tryjobs are launched for the board +provided by `--builder` (in this example, for the eve board). + +For help with the command line arguments of the script, run: + +``` +$ ./auto_llvm_bisection.py --help +``` + ### `update_tryjob_status.py` #### Usage @@ -319,6 +352,30 @@ $ ./update_tryjob_status.py \ --custom_script /abs/path/to/script.py ``` +### `update_all_tryjobs_with_auto.py` + +#### Usage + +This script updates all tryjobs that are 'pending' to the result provided by +`cros buildresult`. + +For example: + +``` +$ ./update_all_tryjobs_with_auto.py \ + --last_tested /abs/path/to/last_tested_file.json \ + --chroot_path /abs/path/to/chroot +``` + +The above example will update all tryjobs whose 'status' is 'pending' in the +file provided by `--last_tested`. + +For help with the command line arguments of the script, run: + +``` +$ ./update_all_tryjobs_with_auto.py --help +``` + ### `modify_a_tryjob.py` #### Usage -- cgit v1.2.3