Skip to content

[#17156][fix] Flush buffered text in DeepSeekR1Parser.finish() - #17157

Open
Yigtwxx wants to merge 4 commits into
NVIDIA:mainfrom
Yigtwxx:fix/reasoning-parser-finish-flush
Open

[#17156][fix] Flush buffered text in DeepSeekR1Parser.finish()#17157
Yigtwxx wants to merge 4 commits into
NVIDIA:mainfrom
Yigtwxx:fix/reasoning-parser-finish-flush

Conversation

@Yigtwxx

@Yigtwxx Yigtwxx commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #17156.

DeepSeekR1Parser.parse_delta withholds a trailing fragment that could still grow into
a <think> / </think> tag, keeping it in self._buffer until the next delta arrives.
BaseReasoningParser.finish() exists so a parser can flush that state when the stream
ends, and the serving layer calls it (serve/postprocess_handlers.py:177,
serve/responses_utils.py:963). DeepSeekR1Parser never overrode finish(), so a
stream that ended while a fragment was buffered silently dropped those characters from
content or reasoning_content — for example a response ending in a literal <, or
one truncated by max_tokens partway through </thin.

This adds the missing finish() override: the withheld text is emitted and attributed
to the block it was withheld in (reasoning content inside a reasoning block, visible
content otherwise). A buffer holding exactly a complete tag is a delimiter rather than
model output, so it is still discarded, which keeps the existing behavior for a stray
closing tag arriving as the final delta.

This is a conformance fix rather than a behavior change: two sibling parsers in the same
file already implement exactly this flush — NemotronV3ReasoningParser.finish() and
Gemma4ReasoningParser.finish() — and Gemma4ReasoningParser.finish() has the same
shape as the implementation added here. parse_delta is untouched.

Scope: every parser key backed by DeepSeekR1Parser (deepseek-r1, qwen3, qwen3_5,
laguna, minimax_m2, minimax_m2_append_think) plus the subclasses
MiniMaxM3ReasoningParser (minimax_m3) and DeepSeekV4ReasoningParser
(deepseek_v4), whose finish() delegates to the base parser and was a no-op until now.
KimiK2ReasoningParser (kimi_k2, kimi_k25) also subclasses DeepSeekR1Parser
without overriding finish(), so it picks the flush up too. Note that its extra
delimiter, <|tool_calls_section_begin|>, is not part of the discard check, so a buffer
holding exactly that token is now flushed as text rather than dropped. That is closer to
"do not lose model output" than the current silent drop, but say the word if you would
rather the discard check learn about it. NemotronV3ReasoningParser overrides finish()
in full and is unaffected.

Test Coverage

tests/unittest/llmapi/test_reasoning_parser.py (CPU-only, no model weights) — six new
cases, one per behavior worth pinning:

  • test_deepseek_r1_reasoning_parser_stream_matches_non_stream — streaming one character
    at a time and then finishing produces the same content / reasoning_content split as
    parse() on the whole text. This is the contract the missing flush violated, so it
    subsumes example-based tests of the individual branches. One (parser_key, text) pair
    per branch of finish(): ("deepseek-r1", "a <") flushes as reasoning content,
    ("qwen3", "a<") flushes as visible content, and ("deepseek-r1", "a</think>")
    discards a buffer holding exactly a delimiter.
  • test_deepseek_r1_reasoning_parser_finish_flushes_partial_tag — a single delta carrying
    both text and a partial tag ("a </thin") fills _buffer through the rfind branch of
    parse_delta, which character-at-a-time streaming never reaches. That is the shape a
    real stream delivers.
  • test_deepseek_v4_reasoning_parser_finish_delegatesDeepSeekV4ReasoningParser
    forwards finish() to DeepSeekR1Parser or to IdentityReasoningParser depending on
    the thinking flag, so the delegation named in the scope above has two targets.

Results on this branch: 142 passed. Against main with only the test changes applied, 4
of the 6 new cases fail, so they do guard the fix. The other 2 pass either way by design —
they guard against a wrong fix that leaks a complete delimiter or flushes from the
identity parser. All 136 pre-existing cases in the file pass unchanged.

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

Dev Engineer Review

  • DeepSeekR1Parser.finish() flushes buffered text at end of stream.
  • Complete <think> and </think> tags remain discarded.
  • Partial tag fragments emit to the active reasoning_content or content field.
  • The fix applies to parser aliases and delegating subclasses.
  • The method preserves streaming and non-streaming equivalence.
  • No configuration or test-list files changed.

QA Engineer Review

  • Added tests for streaming and non-streaming output equivalence.
  • Added tests for partial reasoning and visible-content tag fragments.
  • Added tests for complete delimiter suppression.
  • Added coverage for DeepSeekV4ReasoningParser delegation.
  • No test-list coverage entry was added or modified.
  • Verdict: needs follow-up because test-db/ and qa/ coverage data is unavailable.

@Yigtwxx
Yigtwxx requested a review from a team as a code owner August 1, 2026 10:05
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

DeepSeekR1Parser.finish() now flushes buffered streaming fragments according to parser state and discards complete delimiters. Tests cover parser variants, partial tags, delimiter buffers, delegation, and streaming parity.

Changes

Reasoning parser stream finalization

Layer / File(s) Summary
Buffered-text finalization
tensorrt_llm/llmapi/reasoning_parser.py
DeepSeekR1Parser.finish() emits incomplete buffered text as reasoning or visible content and discards complete <think> and </think> delimiters.
Finalization behavior tests
tests/unittest/llmapi/test_reasoning_parser.py
Tests compare streaming with non-streaming parsing and verify partial tags, parser aliases, and DeepSeek V4 delegation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • #17296: Addresses end-of-stream buffering and streaming/non-streaming consistency in DeepSeekR1Parser.

Suggested reviewers: junyixu-nv, allisonlim-nv

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The implementation and tests satisfy issue #17156 by flushing partial buffered fragments while discarding complete delimiters.
Out of Scope Changes check ✅ Passed The changes are limited to the requested parser fix and focused regression tests.
Title check ✅ Passed The title clearly and concisely describes the main fix and follows the repository's required ticket and type format.
Description check ✅ Passed The description explains the issue, solution, scope, test coverage, results, and checklist status in the required sections.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
tests/unittest/llmapi/test_reasoning_parser.py (2)

78-79: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add complete type annotations to the new test functions.

Add -> None to each test function. Use list[str] for delta_texts.

As per coding guidelines, "Annotate every function" and "use precise ... types."

Also applies to: 95-96, 108-109, 119-119, 135-135

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unittest/llmapi/test_reasoning_parser.py` around lines 78 - 79, Update
the new test functions, including
test_deepseek_r1_reasoning_parser_finish_flushes_reasoning and the additional
functions at the referenced locations, with complete annotations: use list[str]
for delta_texts and add -> None to each function signature.

Source: Coding guidelines


65-67: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Make the test-only constant private.

R1_AT_START_KEYS only supports parametrization in this module. Rename it to _R1_AT_START_KEYS.

As per coding guidelines, "Prefix non-public names with _."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unittest/llmapi/test_reasoning_parser.py` around lines 65 - 67, Rename
the test-only constant R1_AT_START_KEYS to _R1_AT_START_KEYS and update every
reference to it in the module, preserving its parametrization behavior.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tests/unittest/llmapi/test_reasoning_parser.py`:
- Around line 78-79: Update the new test functions, including
test_deepseek_r1_reasoning_parser_finish_flushes_reasoning and the additional
functions at the referenced locations, with complete annotations: use list[str]
for delta_texts and add -> None to each function signature.
- Around line 65-67: Rename the test-only constant R1_AT_START_KEYS to
_R1_AT_START_KEYS and update every reference to it in the module, preserving its
parametrization behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 88d07722-0ea2-4ab1-9d81-098fc96cceae

📥 Commits

Reviewing files that changed from the base of the PR and between a9544e0 and cfbc7ce.

📒 Files selected for processing (2)
  • tensorrt_llm/llmapi/reasoning_parser.py
  • tests/unittest/llmapi/test_reasoning_parser.py

@Yigtwxx

Yigtwxx commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@zhaoyangwang-nvidia — sorry for the direct ping, and thanks for triggering the pipeline on #17159; that one is now merged (7608520).

This PR is the sibling fix from the same pass and it hasn't been picked up yet: no reviewer assigned, and L0_MergeRequest_PR has never run on its head (f61b492). It still merges cleanly against current main.

Same shape of argument as #17159 — it doesn't propose new behaviour, it makes one class honour a contract its siblings in the same file already honour: BaseReasoningParser.finish() exists to flush the tail self._buffer holds back, the serving layer really does call it (serve/postprocess_handlers.py, serve/responses_utils.py), and NemotronV3ReasoningParser / Gemma4ReasoningParser both implement it — DeepSeekR1Parser did not, so a stream ending with a partial </think tag in the buffer silently dropped those characters. The implementation follows Gemma4's line for line rather than introducing a variant of my own.

Regression tests are in tests/unittest/llmapi/test_reasoning_parser.py, which is already in the L0 CPU pre-merge list, so a run would actually exercise them.

Could you either trigger /bot run or point it at whoever owns this area? Happy to rebase first if that helps.

Comment thread tests/unittest/llmapi/test_reasoning_parser.py Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/unittest/llmapi/test_reasoning_parser.py`:
- Line 119: Update the chat_template_kwargs parameter annotation in the affected
test helper to use the precise type dict[str, bool] instead of an
unparameterized dict, preserving the existing function behavior and other
annotations.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 765075d5-3f88-4762-b6a0-73ebee8a4657

📥 Commits

Reviewing files that changed from the base of the PR and between f61b492 and f8923af.

📒 Files selected for processing (1)
  • tests/unittest/llmapi/test_reasoning_parser.py

Comment thread tests/unittest/llmapi/test_reasoning_parser.py Outdated
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@zhaoyangwang-nvidia

Copy link
Copy Markdown
Collaborator

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #63990 [ run ] triggered by Bot. Commit: b35fd14 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #63990 [ run ] completed with state SUCCESS. Commit: b35fd14
/LLM/main/L0_MergeRequest_PR pipeline #51925 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@zhaoyangwang-nvidia

Copy link
Copy Markdown
Collaborator

/bot run

Yigtwxx added 4 commits August 5, 2026 12:28
parse_delta withholds a trailing fragment that could still grow into a
<think>/</think> tag. DeepSeekR1Parser never overrode finish(), so when a
stream ended while such a fragment was buffered the characters were
silently dropped from content or reasoning_content.

Override finish() to emit the withheld text, attributing it to the block
it was withheld in. A buffer holding exactly a complete tag is a
delimiter rather than model output and is still discarded.

NemotronV3ReasoningParser and Gemma4ReasoningParser already implement
this flush; this brings the shared base parser in line with them.

Signed-off-by: Yigtwxx <yigiterdogan023@gmail.com>
…t helpers

Follow-up on review feedback: the tests added for DeepSeekR1Parser.finish()
lacked return annotations and used a bare list type, and the parser-key
constant is module-internal. CODING_GUIDELINES requires every function to be
annotated and non-public names to be prefixed with an underscore.

Signed-off-by: Yigtwxx <yigiterdogan023@gmail.com>
…inimal set

The new coverage cost 37 parametrized cases for a 25-line fix. CPU pre-merge
runtime is a shared cost paid by every PR in the repo, so keep net new cases
down: one (parser_key, text) pair per branch of finish() in the stream /
non-stream property test, which subsumes the example-based tests of the
individual branches, plus one multi-character delta case because streaming a
character at a time never reaches the rfind branch of parse_delta that fills
_buffer from a delta carrying both text and a partial tag.

The extra deepseek_v4 case covers the delegating subclass named in the PR
scope, whose finish() forwards to DeepSeekR1Parser or IdentityReasoningParser
depending on the thinking flag.

Signed-off-by: Yigtwxx <yigiterdogan023@gmail.com>
…arser tests

Narrow `chat_template_kwargs` to `dict[str, bool]`, which is what the
parametrized values are, and reshape the two new docstrings so the summary
line stands alone and the closing quotes sit on their own line - ruff-legacy
flagged D205 and D209 on both.

Signed-off-by: Yigtwxx <yigiterdogan023@gmail.com>
@Yigtwxx
Yigtwxx force-pushed the fix/reasoning-parser-finish-flush branch from b35fd14 to 2d251e5 Compare August 5, 2026 09:29
@Yigtwxx

Yigtwxx commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@zhaoyangwang-nvidia thanks for triggering it. The L0 run came back FAILURE and I cannot open either report link — both nv/trt-llm-cicd/... and the failure-analysis URL are unreachable from outside NVIDIA's network — so I cannot see which tests failed. Could you paste the failing test names?

In the meantime I did two things.

1. Rebased onto current main (9564b3b) and force-pushed (2d251e5). The branch was based on a9544e0, 81 commits behind, so an unrelated failure already fixed upstream was a live possibility. That variable is now gone. No conflicts; the only overlap was main adding pytestmark = pytest.mark.cpu_only to the same test file, which my changes sit below.

2. Audited what in L0 can actually reach the changed code path. There is exactly one test: test_e2e.py::test_openai_reasoning[pytorch] (l0_a10.yml:128), which runs _test_openai_reasoning.py. Within it, test_reasoning_parser_streaming is the only case that ends a stream while a parser is live — the max_completion_tokens=2 half that asserts exact chunk counts:

assert len(content_chunks) == 0
if model_name.startswith("Qwen3"):
    assert len(reasoning_content_chunks) == 1
else:
    assert len(reasoning_content_chunks) == 2

I believe it is unaffected, for two reasons:

  • apply_reasoning_parser merges the finish() result into the last delta's result rather than emitting an extra chunk (postprocess_handlers.py:176-182), so a non-empty flush lengthens the final chunk instead of adding one. The count can only move if the last delta previously produced an empty reasoning_content and now produces a non-empty one.
  • For both parametrized models the buffer is empty when the stream ends, so finish() contributes "". Qwen3: delta 1 is <think>, which is withheld as a complete-tag prefix and emits nothing; delta 2 consumes it, enters reasoning and emits the remainder, leaving the buffer empty — 1 chunk. DeepSeek-R1 starts inside the reasoning block, both deltas emit, buffer empty — 2 chunks. Neither would produce those documented counts today if a fragment were being withheld at the end.

I have no GPU or model weights here, so that is a code reading rather than a run — happy to be wrong. If that test is the one failing, I will fix it; if the failures are elsewhere, knowing the names is enough for me to take it from there.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64013 [ run ] triggered by Bot. Commit: 2d251e5 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64013 [ run ] completed with state SUCCESS. Commit: 2d251e5
/LLM/main/L0_MergeRequest_PR pipeline #51945 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Yigtwxx

Yigtwxx commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

#51945 on the rebased head (2d251e5) also came back FAILURE, so the stale base was not the cause. I still cannot open either report link, so I still do not know which tests failed — the failing test names would unblock this immediately.

What I can contribute without them:

Every L0 verdict posted repo-wide between 07:30 and 11:30 UTC today, excluding this PR:

verdict runs
SUCCESS 3
FAILURE 12
UNSTABLE 7

Green rate 3/22. Several PRs also flipped between reruns of the same branch — #17291 went UNSTABLE → FAILURE → UNSTABLE, #17282 went FAILURE → UNSTABLE. That is the shape of a broadly unhealthy pipeline rather than 22 individually broken PRs, and it is the reason I am reluctant to start changing code to chase a failure I cannot see.

Why I do not think this PR can be the cause. The source diff is one added method; parse() and parse_delta() are byte-for-byte unchanged. DeepSeekR1Parser previously inherited BaseReasoningParser.finish(), which always returned an empty result. The new override returns a non-empty result only when _buffer is non-empty and is not exactly <think> or </think>. So the complete set of behavior changes is: a stream that ends while a partial-tag fragment is withheld now emits that fragment instead of dropping it. Any test that flips has to stream through a DeepSeekR1Parser-backed parser and end mid-fragment.

The only L0 test that streams through one is test_e2e.py::test_openai_reasoning[pytorch] (l0_a10.yml:128). Its max_completion_tokens=2 case asserts exact chunk counts, and those counts cannot move here: apply_reasoning_parser merges the finish() result into the last delta rather than emitting an extra chunk (postprocess_handlers.py:176-182), and for both parametrized models the buffer is empty when the stream ends — Qwen3 consumes its withheld <think> on the second delta, DeepSeek-R1 starts inside the reasoning block and emits both deltas. If a fragment were being withheld at the end today, the documented counts of 1 and 2 would not hold on main either.

One thing I got wrong in the description, now fixed. KimiK2ReasoningParser also subclasses DeepSeekR1Parser without overriding finish(), so kimi_k2 / kimi_k25 pick the flush up as well — I had not listed them. Its extra delimiter <|tool_calls_section_begin|> is not part of the discard check, so a buffer holding exactly that token is now flushed as text rather than dropped. I think that is the better of the two behaviors, but it is a real consequence and I would rather you see it than not; happy to teach the discard check about that token if you prefer.

If the failures do turn out to be mine, I will fix them — I just need the names, since I have no way to see them and no GPU here to reproduce.

@Yigtwxx

Yigtwxx commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Update while waiting for the failing test names — I found a data source I did not know was public, and it changes what I can say about this.

The blossom-ci commit status on the PR head carries the L0 test tally, and that status is visible from outside NVIDIA even though the report links are not. For 2d251e5 (pipeline #51945) it reads:

failure10016 passed, 9 failed, 1086 skipped

So I now know the shape of the failure, just not the names.

The same tally across every open PR that ran a full L0 today

PR passed failed skipped
17157 (this PR) 10016 9 1086
17263 12513 12 1318
17283 11652 18 1052
17245 11330 17 1244
17299 10008 12 766
17243 8760 12 636

Every comparable full-suite run today failed tests, and this PR has the lowest failure count of the set. Smaller partial runs show the same pattern (17301: 4 failed, 17271: 6 failed, 17269: 4 failed, 17264: 3 failed, 17277: 2 failed).

main is failing these too

Two commits merged to main today exist only to absorb pipeline failures:

Both landed at 02:53 and 03:45 UTC, i.e. before the base this PR is rebased onto (9564b3b4f, 08:25 UTC), so run #51945 already had them applied and still hit 9 failures. Whatever these 9 are, they are not something a newer base fixes.

Where that leaves the change itself

Unchanged from my last comment, and still checkable from the diff alone: the source delta is one added method, parse and parse_delta are byte-identical to main, and finish() can only return a non-empty result when _buffer holds a non-empty, non-delimiter fragment at end of stream. Nine failures spread across a 10k-test suite is not a shape that one end-of-stream flush in one parser can produce.

I am not asking anyone to take that on faith, though. If you can paste the 9 test names (or just the test file paths), I will read them and either fix them or show why they are unrelated — that is a five-minute exercise once I can see them, and I would rather do it than argue from counts. Failing that, a re-run would tell us whether 9 is even stable across attempts; #17291 and #17282 both changed verdict on re-run today without a code change.

@Yigtwxx

Yigtwxx commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up, and it supersedes the framing of my previous comment — I found the precedent that I think settles what to do next, and I also found that one statistic I was about to lean on is biased, so I am flagging that myself.

The same commit produced both verdicts on my sibling PR

#17159 — the parser fix from the same pair, merged yesterday — ran L0 three times:

pipeline commit verdict
#51648 5fdb20a FAILURE
#51808 30897c3 FAILURE
#51843 30897c3 SUCCESS

#51808 and #51843 are the same commit, no push in between. One failed, one passed, and the one that passed is the one that merged. The blossom-ci tally for #51808 was 12495 passed, 11 failed, 1245 skipped — i.e. that FAILURE had more failing tests than this PR's 9, on code that was green two hours later and is now in main.

So a FAILURE verdict on this pipeline is demonstrably not a property of the commit under test.

This PR has had two runs; #17159 needed three

  • #51925 (b35fd14): 3492 passed, 1 failed, 749 skipped
  • #51945 (2d251e5, rebased onto 9564b3b4f): 10016 passed, 9 failed, 1086 skipped

Note the first run only executed 3492 tests and failed one of them — the two runs did not even test the same surface, which is another reason the failures look environmental rather than diff-driven.

My concrete ask is therefore just: /bot run once more. That is exactly the sequence that got #17159 merged, and it costs less than either of us reading a 10k-test report. If the third run is red too, that is a real signal and I will stop asking and start digging — but at that point I will need the test names, since I still cannot open any report link and have no GPU here to reproduce.

Correcting myself on one point

In my previous comment I was building toward "no full L0 run is ever green". I checked before claiming it, and it is not a sound claim — the L0-Test GitHub Actions workflow that publishes the tally only runs for failing pipelines. I verified this directly: of the 8 SUCCESS pipelines on open PRs today, 0 have a published tally; of the 48 FAILURE pipelines, 34 do. So the 96-run distribution I collected (3–38 failures, mean 12.6, this PR at 9) describes failing runs only and cannot be used to argue that green is unreachable. It does still place this PR in the low tail of failing runs, and the verdict split across open PRs today is 8 SUCCESS / 10 UNSTABLE / 48 FAILURE — but I did not want to hand you a number that does not mean what it looks like it means.

The #51808 vs #51843 pair above needs no statistics and is checkable in two clicks from #17159's comment history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Streaming reasoning parser drops text buffered at the end of the stream

4 participants