-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bots: Minimize races filing issues for bots #7825
bots: Minimize races filing issues for bots #7825
Conversation
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.
bots/image-trigger | ||
bots/npm-trigger | ||
bots/naughty-trigger | ||
if [ $chance -gt 9 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need -ge
here, otherwise this will never be true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure? I think shuf -i 1-10
produces the number 10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, indeed it does. (That's unlike random(10)
in most other places).
bots/tests-scan | ||
|
||
# When run automated, randomize to minimize stampeding hurd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"herd" or "hurt"? (the former, I suppose)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The typo is not that important, can be fixed during merge. The shuf is correct after all, sorry for the noise.
bots/image-trigger | ||
bots/npm-trigger | ||
bots/naughty-trigger | ||
if [ $chance -gt 9 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, indeed it does. (That's unlike random(10)
in most other places).
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.