Launcher tests: "uninstall.exe is the small restorer" uses a size ratio that depends on the payload and toolchain
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
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
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
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de phantoslayer21/wronggpu
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
phantoslayer21/wronggpu#275 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
phantoslayer21/wronggpu#274 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
phantoslayer21/wronggpu#241 ·
Mantenedores costumam responder em até 1 dia
-
Launcher tests: "an older record: update available" fakes a version newer than the test buildAbertabug build
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
phantoslayer21/wronggpu#233 ·
Mantenedores costumam responder em até 1 dia
-
area: build-ci build
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
phantoslayer21/wronggpu#56 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de phantoslayer21/wronggpu
Issues semelhantes
-
ai_p2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
ClickHouse/ClickHouse#132519 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: VST3 getMidiControllerAssignment reads past midiControllerToParameter for program changeAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
juce-framework/JUCE#1810 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
petercorke/robotics-toolbox-python#952 ·
Mantenedores costumam responder em até 1 dia
-
NatronRenderer: a Python error in the script (-t / project script) doesn't change the exit statusAbertafunc:engine type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
NatronGitHub/Natron#1276 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia