tests: add LeastRecentlyUsedCache regression tests #671
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!671
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/671/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@c0sxm0s on GitHub · 2026-09-17 12:50 UTC · original
c0sxm0s:lru-cache-tests→main· +236 −16 · 6 files · 5 commits · merged 2026-09-25 22:42 UTCSummary
Common::LeastRecentlyUsedCache had no dedicated regression tests, unlike the
other common containers (BitArray, SlotVector usage, page tables). Add
LruCacheTests.cpp covering walk order, ForEachItemBelow tick filtering,
early-exit boolean callbacks, Touch reordering / ignored older ticks, Free,
and freed-id reuse. Registered as the lru_cache CTest and added to the
kyty_tests aggregate target.
Test
_Build/windows/lru_cache_tests.exepassesctest -R lru_cachepasses on Windows (clang-cl 23.1.1, Qt 6.12.0)@coderabbitai[bot] on GitHub · 2026-09-17 12:58 UTC · original · edited 2026-09-17 13:08 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
a2465336-c742-4a64-b467-b88c3b9f7c71📥 Commits
Reviewing files that changed from the base of the PR and between
263fa0e7a8andaf684a70a8.📒 Files selected for processing (1)
tests/LruCacheTests.cpp🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.
📝 Walkthrough
Walkthrough
The pull request improves update-feed fallback handling and preserves usable primary-feed results. It adds strict parsing for launcher dimensions, GPU index, and vblank frequency. It adds standalone tests for
Common::LeastRecentlyUsedCacheand registers them with CTest and the aggregate test target.Priority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
af684No concrete current-head behavior risk remains from the fallback, argument parsing, or LRU test changes.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-17 12:58 UTC · original · edited 2026-09-17 13:05 UTC
On
tests/LruCacheTests.cppline 96 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Use a cutoff that detects a stale newest-item tick.
Collect(cache, 35)includescwhen its tick is either35or its old value of30. The test can pass ifTouch(c, 35)does not update the tick. Use a cutoff of30and expect onlyb.Proposed fix
📝 Committable suggestion
✅ Addressed in commit
af684a7@coderabbitai[bot] on GitHub · 2026-09-17 12:58 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
287c1e8f-d245-4537-8f1a-02e32f393438📥 Commits
Reviewing files that changed from the base of the PR and between
a6144f794band263fa0e7a8.📒 Files selected for processing (5)
CMakeLists.txtsrc/launcher/include/updateChecker.hsrc/launcher/src/updateChecker.cppsrc/main.cpptests/LruCacheTests.cppIncluded review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.