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

plz/watch: Increase debounce interval to prevent double-builds. #602

Merged
merged 1 commit into from
Apr 20, 2019

Conversation

katzdm
Copy link
Contributor

@katzdm katzdm commented Apr 20, 2019

With one of my services I'm testing with, I noticed that the service would sometimes be restarted twice, for the same file-change. Doubling the debounce interval fixes the issue.

With one of my services I'm testing with, I noticed that the service
would sometimes be restarted twice, for one file-change. Doubling the
debounce interval seems to fix the issue.
@katzdm
Copy link
Contributor Author

katzdm commented Apr 20, 2019

I was able to reproduce this issue locally on my Mac, but resolved it by:

  • brew install protobuf
  • Bumped version of protoc to 3.7.1 in //third_party/proto/BUILD

Seems like this test failure is maybe a problem with the CircleCI Docker image, though? Some research suggests that adding protobuf or protobuf-dev to the image might help.

Not sure why this is just happening now, though :-)

@peterebden
Copy link
Member

Computers, huh :)
Not sure how that test ever passed in that image. That's a classic developer excuse...

This change makes sense, anyway. There's obviously a tradeoff but 100ms is still pretty reasonable, given there isn't an obviously better way of resolving the actual problem.

@peterebden peterebden merged commit cf9b4ae into thought-machine:master Apr 20, 2019
@katzdm katzdm deleted the increase-debounce branch April 20, 2019 20:25
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