Skip to content

Commit

Permalink
[ci] Run weekly check-db on whole dataset (#838)
Browse files Browse the repository at this point in the history
* [ci] Run weekly check-db on whole dataset

* Fix unit test workflow
  • Loading branch information
ninjaahhh authored Mar 8, 2020
1 parent 5984a76 commit e821bb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/nightly-check-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
- name: Check DB
run: |
height=$(python quarkchain/tools/db_browser.py --cluster_config=`pwd`/mainnet/singularity/cluster_config_template.json root_print_tip 2> /dev/null | grep "height" | awk "{print \$2}" | sed "s/,$//")
end=$(( height - 100000 ))
day_of_week=`date +%u`
end=$(( day_of_week == 7 ? 0 : height - 100000 )) # run whole dataset on Sunday
echo "Checking: $height -> $end"
QKC__QUARKCHAIN__DISABLE_POW_CHECK=True ./run_cluster.sh \
--check_db=True \
Expand Down

0 comments on commit e821bb1

Please sign in to comment.