Launcher tests: "uninstall.exe is the small restorer" uses a size ratio that depends on the payload and toolchain
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
打開 clean/installer/tests/run_launcher_tests.py 中第 328 行附近,閱讀 "uninstall.exe 是小型 restorer,而不是 launcher" 檢查,以及產生測試 payload 和內嵌 restorer 的輔助函式。閱讀內嵌 restorer 是如何建置和儲存的,以便將寫出的 uninstaller 與其位元組或版本資源進行比較,並保留一個負向案例,證明完整 launcher 的副本仍然會失敗。完成的樣子是:在 MSVC static-runtime 建置上,測試套件通過且大小比例消失;執行 launcher 測試檔來確認。
由索引模型根據 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 分鐘
- 30 天內合併 PR
- 171
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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
-
ai_p2
難度 2/5 1-3 小時 新手友好度 80/100
ClickHouse/ClickHouse#132519 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
juce-framework/JUCE#1810 ·
-
難度 1/5 1 小時以內 新手友好度 82/100
petercorke/robotics-toolbox-python#952 ·
維護者通常 1 天內回覆
-
NatronRenderer: a Python error in the script (-t / project script) doesn't change the exit status未關閉func:engine type:bug
難度 2/5 1-3 小時 新手友好度 72/100
NatronGitHub/Natron#1276 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 77/100
維護者通常 1 天內回覆