From 663dcce7c7b32946bc57e46bae1f1b7370e4fbb2 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Mon, 4 May 2020 12:15:18 -0700 Subject: llvm_tools: add logging to the revert checker Somehow this revert checker is dropping reverts on the floor, which is confusing to me. Log the 'last run' state so it's easier to understand what this checker was thinking. BUG=None TEST=Ran the script Change-Id: I586bbbd35f7d414faebda9068c04f552152891de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2180842 Tested-by: George Burgess Reviewed-by: Tiancong Wang --- llvm_tools/nightly_revert_checker.py | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm_tools') diff --git a/llvm_tools/nightly_revert_checker.py b/llvm_tools/nightly_revert_checker.py index 2a41f8c7..71b5574b 100755 --- a/llvm_tools/nightly_revert_checker.py +++ b/llvm_tools/nightly_revert_checker.py @@ -244,6 +244,7 @@ def main(argv: t.List[str]) -> None: logging.info('Interesting SHAs were %r', interesting_shas) state = _read_state(state_file) + logging.info('Loaded state\n%s', pprint.pformat(state)) def prettify_sha(sha: str) -> tiny_render.Piece: rev = get_llvm_hash.GetVersionFrom(llvm_dir, sha) -- cgit v1.2.3