Repository navigation
fix(runtime): close interrupted downloads and discard invalid partials - #7
Merged
Merged
Conversation
Small-Ku
marked this pull request as ready for review
December 4, 2026 17:35
Owner
Author
|
最新提交已通過 Windows 本機完整 workspace、Clippy 與政策檢查,以及 Linux hosted 測試。另完成官方 CDN 的有界 archive range 抽樣、manifest direct repair、有效前綴續傳與已完成 partial 回收;未將有界抽樣視作完整遊戲版本轉換。已進入正式 review,完整版本更新及 Windows hosted gate 仍分別驗收。 |
#7) * fix(runtime): close interrupted downloads and discard invalid partials * fix(runtime): reclaim obsolete payload temporaries at transaction boundaries
Small-Ku
force-pushed
the
fix/download-part-lifecycle
branch
from
December 4, 2026 17:51
8694ab8 to
b42b446
Compare
Owner
Author
合併前的 review commits原始 PR head:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
問題
HTTP writer 在傳輸失敗時依賴檔案 handle 的隱式 drop,完整 partial 的雜湊不符亦延至下一次下載準備才清除。Linux KEEP_SIZE 可能在關閉檔案後保留未寫入的配置量。DAG 失敗時進度仍會送出 Finished,CLI 也會將 Failed 顯示為 done。
修復
驗證
Windows workspace:541 passed、12 ignored、0 failed;Clippy -D warnings、repository policy tests 62/62 通過。新增合成 HTTP 中斷、重試耗盡、range 續傳、錯誤 MD5、強制終止子程序後續傳、雙 Runner 共用容量及 CLI 失敗進度測試。
限制
Linux runtime 回歸待 hosted CI;真實大型 CDN 工作負載尚未重新驗收。此修復不掃描或刪除所有權未確認的歷史 partial,不修改 HDiff 恢復所需的 staging。