tests: make kyty_tests build and run every test without LTO #1110
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!1110
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1110/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?
@NevesHenry on GitHub · 2026-10-06 17:29 UTC · original
NevesHenry:tests/fix-linux-test-build→main· +7 −2 · 2 files · 1 commits · merged 2026-10-06 17:56 UTCSummary
On current main, the README's no-Qt Linux steps (
-DCMAKE_BUILD_TYPE=Release, clang, no LTO) fail atcmake --build ... --target kyty_emulator kyty_tests, andctestskips one test. Three small fixes:avplayer_file_testsdoesn't link:undefined reference to Loader::Timer::GetTimeMs(), called fromLibs::PrintName(src/libs/libs.h:66). The test compileslibs/avPlayer.cpp, whosePRINT_NAME()uses the timer, but the target doesn't compileloader/timer.cpp. The other tests that compile HLE sources (audio_out2_port_tests,ngs2_sampler_tests,event_queue_lifetime_tests) already add it.ShaderRecompilerComputeTests.cpp:33544doesn't compile with clang and libstdc++:no matching member function for call to 'emplace', becauseis_constructible_v<IndirectDescriptor>is false there. A standalone repro of the struct fails with clang 18, 19 and 20 on libstdc++ 13 and 14, and compiles with libc++ or g++ 14. The line now assignsDescriptorSource::IndirectDescriptor{.table_stride = 16}, the same way as the test right below it. #1092 also changes this line as part of a larger change; if it lands first, I'll drop this part.trophy_systemis never run: it is registered with ctest, butkyty_testsdoesn't buildtrophy_system_tests, so ctest reports it as Not Run. This is the same gap #798 fixed forsave_data_memory.CI doesn't hit 1 or 2: it links with
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON, and LTO drops the unused reference. It also doesn't build the compute tests.Validation
Ubuntu 24.04 container, clang 18.1.3, CMake 3.28.3, with the README's no-Qt configure:
fb7ff7ec): the build fails on 1 and 2. With-k 0these are the only two failures.kyty_emulatorandkyty_testsbuild. All 32 ctest tests that don't need a Vulkan device pass, includingavplayer_fileandtrophy_system. The other 18 run the Vulkan compute harness or open a Vulkan window, and I have no suitable device to run them.Not tested on Windows or macOS.
AI assistance
An AI coding assistant (Claude Code) helped me find these failures, reduce the
emplaceerror to a standalone repro, and run the container builds above. I reviewed the diff and the build and test output. All communication on this PR comes from me.🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-10-06 17:37 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
a0936794-9bbc-498d-b55f-65290095f997📥 Commits
Reviewing files that changed from the base of the PR and between
fb7ff7ec03and17f78f31b0.📒 Files selected for processing (2)
CMakeLists.txttests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
CMake now compiles
src/loader/timer.cppinavplayer_file_testsand includestrophy_system_testsin the dependencies ofkyty_tests. TheIndirectBufferStoretest now assigns a complete indirect descriptor value with a stride of 16.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Other
Merge Risk: ⚪ Minimal · up to
17f78The test-target wiring and descriptor setup have no identified merge-blocking issue.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.