Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a21d0e7

Browse files
committed
reduce no_output_timeout to detect when orca freezes
1 parent d6543bf commit a21d0e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
- run:
123123
name: Run image tests
124124
command: ./.circleci/orca_generate.sh
125+
no_output_timeout: 2m
125126
- store_artifacts:
126127
path: build
127128
destination: /

.circleci/orca_generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ find $TEST_IMAGES -type f -name "*.png" -printf "%f\n" | \
4949
# sort | \
5050
# head -n 20 | \
5151
# xargs -n1 -P16 -I {} bash -c "echo {} && ./node_modules/.bin/pixelmatch $1/{} $2/{} diff/{} 0 true" | tee results.txt
52-
xargs -n1 -P8 -I {} bash -c "compare -verbose -metric AE $TEST_IMAGES/{} $BASELINES/{} $DIFF_IMAGES/{} 2> $DIFF_IMAGES/{}.txt"
52+
xargs -n1 -P`nproc` -I {} bash -c "compare -verbose -metric AE $TEST_IMAGES/{} $BASELINES/{} $DIFF_IMAGES/{} 2> $DIFF_IMAGES/{}.txt"
5353

5454
CODE=$(grep -R "all: [^0]" $DIFF_IMAGES/ | wc -l)
5555
grep -l -R "all: [^0]" $DIFF_IMAGES/ | gawk '{match($0, /diff\/([^.]*)/, arr); print arr[1]}'

0 commit comments

Comments
 (0)