Launcher tests: "an older record: update available" fakes a version newer than the test build

Aberta Para iniciantes
#233 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
80/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
testing

Direção de pesquisa

Comece em clean/installer/tests/run_launcher_tests.py por volta da linha 412, onde o registro de instalação falsificado para 0.5.1 é escrito, e compare-o com a versão de build definida em clean/installer/tests/run_installer_tests.py por volta da linha 2246. Execute a suíte de testes do launcher para ver a verificação com falha "an older record: update available". Derive a versão do registro falsificado da versão de build para que seja mais antiga, depois adicione uma segunda verificação de que um registro mais novo que o build reporta installed; concluído quando ambas passarem.

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

Descrição

bug build

The launcher suite check "an older record: update available" (clean/installer/tests/run_launcher_tests.py, around
line 412) writes an install record for version 0.5.1 and expects the launcher to report update-available. The suite
builds the launcher under test with version 0.3.0-test (clean/installer/tests/run_installer_tests.py, around line
2246), so the faked record is newer than the build. The launcher then correctly reports installed, and the check
fails on every PC, with main as well. The update steps after it still pass only because they use --force.

Fix: fake a record version below the build's version (for example derive it from the build version), or build the
test launcher with a version above any record the suite fakes. The check should then pass, and a second check should
confirm that a record newer than the build is reported as installed, not as an update.

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.