mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4989] [Other] Measure free space on the drive that receives the files #5279
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4989
Author: @zapabob
Created: 11/2/2026
Status: 🔄 Open
Base:
main← Head:fix/gguf-dir-disk-on-data-dir📝 Commits (2)
9cf1802Setup: measure free space on the drive that receives the files.c02303bMerge upstream/main into fix/gguf-dir-disk-on-data-dir📊 Changes
5 files changed (+549 additions, -53 deletions)
View changed files
📝
setup.py(+129 -49)➕
tools/test_setup_disk_destinations.py(+411 -0)📝
tools/test_setup_dsv41.py(+4 -1)📝
tools/test_setup_qwen36.py(+3 -1)📝
tools/test_setup_unsloth.py(+2 -2)📄 Description
Problem and result
Setup judged free disk space on the folder named by
--gguf-dir, even when that folder was only the source of files already in hand and the bytes still to be written belonged on--data-dir/--models-dir.After this update:
same_drive()).--gguf-dir.DSV41_CONTEXT/ 128K warning is preserved (the old 64K/4K/8K text is not restored).Approach
Merge current upstream
main(ffa80d73) intofix/gguf-dir-disk-on-data-dir, resolve thesetup.pyconflict by keeping main's context warning and integrating destination-based capacity accounting, and add focused regression coverage. No force-push.Validation
Passed (this update, Windows 11 / Python 3.12):
py -3 -m unittest tools.test_setup_disk_destinations— 32 passedpy -3 -m unittest discover -s tests/terminal -p test_download_dedup.py— 12 passedpy -3 -m compileallon changed Python files — okEarlier Linux package evidence (not re-run here): target suite 246 passed / same 4 known failures as baseline; adjacent suite 124 passed / same 4 known failures.
Author's earlier Windows report on old head: 198 passed / 5 failed (engine-feed availability). Separate from this update.
Not run: Windows junctions/UNC live volumes, live model download/resume, GPU inference, full backend builds.
Limits
Capacity checks are preflight estimates, not a full reservation of every setup write. Windows native volume edge cases remain a follow-up gate.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.