Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size checker fails when run against empty commits #7

Open
davidrusu opened this issue May 24, 2022 · 0 comments
Open

Size checker fails when run against empty commits #7

davidrusu opened this issue May 24, 2022 · 0 comments

Comments

@davidrusu
Copy link

https://github.com/maidsafe/sn_consensus/runs/6574526014?check_suite_focus=true

I created an empty commit using git commit --allow-empty to trigger a version bump and the size checker failed with exit code 1:

Run size=$(git diff --stat origin/master \
  size=$(git diff --stat origin/master \
  | grep -v .lock \
  | awk -F"|" '{ print $2 }' \
  | awk '{ print $1 }' \
  | sed '/^$/d' \
  | paste -sd+ - \
  | bc)
  
  echo "size=${size}" >> $GITHUB_ENV
  echo ""
  echo "Total lines changed (note: *.lock files are excluded from this count): "
  echo $size
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    CARGO_TERM_VERBOSE: true
    RUST_BACKTRACE: 1
    RUSTFLAGS: -D warnings
Error: Process completed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant