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

Skip to content

Commit d23f8ed

Browse files
committed
support 3 digit parallelism number
1 parent a21d0e7 commit d23f8ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/orca_generate.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ else
3232
fi
3333

3434
ls $MOCKS/*.json | deterministic_shuffle > /tmp/all
35-
split -d -a1 -n l/$CIRCLE_NODE_TOTAL /tmp/all /tmp/queue
35+
split -d -a3 -n l/$CIRCLE_NODE_TOTAL /tmp/all /tmp/queue
36+
37+
NODE_QUEUE="/tmp/queue$(printf "%03d" $CIRCLE_NODE_INDEX)"
3638

3739
echo ""
3840
echo "Generating test images"
39-
cat /tmp/queue$CIRCLE_NODE_INDEX | awk '!/mapbox/' | \
41+
cat $NODE_QUEUE | awk '!/mapbox/' | \
4042
# Shuffle to distribute randomly slow and fast mocks
4143
deterministic_shuffle | \
4244
# head -n 10 | \

0 commit comments

Comments
 (0)