Repository navigation
Tags
Tags
Report intermediate Xet download progress (#77) * Report intermediate Xet download progress * Complete progress for empty Xet downloads * Require swift-xet 0.3.0 * Isolate Replay tests from concurrent Xet requests
Decode tags-by-type responses as the Hub sends them (#71) * Decode tags-by-type responses as the Hub sends them The Hub answers /api/models-tags-by-type and /api/datasets-tags-by-type with the tag groups at the top level, keyed by type, and no wrapper object. Tags decoded a "tags" key instead, so getModelTags() and getDatasetTags() failed on every real response. The mocks wrapped the answer the same way, which is why the tests passed. Decode and encode the bare dictionary through a single-value container, change the mocks to the Hub's own shape, and add round-trip tests for Tags. * Keep decoding the legacy wrapped Tags shape Earlier releases encoded Tags inside a "tags" wrapper object. Fall back to that shape when the bare dictionary fails to decode, so previously persisted data still loads. * Surface decoding errors from inside the legacy Tags wrapper When the legacy "tags" wrapper is present but its contents are invalid, rethrow that error rather than the one from the bare-dictionary attempt, so the coding path points at the field that is actually wrong. * Match DecodingError directly in the legacy Tags test * Cast before matching DecodingError in the legacy Tags test Matching the enum case directly against the thrown error crashes the Swift 6.0 type checker inside the throwing #expect closure. Cast to DecodingError first, then match the case.
Give persisted download temp files a recognizable name (#66) The download bridge introduced in #50 moves each finished download to a bare UUID in the temporary directory. Name it hf-download-<uuid>.tmp instead so stray files are easy to attribute, and have the temp-file cleanup tests watch for that prefix as well as CFNetworkDownload_*. Follow-up to #50 and #52.
Fix different files referring to the same blob being copied incorrect… …ly in a snapshot download (#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>
PreviousNext