Skip to content

Commit

Permalink
canary.py: skip Bazel non-deterministic logs in hash
Browse files Browse the repository at this point in the history
  • Loading branch information
samuela committed Sep 17, 2023
1 parent 746d2a7 commit c9ea914
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ def run(cmd_args) -> ProcessResult:
last_10_log_lines_pure = re.sub(r"/nix/store/\w{32}", "",
last_10_log_lines_pure)

# Skip Bazel intermediate, non-deterministic log output. See https://github.com/NixOS/nixpkgs/issues/255049.
last_10_log_lines_pure = re.sub(r"> \[[,\d+]* / [,\d+]*\] .*", "",
last_10_log_lines_pure)
last_10_log_lines_pure = re.sub(r"> INFO:.*", "", last_10_log_lines_pure)

# Note that we don't include the nixpkgs commit, since that changes very
# frequently and would likely create duplicate issues.
logs_tag = hash(
Expand Down

0 comments on commit c9ea914

Please sign in to comment.