Repository navigation
[Bugfix][TENT] Stabilize queued-request timeout regression test - #5917
Closed
zhou-yuhan wants to merge 3 commits into
Closed
zhou-yuhan wants to merge 3 commits into
zhou-yuhan wants to merge 3 commits into
Conversation
Keep background status polls pending in this case’s fake transport so only the waitTransfer caller consumes the slow first poll and drives completion. Preserve the cancellation-before-refill assertions without changing production behavior. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: Yuhan Zhou <zhouyuhan_@outlook.com>
zhou-yuhan
requested review from
00fish0,
alogfans,
chestnut-Q,
doujiang24,
dtcccc and
staryxchen
as code owners
November 27, 2026 14:15
Include the upstream XPU CI contract and inventory repair (kvcache-ai#5920). Keep the queued-request timeout regression fix unchanged. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: Yuhan Zhou <zhouyuhan_@outlook.com>
Contributor
Author
|
CI is blocked by rocm wheel build error fixed in #5926, which should be merged first. |
Include the upstream ROCm wheel linker repair (kvcache-ai#5926). Keep the queued-request timeout regression test fix unchanged. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: Yuhan Zhou <zhouyuhan_@outlook.com>
Contributor
Author
|
@staryxchen This small fix stabilizes CI. |
Contributor
Author
|
#5514 already solves this with the same method. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Fix TENT
RuntimeQueueDispatch.TimeoutDoesNotDispatchQueuedRequestsOfBatchtest flake.Motivation
RuntimeQueueDispatch.TimeoutDoesNotDispatchQueuedRequestsOfBatchfailed in #5879 CI. The test makes the first fake-transport poll sleep 5 ms and returnPENDING, expectingwaitTransfer(..., 1)to time out and cancel the queued second request before polling can free the dispatch window.However, enabling the runtime queue also starts
ProgressWorker, and submission wakes it immediately. The background worker can consume that first poll, or complete the first request before the waiter cancels the queue. Subsequent polls then dispatch and complete the second request: submissions become 2 instead of 1, and its status isCOMPLETEDinstead ofCANCELED. The test assumes a polling order that it does not enforce.Reproduced on upstream main
47efddf2, including merged #5879:The controlled reproduction uses a test-only promise/future, with production code unchanged.
Design & Modification
PENDINGwithout consuming the counter; only the waiter executes the slow first poll and subsequent completion.Validation
Full local TENT CTest matrix, using CI's test selections (counts are CTest targets):
cancelQueuedOwners()aftergetTransferStatus()still triggers the original assertions in 20/20 runs. The fix preserves the cancellation-before-refill check, not just a green result../scripts/code_format.shchecks pass. Scheduling probes and the intentional production mutant are diagnostic copies only; neither is part of this PR.Suggested Merge Priority
Module
mooncake-transfer-engine)Type of Change
Checklist
Signed-off-bytrailer certifying the DCO../scripts/code_format.sh.AI Assistance Disclosure