Launcher tests: "an older record: update available" fakes a version newer than the test build
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
Research direction
Start in clean/installer/tests/run_launcher_tests.py around line 412, where the faked install record for 0.5.1 is written, and compare it with the build version set in clean/installer/tests/run_installer_tests.py around line 2246. Run the launcher test suite to see the failing "an older record: update available" check. Derive the faked record version from the build version so it is older, then add a second check that a record newer than the build reports installed; done when both pass.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C++
- Stars
- 12
- Forks
- 2
- Avg merge
- 3h 10m
- Merged PRs (30d)
- 171
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from phantoslayer21/wronggpu
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
phantoslayer21/wronggpu#275 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
phantoslayer21/wronggpu#274 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
phantoslayer21/wronggpu#241 ·
Maintainers usually reply within 1 day
-
bug build
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
phantoslayer21/wronggpu#234 ·
Maintainers usually reply within 1 day
-
area: build-ci build
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phantoslayer21/wronggpu#56 ·
Maintainers usually reply within 1 day
All issues in phantoslayer21/wronggpu
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ReyeMe/SaturnRingLib#155 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Nheko-Reborn/nheko#2092 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
isocpp/CppCoreGuidelines#2345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
ROCm/rocm-libraries#16108 ·
Maintainers usually reply within 2 days