Skip to content

Commit

Permalink
Crash script when one run fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Schesch committed May 5, 2024
1 parent 757f3ab commit 264e104
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ clean-local:

check-merges-reproducibility:
@echo "Running replay_merge for each idx in parallel..."
@tail -n +2 $(CSV_RESULTS) | awk -F, '{print $$1}' | while read idx; do \
python3 src/python/replay_merge.py --merges_csv $(CSV_RESULTS) -delete_workdir --idx $$idx; \
@set -e; \
tail -n +2 $(CSV_RESULTS) | awk -F, '{print $$1}' | while read idx; do \
python3 src/python/replay_merge.py --merges_csv $$(CSV_RESULTS) --delete_workdir --idx $$idx; \
done

protect-repos:
find repos -mindepth 1 -type d -exec chmod a-w {} +

Expand Down
1 change: 1 addition & 0 deletions src/python/replay_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from loguru import logger

logger.add("replay_merge.log", mode="a")
logger.add(sys.stdout, colorize=True)


# pylint: disable=too-many-arguments, too-many-locals
Expand Down

0 comments on commit 264e104

Please sign in to comment.