Launcher tests: "uninstall.exe is the small restorer" uses a size ratio that depends on the payload and toolchain

オープン 初心者向け
#234 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

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

調査の方向性

clean/installer/tests/run_launcher_tests.py の 328 行目付近を開き、"uninstall.exe は小さな restorer であり、launcher ではない" チェックを、テスト ペイロードと埋め込み restorer を生成するヘルパーと一緒に読んでください。埋め込み restorer がどのようにビルドされ保存されるかを読み、書かれたアンインストーラーをそのバイトまたはバージョン リソースと比較できるようにし、完全なランチャーのコピーが依然として失敗することを示すネガティブ ケースを維持してください。完了とは、サイズ比がなくなった MSVC static-runtime ビルドでスイートが通ることです。確認するにはランチャーのテスト ファイルを実行してください。

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

説明

bug build

The launcher suite check "uninstall.exe is the small restorer, not the launcher"
(clean/installer/tests/run_launcher_tests.py, around line 328) passes only if the uninstaller written into the game is
smaller than a quarter of the launcher. With the suite's small test payload and an MSVC build (static C runtime), the
restorer is about a third of the launcher (about 4.1 MB vs 11.8 MB), so the check fails although the right program
(the embedded restorer, not a copy of the launcher) was written. The ratio depends on how big the payload is and on
the toolchain, not on the uninstall logic.

Fix: identify the restorer directly instead of by size. For example compare the written uninstaller with the embedded
restorer's bytes or version resource, or compare against the launcher's size minus its payload, or use a fixed upper
bound for the restorer. Keep a check that a copy of the full launcher would fail.

Found while working on #224 (launcher uninstall checks, #219); not part of that fix.

主要言語
C++
スター
12
フォーク
2
平均マージ
3時間 10分
マージ済み PR(30日)
171

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

phantoslayer21/wronggpu のほかの issue

phantoslayer21/wronggpu の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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