Files
codebase-memory-mcp/tests
Martin Vogel c828105d1e fix(extract): write C variants in graph_buffer's schema
Main's graph_buffer.c ("Definition variants") records a definition's
variant spans as [{"file_path","start_line","end_line"}], and the
test-impact engine reads that schema to find every TEST(...) branch of one
test. This branch's extractor wrote [{"start","end"}]. On the merge with
main, graph_buffer's same-QN merge found a non-empty variants list it could
not read and dropped every span, the definition's own included. The engine
then no longer found the second #if branch of TEST(alpha_uses_lib), so
test_impact_engine_variant_tests_are_one_test reported suite alpha
UNMAPPED, in CI on macOS and Windows and locally.

The extractor now writes the shared schema, with the file path
JSON-escaped. The C-preprocessor-only gate and the one-carrier rule are
unchanged, and the variants assertions use the shared format.

test_impact_engine, extraction, pipeline, graph_buffer and
conditional_variants: 857 passed.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 22:16:36 +02:00
..