aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalud Lemus <saludlemus@google.com>2019-09-11 10:19:30 -0700
committerSalud Lemus <saludlemus@google.com>2019-09-13 16:49:59 +0000
commitc183559d9c40285129d08a1146cfde0982b6c356 (patch)
tree85318421caf6856f23a49e811f6128c1e27faaf0
parent97c1e1c7d4a07f517f4ca7e10da9e60e35778876 (diff)
downloadtoolchain-utils-c183559d9c40285129d08a1146cfde0982b6c356.tar.gz
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 <manojgupta@chromium.org> Tested-by: Salud Lemus <saludlemus@google.com>
-rw-r--r--llvm_tools/README.md57
1 files changed, 57 insertions, 0 deletions
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