Summary
DbPathResolverTests.ResolveDataDirForQuery_* fail in this workspace because ResolveDataDirForQuery resolves to the temp root .cdidx/codeindex.db instead of the test project or ancestor workspace .cdidx directory.
Evidence
Command:
dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --no-restore --filter "FullyQualifiedName~DbPathResolverTests.ResolveDataDirForQuery"
Observed on both net8.0 and net9.0:
ResolveDataDirForQuery_PrefersOutermostAncestorCdidx expects the temp project root .cdidx/codeindex.db, but gets the temp root .cdidx/codeindex.db.
ResolveDataDirForQuery_FallsBackToCurrentDirectoryWhenNoAncestorCdidxExists expects the child directory .cdidx/codeindex.db, but gets the temp root .cdidx/codeindex.db.
Impact
Full suite validation can fail independently of the code under test, and the tests no longer verify the intended ancestor-workspace fallback behavior.
Notes
Found while validating a separate PR for CLI/MCP input bounds. Not addressed there to keep that PR scoped.
Summary
DbPathResolverTests.ResolveDataDirForQuery_*fail in this workspace becauseResolveDataDirForQueryresolves to the temp root.cdidx/codeindex.dbinstead of the test project or ancestor workspace.cdidxdirectory.Evidence
Command:
Observed on both
net8.0andnet9.0:ResolveDataDirForQuery_PrefersOutermostAncestorCdidxexpects the temp project root.cdidx/codeindex.db, but gets the temp root.cdidx/codeindex.db.ResolveDataDirForQuery_FallsBackToCurrentDirectoryWhenNoAncestorCdidxExistsexpects the child directory.cdidx/codeindex.db, but gets the temp root.cdidx/codeindex.db.Impact
Full suite validation can fail independently of the code under test, and the tests no longer verify the intended ancestor-workspace fallback behavior.
Notes
Found while validating a separate PR for CLI/MCP input bounds. Not addressed there to keep that PR scoped.