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

未关闭 适合新手
#233 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
80/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
testing

调研方向

从 clean/installer/tests/run_launcher_tests.py 第 412 行附近开始,那里写入了 0.5.1 的伪造安装记录,并将其与 clean/installer/tests/run_installer_tests.py 第 2246 行附近设置的构建版本进行比较。运行 launcher 测试套件,查看失败的 "an older record: update available" 检查。根据构建版本推导出伪造记录的版本,使其更旧,然后添加第二项检查:比构建更新的记录会报告 installed;两项都通过即完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C++
星标
12
派生
2
平均合并
3 小时 10 分钟
30 天内合并 PR
171

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

phantoslayer21/wronggpu 的其他 Issue

查看 phantoslayer21/wronggpu 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。