Launcher tests: "uninstall.exe is the small restorer" uses a size ratio that depends on the payload and toolchain
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
clean/installer/tests/run_launcher_tests.py の 328 行目付近を開き、"uninstall.exe は小さな restorer であり、launcher ではない" チェックを、テスト ペイロードと埋め込み restorer を生成するヘルパーと一緒に読んでください。埋め込み restorer がどのようにビルドされ保存されるかを読み、書かれたアンインストーラーをそのバイトまたはバージョン リソースと比較できるようにし、完全なランチャーのコピーが依然として失敗することを示すネガティブ ケースを維持してください。完了とは、サイズ比がなくなった MSVC static-runtime ビルドでスイートが通ることです。確認するにはランチャーのテスト ファイルを実行してください。
索引モデルが issue の本文から書いたものです。
説明
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phantoslayer21/wronggpu のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
phantoslayer21/wronggpu#275 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
phantoslayer21/wronggpu#274 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
phantoslayer21/wronggpu#241 ·
メンテナーはふだん 1 日以内に返信
-
bug build
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
phantoslayer21/wronggpu#233 ·
メンテナーはふだん 1 日以内に返信
-
area: build-ci build
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
phantoslayer21/wronggpu#56 ·
メンテナーはふだん 1 日以内に返信
phantoslayer21/wronggpu の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ReyeMe/SaturnRingLib#155 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Nheko-Reborn/nheko#2092 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
isocpp/CppCoreGuidelines#2345 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
ROCm/rocm-libraries#16108 ·
メンテナーはふだん 2 日以内に返信