Skip to content

[CI] radix-cache: Build unified radix cache test states through production paths - #45334

Merged
hnyls2002 merged 7 commits into
mainfrom
lsyin/urc-test-real-paths
Oct 22, 2026
Merged

hnyls2002 merged 7 commits into
mainfrom
lsyin/urc-test-real-paths

Conversation

@hnyls2002

@hnyls2002 hnyls2002 commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator
  • Reach the states that white-box tests set up by hand through the production paths instead: real host backup, the per-node eviction step for SWA and Mamba tombstones, and the scheduler's init_load_back for restores. This replaces forced lock counts, raw tombstones, and hand-built transfers in the temp-lock, SWA commit load-back, SWA backup window, and auxiliary load tests.
  • Use real requests and a real buffer pipeline in the buffer admission, anchor-lock outcome policy, and EAGLE buffer storage tests.
  • Drive the SWA branching tests through checkpoint. The forward-overshoot test now asserts that the SWA slots beyond the window are freed at checkpoint. The finalize test becomes test_hicache_swa_host_hit_counts_tombstones_inside_the_window: a tombstone inside the window cuts the device prefix, and the tail from it on counts as a host hit.
  • Check the cache-mode vs buffer-mode SWA backup window against real behavior in the storage tests.
  • Drop tests that restate the implementation, duplicate another test, or cannot fail: cascade-evict on a forced Mamba lock, action-apply order, free-values order, the Mamba host-value predicate, the SWA backup collector identity, and tombstone cleanup under a forced parent lock.
  • Fold five tests into the neighbours that assert the same path, keeping their unique assertions: evict-all into the tombstone cascade test, multiple-leaf eviction into eviction accounting, evict-to-host into host-leaf eviction, fresh Mamba slot publication into the Mamba state copy test, and the host-pool release into the dropped TP SWA prefetch test.
  • Trim comments across the kit and the test files: history notes, PR and incident references, banners, docstrings that restate the test name or the next line, and inspector docstrings that duplicate the interface.
  • No production code change; every remaining test case keeps its outcome.

CI States

Latest PR Test (Base): 🚫 Run #39843569112
Latest PR Test (Extra): ❌ Run #39843569302
Latest PR Test (AMD ROCm 10): 🚫 Run #39843568963

@github-actions github-actions Bot added the hicache Hierarchical Caching for SGLang label Oct 20, 2026
…aths

# Conflicts:
#	test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_core.py
@hnyls2002

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 Oct 22, 2026
@hnyls2002

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_core.py test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_hicache.py test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_insert_walk.py test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_kv_events.py test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_load_back.py test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_storage.py test/registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_rust.py test/registered/unit/mem_cache/test_unified_cache_linker.py test/registered/unit/mem_cache/test_hicache_write_back_ordering.py test/registered/unit/mem_cache/test_mamba_path_state_cap.py

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🚀 1-gpu-5090 (10 tests): ✅ View workflow run

cd test/ && python3 registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_core.py
cd test/ && python3 registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_hicache.py
cd test/ && python3 registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_insert_walk.py
cd test/ && python3 registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_kv_events.py
cd test/ && python3 registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_load_back.py
cd test/ && python3 registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_storage.py
cd test/ && python3 registered/unit/mem_cache/unified_radix_cache/test_unified_radix_cache_rust.py
cd test/ && python3 registered/unit/mem_cache/test_unified_cache_linker.py
cd test/ && python3 registered/unit/mem_cache/test_hicache_write_back_ordering.py
cd test/ && python3 registered/unit/mem_cache/test_mamba_path_state_cap.py

@hnyls2002
hnyls2002 merged commit 4f96807 into main Oct 22, 2026
114 of 148 checks passed
@hnyls2002
hnyls2002 deleted the lsyin/urc-test-real-paths branch October 22, 2026 20:04
detain added a commit to detain/sglang that referenced this pull request Oct 30, 2026
… C closure -- the post-merge port queue is now decided

ARRIVAL SCAN (git log 12dc623..2a6c204 --grep) + LIVE gh STATE +
head-sha comparison for EVERY deferred item. Verdicts:
  RELEASED-BY-MERGE: sgl-project#42689 (@ 7a632cf in-range -- the SECTION-B
    cherry is now redundant; behavior note rides the restart).
  CLOSED (C-items whose PRs arrived and whose integration this stack
    performed): C1 (the dedicated merge week WAS merge sgl-project#5; all eight
    precursor PRs in-range), C2 (sgl-project#44993/sgl-project#44994 -- B5), C3 (sgl-project#45232/
    sgl-project#45236/sgl-project#45334 -- B2), C4 (sgl-project#45238/sgl-project#45241/sgl-project#45242 -- B3), C5 (sgl-project#44912/
    sgl-project#44913 -- arrived; entry-230 canary re-planted as its guard),
    C9 (sgl-project#39727 -- verified OPT-IN, no purge; BOOT_DELTA anti-needle),
    C0a (arrival shas already recorded at entry 310 -- Section C now
    carries NO open code-integration items: C6/C10 retain only their
    explicitly-named docs/boot-measurement remainders, re-stated).
  STILL-OPEN: sgl-project#44342 (head unchanged; auto-merge comfort LOST to
    #46970x), sgl-project#46153/sgl-project#37106/sgl-project#32479/sgl-project#45391 (gh CONFLICTING -- stale
    bases, rebase before any port), sgl-project#41624/sgl-project#42525/sgl-project#42660/sgl-project#44462/sgl-project#35617
    (open, heads unchanged), sgl-project#46191/sgl-project#39845-class (watch-list, none in
    range).
  HOLD STANDS (operator decision, binding): sgl-project#43356/sgl-project#46452/sgl-project#43240/
    sgl-project#43471 KV route -- step-1 'MERGE sgl-project#5 lands first' is NOW MET; the
    sequence may be re-visited ONLY with the post-merge PCIe-IPC
    measurement at an operator sitting. sgl-project#44732: the 'one purge if done
    WITH the merge' premise LAPSED when merge sgl-project#5 completed without it
    -- later execution costs the SAME single purge once; no penalty,
    no haste. Recorded for the operator, not decided by B6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hicache Hierarchical Caching for SGLang run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant