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

Aperta Adatta ai principianti
#234 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
74/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Apri clean/installer/tests/run_launcher_tests.py intorno alla riga 328 e leggi il controllo "uninstall.exe è il piccolo restorer, non il launcher" insieme alla funzione ausiliaria che produce il payload di test e il restorer incorporato. Leggi come viene costruito e memorizzato il restorer incorporato così puoi confrontare il disinstallatore scritto con i suoi byte o la sua risorsa di versione, e mantieni un caso negativo che dimostri che una copia del launcher completo fallisce ancora. Completato significa che la suite passa sulla build MSVC static-runtime con il rapporto dimensionale sparito; esegui il file di test del launcher per confermare.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
12
Fork
2
Merge medio
3h 10m
PR unite (30g)
171

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phantoslayer21/wronggpu

Tutte le issue di phantoslayer21/wronggpu

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.