Commit Graph
11 Commits
Author SHA1 Message Date
Adrià 1f68b1f776 Merge pull request #9605 from harisibrar1/test/shard-shader-cache-runtime-sources
test(recompiler): shard shader_cache_runtime_sources to stay under 30 s
2026-10-25 22:13:35 +01:00
Dean 559e4dc883 Merge pull request #9140 from xXPBSXx/fix/shader-cache-sources-test-timeouts
test(recompiler): give the shader cache source fixture room under load
2026-10-24 16:53:16 +13:00
Yunus Shaikh 3ded7d3269 fix(recompiler): hold the result-key memo in AtomicSharedPtr so libc++ builds
ResultKeyMemo declared std::atomic<std::shared_ptr<...>>. libc++ has no
atomic<shared_ptr> specialization, so with Apple clang the recompiler
headers stop at std::atomic's trivially-copyable static assertion
(request_serializer_tests in the macOS relinker build). The memo now uses
AtomicSharedPtr from libc, which is that specialization where the library
provides it and a locked shared_ptr with the same load and store otherwise.
The header joins the shader disk cache key's sources, and
request_serializer_tests gets core/libs on its include path.
2026-10-23 03:46:57 +05:30
harisibrar1andClaude Opus 5.5 8e31a8526e test(recompiler): shard shader_cache_runtime_sources to stay under 30 s
The test configures a CMake fixture several times and ran as one CTest
case: 78 s on a Windows 11 machine, and the Windows CI job warns that it
took 66.9 s against the 30 s limit in CONTRIBUTING.md. Its slowest method
alone took 27 s because it edited six sources in turn.

Split that method into one test per source and register the file as seven
CTest shards (--shard INDEX/COUNT, as the conventions_function_bodies
tests do). The first shard keeps the shader_cache_runtime_sources name. A
self-test checks that every shard count runs each case exactly once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-22 08:48:35 -04:00
emirplus ea51b1191f fix(tests): limit tool availability skip to argument-free discovery in shader cache test 2026-10-21 19:37:31 +03:00
emirplus c2c9aa75b8 fix(tests): guard main and provide defaults in shader cache sources test 2026-10-21 19:36:45 +03:00
xXPBSXxandClaude Sonnet 5.5 6d464e9495 test(recompiler): give the shader cache source fixture room under load
shader_cache_runtime_sources configures a CMake fixture several times with a
15 s limit per configure and 180 s for the whole test. On a loaded machine a
configure takes longer than that: under a parallel build (load average ~12 on
WSL2 Ubuntu) the test timed out in 2 of 2 runs, and on an idle Windows machine
it needs about 115 s of the 180 s. Raise the limits to 120 s per configure,
60 s per version query and 600 s for the test.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-21 14:50:12 +02:00
orezraeyandClaude Opus 5.5 1529a5cf31 test(recompiler): read the cache fixture's build.ninja in the Ninja build-file encoding
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-20 07:45:53 -03:00
Adrià Franch 03833cabad test(recompiler): accept linker help probes in compiler stub 2026-10-19 04:28:37 +02:00
fdfawef324andCodex 42cbce1767 test(recompiler): allow macOS compiler metadata probes
Co-Authored-By: Codex <[email protected]>
2026-10-19 04:27:37 +02:00
fdfawef324andCodex f3f453ec9d fix(recompiler): key shader caches on compiled sources
Co-Authored-By: Codex <[email protected]>
2026-10-19 04:27:37 +02:00