-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing FSEvents code from FBCrashLogNotifier
Summary: ## Context As mentioned [here](https://fb.workplace.com/groups/1042353022615812/permalink/2767866986731065/) by RE prod eng, they freqently kill fseventsd when it starts using too many resources. They don't currently do anything to ensure that it restarts correctly, and it doesn't appear as though they have it in their priorities. What this means for us, is CrashLog collection is extremely unreliable (seems like ~30% of the time FSEvents is down), which means we can't observe the diagnostics folders. ## This diff - Strips FBCrashLogNotifier of FSEvents logic, and funnels everything into a `resolveUntil` block which is effectively polling the known diagnostics locations. - Fixes a bug(?) where the polling implementation wasn't handling the `onlyNew` flag. I don't think this is an issue in practice as I'm not seeing anywhere in the code where we actually want to collect older crashlogs. - Updates the FBSimulatorControlTests to target MacOSX, and replaces the assertion for iPhone8 to iPhone16 (which is something we actually have). Differential Revision: D68713530 fbshipit-source-id: 1d9907af3dbf2da51de345d1c58cb0d2457062d0
- Loading branch information
1 parent
83f6ee7
commit b9f96bc
Showing
3 changed files
with
4 additions
and
140 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