mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #1298] tests: cover retire-ticket device loss #1328
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1328
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1298
Author: @Okachamie
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:test-retire-ticket-device-loss📝 Commits (1)
f1ff7d0tests: cover retire-ticket device loss📊 Changes
1 file changed (+27 additions, -3 deletions)
View changed files
📝
runtime/test/vk_queue_query_sync_test.cpp(+27 -3)📄 Description
Claimed in the coordination issue as: TEST-RETIRE-TICKET-DEVICE-LOSS
What and why
VulkanContext::completed_retire_ticket()can be the first Vulkan operation to discoverVK_ERROR_DEVICE_LOST. The merged #408 fix marks the context lost and retires nothing in that case, but the existing regression injects the error into the queue's own progress-semaphore query instead. Which query observes the loss first depends on the driver, so the current test can pass on NVIDIA while failing on AMD.Add a deterministic case with a fresh context and one pending submission. Inject
VK_ERROR_DEVICE_LOSTinto the retire-ticket counter query, then require a zero completed ticket, a lost context, and exactly one intercepted error. The existing progress-query case now compares interception-count deltas so both cases can run together.Tested
mainat4a50cafc7af8b5a842c85a3794b286232495068d; proposed commitf1ff7d05a75c4a8526afc9838095ae21459c3bb9.cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfoconfigured successfully.cmake --build runtime/build --target vk_queue_query_sync_test -j2passed.ctest --test-dir runtime/build -R '^vk_queue_query_sync$' --output-on-failure: 1/1 passed.runtime/build/vk_queue_query_sync_test: 5/5 passed.completed_retire_ticket()hunk: the new test failed atretire_context.is_device_lost().python -I scripts/check_no_game_data.py runtime/test/vk_queue_query_sync_test.cpppassed.git diff --check HEAD^ HEADpassed.LEONIDA_VK_VALIDATION=1skipped becauseVK_LAYER_KHRONOS_validationis not installed on this host.GPUs tested: NVIDIA GeForce RTX 5090 Laptop GPU, NVIDIA 620.73.04, CachyOS 7.3.5-2-cachyos.
AI-assisted: yes
Checklist
mainat4a50cafc7af8b5a842c85a3794b286232495068dand merges cleanly.docs/design.md(n/a for this test-only change).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.