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

Aberta Para iniciantes
#234 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
74/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
testing

Direção de pesquisa

Abra clean/installer/tests/run_launcher_tests.py por volta da linha 328 e leia a verificação "uninstall.exe é o restorer pequeno, não o launcher" junto com a função auxiliar que produz o payload de teste e o restorer embutido. Leia como o restorer embutido é construído e armazenado para que você possa comparar o desinstalador escrito com seus bytes ou recurso de versão, e mantenha um caso negativo provando que uma cópia do launcher completo ainda falha. Concluído significa que a suíte passa no build MSVC static-runtime com a proporção de tamanho eliminada; execute o arquivo de teste do launcher para confirmar.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C++
Estrelas
12
Forks
2
Merge médio
3h 10min
PRs com merge (30d)
171

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de phantoslayer21/wronggpu

Todas as issues de phantoslayer21/wronggpu

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.