Skip to content
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

Conversation

stefwalter
Copy link
Contributor

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.

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
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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
Copy link
Member

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)

Copy link
Member

@martinpitt martinpitt left a 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
Copy link
Member

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).

@martinpitt martinpitt closed this in af2e934 Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants