07th-mod / 07th-mod/python-patcher

Installer does not report out-of-disk-space error if disk space runs out

オープン
#159 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
214
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

If disk space runs out during the download phase, the installer will report a generic error about the download stage failing, rather than explicitly telling you that disk space ran out (this might also happen during extraction with 7zip). This is mainly because we don't properly parse the output of aria2c to determine the error (even just copying the first line of the error message from aria2c may be better).

The installer should parse the aria2c output to see if disk space ran out, then immediately exit and report out-of-disk space.

TODO:

1. Report less generic error if disk space runs out
2. Stop download/extract immediately if disk space runs out (currently will retry 3 times!)
3. Log disk space on both drives (the target drive and the 'current' drive used for temp files) to installer log (currently neither is logged!)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

インストーラーのダウンロードロジック(おそらく aria2c 統合を扱うファイル内)を確認します。aria2c の stderr 出力を解析し、ディスクスペースエラーを検出します。エラー報告を更新して、特定のメッセージを表示し、リトライを停止するようにします。また、ターゲットドライブと一時ドライブの空き容量のログ記録をインストーラーログに追加します。ディスク容量不足をシミュレートしてテストします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, python
領域
cli, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。