mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #935] [MERGED] retire_tickets: coalesce pending_through per semaphore and guard completed_ monotonicity #973
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#973
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/935
Author: @narekshaghoyandev
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq-retire-tickets-dedup-wait📝 Commits (1)
9392bbdretire_tickets: coalesce pending_through per semaphore and guard completed_ monotonicity📊 Changes
2 files changed (+31 additions, -3 deletions)
View changed files
📝
runtime/src/retire_tickets.h(+13 -3)📝
runtime/test/retire_tickets_test.cpp(+18 -0)📄 Description
Summary
RetireTickets::pending_through(ticket)inruntime/src/retire_tickets.hso multiple pending submissions on the same timeline semaphore collapse to a single(semaphore, max_value)entry instead of passing duplicateVkSemaphorehandles tovkWaitSemaphoresinwait_retire_ticket().completed_inRetireTickets::completed()so a non-monotonic ticket can never move the completed retirement prefix backward.runtime/test/retire_tickets_test.cppwith regression checks for per-semaphore coalescing, idle queue exclusion, cutoff filtering, and monotoniccompleted_.Verification
g++ -std=c++20 -Wall -Wextra -Werror -pedantic -fsanitize=address,undefined -O1 -g runtime/test/retire_tickets_test.cpp -o /tmp/retire_tickets_test && /tmp/retire_tickets_test— pass.main: fails with exit code 5 before the patch and passes cleanly after.python3 -I scripts/check_no_game_data.py runtime/src/retire_tickets.h runtime/test/retire_tickets_test.cpp— clean.Claimed in the coordination issue as: RT-RETIRE-TICKETS-DEDUP-WAIT
AI-assisted: yes (Gemini)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.