Skip to content

Conversation

@crwood
Copy link
Member

@crwood crwood commented Nov 12, 2021

This PR adds some parsing/monitoring routines for tracking individual file Magic-Folder upload/download operations, subsequently enabling progress-indicators for Magic-Folder upload operations (displayed in the form of a text-based percentage (e.g., "Syncing (75%)") in the "Status" column for each folder) and reinstating desktop notifications for newly-updated files. Due to current limitations with both Tahoe-LAFS and the Magic-Folder status API, however, this sync-progress value is presently calculated from the number of operations queued against the number of operations completed only; it does not take into account the number of bytes transferred/remaining (but may in the future, if/when Tahoe-LAFS and Magic-Folder provide such information). Accordingly, this indicator should not be relied upon to, e.g., estimate the amount of time remaining until a given folder has finished synchronizing (but is, at least, better than nothing...).

Note, also, that at the time of writing, the progress indicator only tracks upload operations; progress indicators for download operations are currently broken as a result of tahoe-lafs/magic-folder#589.

@crwood
Copy link
Member Author

crwood commented Nov 12, 2021

The Windows environment on GitHub Actions appears to have been recently changed/updated in a way that's now breaking PyInstaller. Since this PR passing without issue on Buildbot, however -- and since we don't currently depend on GHA for deploying such binaries -- I'm going to merge this PR anyway (and will investigate the GHA/Windows issue separately...).

EDIT: FWIW, the PyInstaller breakage is due to GHA updating to Python 3.9.8, which, apparently, lacks an embedded manifest file. See pyinstaller/pyinstaller#6367

@crwood crwood merged commit 33b982c into master Nov 12, 2021
@crwood crwood deleted the 391.magic-folder-progress-indicators branch November 12, 2021 21:42
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