This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure repo is up-to-date when trying to build revisions
Summary: The repository is in no way guaranteed to be up-to-date when the revision handler is run, and since we have workers on multiple machines, the listener may have been triggered by a commit we don't have yet. This makes build_revision update the repo before trying to get a diff, which should avoid this inconsistent scenario. This pattern is also employed by the green build listener. There is certainly a risk of races to update/clone, but from what I can tell git/hg should be safe for multi-process use by default. From what I can tell, this should resolve ~14k crashes in Sentry. Some errors are still possible (races to clone being one), but they should no worse than our current failures and much much rarer. Test Plan: None Reviewers: vishal, josiah Reviewed By: josiah Subscribers: josiah, changesbot, wwu Differential Revision: https://tails.corp.dropbox.com/D97481
- Loading branch information
Showing
5 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters