Skip to content

Commit

Permalink
bots: Minimize races filing issues for bots
Browse files Browse the repository at this point in the history
We don't need to file or check for these issues on every iteration
through the .tasks script. Lets start doing it one in every 10 times.

Closes #7825
  • Loading branch information
stefwalter authored and martinpitt committed Oct 6, 2017
1 parent 9d58d69 commit af2e934
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .tasks
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,24 @@
# Cockpit bots.

set -ex

# Scan for all tests
bots/tests-scan

# When run automated, randomize to minimize stampeding herd
if [ -t 0 ]; then
chance=10
else
chance=$(shuf -i 0-10 -n 1)
fi

# File issues for these tasks
bots/po-trigger
bots/image-trigger
bots/npm-trigger
bots/naughty-trigger
if [ $chance -gt 9 ]; then
bots/po-trigger
bots/image-trigger
bots/npm-trigger
bots/naughty-trigger
fi

# Any tasks related to issues
bots/issue-scan

0 comments on commit af2e934

Please sign in to comment.