Repository navigation
Tags
Tags
Athena pin: upstream main (f52a6cb) + per-file snapshot progress
Fix different files referring to the same blob being copied incorrect… …ly in a snapshot download (huggingface#42) * Fix an issue where different files referring to the same blob could be copied incorrectly in a snapshot download. * Incorporate feedback from review * Add clarifying code comments to downloadFile implementation * Incorporate feedback from review * swift format -i --recursive . --------- Co-authored-by: Mattt Zmuda <mattt@me.com>
Update file locking implementation to support reentrancy and improved… … error handling (huggingface#29) * Update file locking implementation to support reentrancy and improved error handling * Add failing test case with reentrant locking across different files * Fix failing test * Add failing test case with child task re-entering parent-held lock * Fix failing test * Incorporate feedback from review
Make pagination more convenient for API consumers (huggingface#26) * Add nextPage(after:) to HubClient Co-authored-by: Ronald Mannak <ronaldmannak@me.com> * Add automatic pagination affordances * Rename limit parameter to perPage for listAll* methods * Incorporate feedback from review * Incorporate feedback from review * Trim trailing whitespace --------- Co-authored-by: Ronald Mannak <ronaldmannak@me.com>
Update downloadSnapshot to call progressHandler regularly (huggingfac… …e#25) * fix: downloadSnapshot should call progressHandler on every update currently, progressHandler is called only at the beginning and the end, it should also be call for file level progress update * Make progressHandler a sendable closure * Guard on newValue and _ out unused closure argument * Deliver coalesced progress updates on MainActor Throttle per-file progress callbacks with an AsyncStream-based reporter, and add chunked MockURLProtocol support plus a snapshot progress test to verify intermediate updates. * Reorganize declarations * Document specific behavior of progressHandler * Move minimumDelta and minimumInterval to initializer parameters * Incorporate feedback from review * Add test to ensure progress never decreases * Incorporate feedback from review * Fix Linux build by avoiding KVO on Progress when FoundationNetworking is in use * Document Linux progress behavior * Fix crashing test on Linux * Attempt to avoid reentrant calls in the protocol client for Linux test * Revert Linux test workarounds and disable crashing test * Disable crashing snapshot progress regression test on Linux --------- Co-authored-by: Mattt Zmuda <mattt@me.com>
Add Xet support for faster downloads (huggingface#4) * Add Xet support for faster downloads * swift package update * Fix Linux build errors * Conditionalize use of autoreleasepool * Remove -v flag from swift commands in CI
Update cache directory handling for macOS and iOS (huggingface#24) * Update cache directory handling for macOS and iOS * Use URL.cachesDirectory to avoid implicitly-unwrapped optional * Define missing cachesDirectory property on URL in extension * Move URLSession extension to Extensions directory --------- Co-authored-by: Mattt Zmuda <mattt@me.com>
PreviousNext