Supercache dev extern mock clean - #10
Open
yyyuanhao426-hash wants to merge 8 commits into
Open
Conversation
This was referenced Jul 22, 2026
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.
Description
将 UbDiag 从 Mooncake 编译期硬依赖(find_package(REQUIRED))改为三层 CMake 自动回退机制,确保用户无论是否安装 UbDiag 均可编译 Mooncake。
新增 extern/ubdiag git submodule,指向 v0.5.1
新增 mooncake-common/FindUbDiag.cmake,实现 Layer 1 submodule → Layer 2 system → Layer 3 mock 三层分发
新增 mooncake-common/ubdiag-mock/ubdiag/auto_perf.h header-only mock,全签名对齐真实 UbDiag v0.5.1(含模板构造函数、Abandon、析构、PerfLevel:uint8_t)
mooncake-transfer-engine/src/CMakeLists.txt、mooncake-store/src/CMakeLists.txt、mooncake-integration/CMakeLists.txt 三处将 find_package(UbDiag REQUIRED) 替换为 include(FindUbDiag.cmake)
新增 mooncake-common/ubdiag-mock/README.md 集成说明文档
Module
mooncake-transfer-engine)mooncake-store)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Test commands:
# Example: bash scripts/run_ci_test.shTest results:
Checklist
./scripts/code_format.shpre-commit run --all-filesand all hooks passAI Assistance Disclosure