mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
fix(telemetry): fix CI linker errors, check-rename, and docs build
- Add ValidationTracker.cpp to xrpl.test.telemetry target sources (implementation lives in src/xrpld/ but has no OTel SDK dependency) - Change BEAST_DEFINE_TESTSUITE namespace from ripple to xrpl - Replace recursive *.md glob with non-recursive GLOB in XrplDocs.cmake to avoid picking up .claude/instructions.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,8 +27,12 @@ file(
|
||||
src/*.cpp
|
||||
src/*.md
|
||||
Builds/*.md
|
||||
*.md
|
||||
)
|
||||
# Add only top-level .md files (README, CONTRIBUTING, etc.) without
|
||||
# recursing into dot-directories like .claude/ whose files are not
|
||||
# valid Doxygen/CMake sources.
|
||||
file(GLOB doxygen_top_md CONFIGURE_DEPENDS "*.md")
|
||||
list(APPEND doxygen_input ${doxygen_top_md})
|
||||
list(APPEND doxygen_input external/README.md)
|
||||
set(dependencies "${doxygen_input}" "${doxyfile}")
|
||||
|
||||
|
||||
@@ -368,7 +368,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
BEAST_DEFINE_TESTSUITE(MetricsRegistry, telemetry, ripple);
|
||||
BEAST_DEFINE_TESTSUITE(MetricsRegistry, telemetry, xrpl);
|
||||
|
||||
} // namespace test
|
||||
} // namespace xrpl
|
||||
|
||||
@@ -57,6 +57,12 @@ endif()
|
||||
xrpl_add_test(telemetry)
|
||||
target_link_libraries(xrpl.test.telemetry PRIVATE xrpl.imports.test)
|
||||
target_include_directories(xrpl.test.telemetry PRIVATE ${CMAKE_SOURCE_DIR}/src)
|
||||
# ValidationTracker lives in xrpld but has no OTel SDK dependency —
|
||||
# compile its .cpp directly so the test can link without all of xrpld.
|
||||
target_sources(
|
||||
xrpl.test.telemetry
|
||||
PRIVATE ${CMAKE_SOURCE_DIR}/src/xrpld/telemetry/detail/ValidationTracker.cpp
|
||||
)
|
||||
if(telemetry)
|
||||
target_link_libraries(
|
||||
xrpl.test.telemetry
|
||||
|
||||
Reference in New Issue
Block a user