Lines Matching +full:update +full:- +full:commit +full:- +full:hash
5 These scripts helps automate tasks such as updating the LLVM next hash,
9 git hash of LLVM from either google3, top of trunk, or for a specific SVN
21 This script is used for updating a package's LLVM hash (sys-devel/llvm,
22 sys-libs/compiler-rt, sys-libs/libcxx, and sys-libs/llvm-libunwind)
23 and then run tests after updating the git hash. There are three ways to test
33 --is_llvm_next \
34 --llvm_version tot \
36 --options nochromesdk latest-toolchain \
37 --builders kevin-release-tryjob nocturne-release-tryjob
40 The above example would update the packages' `LLVM_NEXT_HASH` to the top of
41 trunk's git hash and would submit tryjobs for kevin and nocturne boards, passing
42 in 'nochromesdk' and 'latest-toolchain' for each tryjob.
47 $ ./update_packages_and_run_tests.py --help
55 --llvm_version google3 \
60 the git hash of revision 367622 and test with recipe builders:
64 --is_llvm_next \
65 --llvm_version 367622 \
67 --options -nocanary \
68 --builders chromeos/toolchain/kevin-llvm chromeos/toolchain/nocturne-llvm
80 by the `--failure_mode` option.
89 --update_packages sys-devel/llvm sys-libs/compiler-rt \
90 --is_llvm_next \
91 --llvm_version google3 \
92 --failure_mode disable_patches
95 The example above would update sys-devel/llvm and sys-libs/compiler-rt's
96 `LLVM_NEXT_HASH` to the latest google3's git hash of LLVM. And the change list
97 may include patches that were disabled for either sys-devel/llvm or
98 sys-libs/compiler-rt.
103 $ ./update_chromeos_llvm_hash.py --help
106 For example, to update `LLVM_HASH` to top of trunk of LLVM:
110 --update_packages sys-devel/llvm sys-libs/compiler-rt \
111 --llvm_version tot \
112 --failure_mode disable_patches
115 For example, to create a roll CL to the git hash of revision 367622:
119 --update_packages sys-devel/llvm sys-libs/compiler-rt \
120 sys-libs/libcxx sys-libs/llvm-libunwind \
121 'dev-util/lldb-server' \
122 --llvm_version 367622 \
123 --failure_mode disable_patches
136 $ ./patch_manager.py --help
143 --svn_version 367622 \
144 --patch_metadata_file /abs/path/to/patch/file \
145 --src_path /abs/path/to/src/tree \
146 --failure_mode continue
153 --svn_version 367622 \
154 --patch_metadata_file /abs/path/to/patch/file \
155 --src_path /abs/path/to/src/tree \
156 --failure_mode disable_patches
163 --svn_version 367622 \
164 --patch_metadata_file /abs/path/to/patch/file \
165 --src_path /abs/path/to/src/tree \
166 --failure_mode bisect_patches \
167 --good_svn_version 365631
175 --svn_version 367622 \
176 --patch_metadata_file /abs/path/to/patch/file \
177 --src_path /abs/path/to/src/tree \
178 --failure_mode bisect_patches \
179 --good_svn_version 365631 \
180 --continue_bisection True
198 --parallel 3 \
199 --start_rev 369410 \
200 --end_rev 369420 \
201 --last_tested /abs/path/to/tryjob/file/ \
202 --extra_change_lists 513590 \
203 --builder eve-release-tryjob \
204 --options latest-toolchain
208 revision 369410 and launching 3 tryjobs in between if possible (`--parallel`).
209 Here, the `--last_tested` path is a path to a JSON file that does not exist. The
210 tryjobs are tested on the eve board. `--extra_change_lists` and `--options`
216 $ ./llvm_bisection.py --help
224 update the status of each tryjob.
233 $ ./auto_llvm_bisection.py --start_rev 369410 --end_rev 369420 \
234 --last_tested /abs/path/to/last_tested_file.json \
235 --extra_change_lists 513590 1394249 \
236 --options latest-toolchain nochromesdk \
237 --chromeos_path /path/to/chromeos/chroot \
238 --builder eve-release-tryjob
243 provided by `--last_tested`. `--extra_change_lists` and `--options` are used for
245 provided by `--builder` (in this example, for the eve board).
250 $ ./auto_llvm_bisection.py --help
264 For example, to update a tryjob's 'status' to 'good':
268 --set_status good \
269 --revision 369412 \
270 --status_file /abs/path/to/tryjob/file
273 The above example uses the file in `--status_file` to update a tryjob in that
279 $ ./update_tryjob_status.py --help
282 For example, to update a tryjob's 'status' to 'bad':
286 --set_status bad \
287 --revision 369412 \
288 --status_file /abs/path/to/tryjob/file
291 For example, to update a tryjob's 'status' to 'pending':
295 --set_status pending \
296 --revision 369412 \
297 --status_file /abs/path/to/tryjob/file
300 For example, to update a tryjob's 'status' to 'skip':
304 --set_status skip \
305 --revision 369412 \
306 --status_file /abs/path/to/tryjob/file
309 For example, to update a tryjob's 'status' based off a custom script exit code:
313 --set_status custom_script \
314 --revision 369412 \
315 --status_file /abs/path/to/tryjob/file \
316 --custom_script /abs/path/to/script.py
334 --modify_a_tryjob add \
335 --revision 369416 \
336 --extra_change_lists 513590 \
337 --options latest-toolchain \
338 --builder eve-release-tryjob \
339 --status_file /abs/path/to/tryjob/file
343 passing in the extra arguments (`--extra_change_lists` and `--options`). The
344 tryjob is then inserted into the file passed in via `--status_file`.
349 $ ./modify_a_tryjob.py --help
356 --modify_a_tryjob remove \
357 --revision 369412 \
358 --status_file /abs/path/to/tryjob/file
365 --modify_a_tryjob relaunch \
366 --revision 369418 \
367 --status_file /abs/path/to/tryjob/file
377 hash of LLVM, the git hash of google3, or a specific git hash of a SVN version.
378 It also has other functions when dealing with a git hash of LLVM.
382 For example, to retrieve the top of trunk git hash of LLVM:
390 For example, to retrieve the git hash of google3:
398 For example, to retrieve the git hash of a specific SVN version:
420 ~> ./git_llvm_rev.py --llvm_dir llvm-project-copy/ --rev r380000
422 ~> ./git_llvm_rev.py --llvm_dir llvm-project-copy/ --sha 6f635f90929da9545dd696071a829a1a42f84b30
424 ~> ./git_llvm_rev.py --llvm_dir llvm-project-copy/ --sha origin/some-branch
428 **Tip**: if you put a symlink called `git-llvm-rev` to this script somewhere on
429 your `$PATH`, you can also use it as `git llvm-rev`.
436 copies the patches into patch folders of the packages. This tool supports both git hash
442 ./get_upstream_patch.py --chromeos_path /abs/path/to/chroot --start_sha llvm
443 --sha 174c3eb69f19ff2d6a3eeae31d04afe77e62c021 --sha 174c3eb69f19ff2d6a3eeae31d04afe77e62c021
444 --differential D123456
449 script creates a local patch. Use --create_cl option to create a CL instead. For
450 more information, please see the `--help`
458 This script reports reverts which happen 'across' a certain LLVM commit.
461 commit history (where `a -> b` notes that `b` is a direct child of `a`):
463 123abc -> 223abc -> 323abc -> 423abc -> 523abc
466 323abc. More generally, a revert A of a parent commit B is considered to be
467 'across' a commit C if C is a parent of A and B is a parent of C.
472 ./revert_checker.py -C llvm-project-copy 123abc 223abc 323abc
483 last run. If so, it either automatically cherry-picks the reverts, or sends
486 Usage example for cherry-picking:
489 cherry-pick
490 --state_file state.json \
491 --llvm_dir llvm-project-copy \
492 --chromeos_dir ../../../../
493 --reviewers=chromium-os-mage@google.com
500 --state_file state.json \
501 --llvm_dir llvm-project-copy \
502 --chromeos_dir ../../../../
508 gs://chromeos-toolchain-artifacts/clang-crash-diagnoses and sends them to 4c for
514 $ ./bisect_clang_crashes.py --4c 4c-cli --state_file ./output/state.json
521 jobs, please refer to go/4c-cli.
531 $ ./upload_lexan_crashes_to_forcey.py --4c 4c-cli \
532 --state_file ./output/state.json
539 jobs, please refer to go/4c-cli.
542 date. This can be done by running this tool *once* with a `--last_date` flag.
548 This tool exists to help devs reason about `-Werror` instances that _would_
556 --directory=${repo}/out/sdk/tmp/portage/dev-cpp/gtest-1.13.0-r12/cros-artifacts
563 This script exists to help users fill in the llvm-next testing matrix. It's
568 $ ./fetch_cq_size_diff.py --image gs \
569 gs://chromeos-image-archive/asurada-release/R122-15712.0.0/image.zip
570 gs://chromeos-image-archive/asurada-cq/R122-15712.0.0-92036-8761629109681962289/image.zip
577 $ ./fetch_cq_size_diff.py --image cl \
578 https://chromium-review.googlesource.com/c/chromiumos/overlays/board-overlays/+/5126116/3