Repository navigation
test(kyty): verify prepared variants after restart - #334
Conversation
simnJS
left a comment
There was a problem hiding this comment.
The two native ready-pipeline hits, output checks and omitted-variant control cover #327. Please reserve exit 77 for a confirmed Vulkan device limitation. Right now a failed seed replay or missing frame or dump also skips when ANYPS5_REQUIRE_VULKAN is unset. Please give the four-child test enough time to surface the manifest wait diagnostic, and update the Tested link when CI for this head completes. The Linux run linked now belongs to the base commit.
simnJS
left a comment
There was a problem hiding this comment.
The skip handling and CI link are addressed. The outer CTest timeout is still 60 seconds, while the two independent warm replays can each spend 30 seconds waiting for the manifest. Both seed runs and child startup also count toward that timeout. Please give the whole test enough budget for the replay to report its own timeout diagnostic.
|
I prepared a one-line follow-up for the remaining outer-timeout review request, based exactly on this PR's current head It raises only I checked the two wait call sites, |
|
The proposed 120-second CTest timeout addresses the review concern: the two sequential 30-second manifest waits could exhaust the current 60-second budget before the second replay prints its diagnostic. The supplied PR diff still shows 60 seconds, so please apply the timeout change to this PR and confirm that CTest reports 120 seconds for the fixture after reconfiguration. |
simnJS
left a comment
There was a problem hiding this comment.
The integration includes the 120-second watchdog follow-up. Both CI suites passed on the tested candidate.
What
Add a synthetic end-to-end regression for issue #327: one shader with two resource shapes is recorded, the backend is restarted, and each prepared compute variant must serve its first dispatch from a distinct native ready pipeline. A one-variant recording followed by the omitted shape must show a synchronous miss. Cold, warm, and control output bytes are checked, with every output word written.
Flush manifest recording when the GPU shuts down so a short run leaves a reloadable manifest. Wait for manifest work before the first replay frame, reject compute preparation failures, and log ready-pipeline consumption when variant logging is enabled. Keep the new test out of lavapipe because its Vulkan device lacks the replay family's required extension and subgroup size. ASan and TSan CTest configurations omit this GPU fixture because the replay requires a fixed guest arena.
Based on current
AnyKyty(90a48455d2). The overlap tool compared the other open PRs; it could not merge the older #313 with this base, so I compared its CMake hunk manually. #313 registers BDA page-table tests near line 267; this PR registers the prepared-variant test near line 746 and adds its Windows PATH entry near line 818.Tested
agc_frame_replay,kyty_shim_generic_compute_replay_tests, andkyty_shim_buffer_cache_pages_testswith the documented MinGW/LLVM setup.90a48455d2,ctest --test-dir build -R '^(kyty_shim_generic_compute_replay(_wide)?|kyty_shim_buffer_cache_pages)$' -V: 3/3 passed in 4.48 s. On this change the same 3/3 passed in 3.83 s. Both direct GPU logs inserted validation layer 1.4.350, showed no missing-layer message, and had noVUID-errors.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, andVK_LOADER_DEBUG=layer, the new prepared-variant CTest passed in 11.44 s (4/4 focused tests; the 60 s failure watchdog lets the 30 s manifest wait print its diagnostic, while the passing test stays under 30 s). Its four child logs each inserted the layer and had no missing-layer message orVUID-error. The warm run loaded two manifest modules, created two native compute pipelines, served two distinct prepared hits, issued two dispatches, and logged zerocompute-sync,compute-wait, or skipped dispatches. The omitted-variant control logged onecompute-syncmiss and produced the cold reference output.ANYPS5_REQUIRE_VULKANwas unset and failed when it was set. The passing GPU run reported two prepared hits and the omitted-variant miss..kpmand shader.codefiles were saved and reloaded. Persisted SPIR-V caching was disabled, and--cold-pipelinesdisabled the Vulkan driver pipeline cache, so native readiness is reported separately from code storage or cache hits.python3 tools/check_conventions.py --base origin/AnyKyty,python3 tools/check_kyty_settings.py, and the genuine warning fixturestest_kyty_pgo.py(7/7),test_relinker_fuzz_fixture_warnings.py(9/9), andtest_check_kyty_settings.py(19/19) passed. This fork has noorigin/mainref, so the template's base check used itsAnyKytytarget.python3 -I tools/kyty_pgo.py report --annotateon the exact-head Linux Kyty CI log: exit 0. The existing profile advisory reports 424 lost functions and 18.95% weight. AnyKyty, Offline checks, and portability passed at head5aa3ca65c7. Hosted Linux and Windows skipped the prepared GPU fixture; the local Vulkan run above exercised it. No title runtime was available for testing.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)