Skip to content

[Fix] tests: Initialize DCP replay backend capability - #47736

Merged
hnyls2002 merged 1 commit into
mainfrom
codex/fix-dcp-replay-fixture-1101
Nov 1, 2026
Merged

hnyls2002 merged 1 commit into
mainfrom
codex/fix-dcp-replay-fixture-1101

Conversation

@mickqian

@mickqian mickqian commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Initialize the DCP replay test backend's skips_prefill_metadata_on_idle_dp_rank capability to the AttentionBackend default (False). This prevents test_replay_reuses_the_captured_gather_buffer from raising AttributeError in CPU CI; production behavior and the test's buffer reuse assertions are unchanged.


CI States

Latest PR Test (Base): ✅ Run #41294345399
Latest PR Test (Extra): ❌ Run #41294345327
Latest PR Test (AMD ROCm 10): ❌ Run #41294345356

Tip

Base CI only covers the core cases, and its workload may not exercise your change. Use /rerun-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@mickqian

mickqian commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Nov 1, 2026
Phoenix3334 added a commit to Phoenix3334/sglang that referenced this pull request Nov 1, 2026
Port the one-line test-fixture correction from mickqian in sgl-project#47736 (be43d56). Initialize skips_prefill_metadata_on_idle_dp_rank=False on the mocked attention backend to fix the upstream CPU replay test. Production kernel/model code and the B200 tests are unchanged.

Phoenix3334 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Hi @BBuf, adding downstream CI evidence for this fixture correction, which has blocked two of my otherwise unrelated PRs. Thanks to mickqian for identifying and fixing it.

The failure in both cases is TestDcpReplayMetadata.test_replay_reuses_the_captured_gather_buffer raising:

AttributeError: 'types.SimpleNamespace' object has no attribute
'skips_prefill_metadata_on_idle_dp_rank'

The mocked backend does not inherit AttentionBackend's False default for this capability. Initializing it explicitly lets the replay test reach its existing buffer-reuse assertions without changing production behavior.

Downstream PR Before carrying this fix After carrying this fix
#47614 CPU job fails with the missing-capability AttributeError. DCP test job reports "file": "test/registered/unit/model_executor/test_prefill_cuda_graph_dcp.py", "passed": true. All 20 CPU shards passed in that run.
#43786 CPU job independently fails with the same missing-capability error. The DCP test file was identical to its main base. Carried the same one-line fix in 289c324. In the new CPU shard, a different test, test_decode_queue_cleanup.py::TestHeldDestinationPublication::test_publishes_while_retracted_requests_wait, fails first because its scheduler fixture lacks tree_cache. The suite stops before executing the scheduled DCP test, so this second run does not yet provide an after-fix DCP execution result.

Both downstream copies of the corrected DCP file match this PR's source commit be43d568ca8115e173bd4b9f5d106a3060ae1f8b exactly (Git blob 2b48a777d18cfd2571852ec4f43e8513f706e46a).

For the separate tree_cache failure, I also compared the failing test and disaggregation/decode.py between the CI merge 632c7f4 and its actual upstream parent e298298: both files are unchanged from that upstream parent. It is a separate fixture issue, not evidence that the DCP capability correction failed.

This gives two downstream reproductions of the original error and one completed passing CPU validation of the exact corrected DCP file. It does not establish that the complete downstream CI matrices are green or provide GPU DCP runtime coverage. Could you help review this small fixture correction when available?

Follow-up on the separate blocker: the missing tree_cache fixture is already addressed by DarkSharpness's #47758, whose targeted CPU run passed 12 tests. I have carried that independent fixture correction into #43786 as fddd180; its next CI run was blocked by the 120-minute per-user cooldown before tests executed (earliest retry under the logged cooldown: 2026-11-01 16:28:02 UTC). This does not change the completed DCP passing evidence from #47614 above.

@DarkraiHL

DarkraiHL commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for fixing this, @mickqian! Adding some context from #45200, which @BBuf has already LGTM'd.

That PR's exchangeDevice failure is fixed in 1c38e9a, and base-a-test-cpu (12) passes now. Its remaining base-a-test-cpu (16) failure is test_prefill_cuda_graph_dcp.py, the same test this PR fixes. Main's scheduled run fails that shard
too, so #45200 is waiting on this one. I'll update that branch once this lands.

Separately, stage-b-test-large-8-gpu-mi35x-disaggregation-amd also failed on #45200 after merging main, though it passed on 1c38e9a. It looks intermittent: other recent PRs show both passes and failures on this job, including this one.

@BBuf BBuf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[BBuf Review Agent] LGTM. Let's wait for the related CPU CI.

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

Labels

run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants