-
Notifications
You must be signed in to change notification settings - Fork 147
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
fix(shorebird_cli): fix hangs in patch command output #1647
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1647 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 156 156
Lines 4911 4914 +3
=========================================
+ Hits 4911 4914 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
} | ||
|
||
Future<PathHashes> fileHashes(File archive) async { | ||
return Isolate.run(() { |
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.
💯
var oldPathHashes = await fileHashes(File(oldArchivePath)); | ||
var newPathHashes = await fileHashes(File(newArchivePath)); | ||
|
||
oldPathHashes = await _updateHashes( | ||
archivePath: oldArchivePath, | ||
pathHashes: oldPathHashes, | ||
); | ||
_updateHashes( | ||
newPathHashes = await _updateHashes( | ||
archivePath: newArchivePath, | ||
pathHashes: newPathHashes, | ||
); |
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.
Can we do these in parallel or do they need to be done in series?
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.
They could be done in parallel, will update
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.
Will do in a future PR so to get this in the current release.
Description
Both Android and iOS patch commands were hanging when checking for unpatchable diffs. This change
Type of Change