Fix noisy dependency and hotspot rankings - #4213
Merged
Merged
Conversation
Widthdom
marked this pull request as ready for review
June 28, 2026 19:56
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.
Summary
depsandhotspots --group-by fileby noise-adjustedranking_scorewhile preserving rawreference_count.Validation
dotnet build src/CodeIndex/CodeIndex.csproj --no-restore -p:UseSharedCompilation=false -p:BuildInParallel=false -m:1dotnet build tests/CodeIndex.Tests/CodeIndex.Tests.csproj --framework net8.0 --no-restore -p:UseSharedCompilation=false -p:BuildInParallel=false -m:1dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --no-build --framework net8.0 --filter "FullyQualifiedName~GetFileDependencies_RanksNoiseAdjustedEdgesBeforeApplyingLimit_Issue4113|FullyQualifiedName~GetFileSymbolHotspots_RanksBroadFilesAheadOfTinyHighCountFiles_Issue4113|FullyQualifiedName~RunDeps_JsonFiltersNoiseSymbolsAndAddsMetadata_Issue3943|FullyQualifiedName~RunDeps_JsonGraph_WritesValidGraphPayload"dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --framework net9.0 --no-restore --filter "FullyQualifiedName~GetFileDependencies_RanksNoiseAdjustedEdgesBeforeApplyingLimit_Issue4113|FullyQualifiedName~GetFileSymbolHotspots_RanksBroadFilesAheadOfTinyHighCountFiles_Issue4113|FullyQualifiedName~RunDeps_JsonFiltersNoiseSymbolsAndAddsMetadata_Issue3943|FullyQualifiedName~RunDeps_JsonGraph_WritesValidGraphPayload" -p:UseSharedCompilation=false -p:BuildInParallel=false -m:1dotnet format CodeIndex.sln --verify-no-changes --no-restore --include src/CodeIndex/Cli/QueryCommandRunner.cs src/CodeIndex/Cli/QueryCommandRunner.Hotspots.cs src/CodeIndex/Database/DbReader.Dependencies.cs src/CodeIndex/Database/DbReader.GraphQueries.cs src/CodeIndex/Database/DbSymbolReader.cs src/CodeIndex/Mcp/McpToolHandlers.cs src/CodeIndex/Models/QueryResults.cs src/CodeIndex/Models/DependencyNoiseProfile.cs tests/CodeIndex.Tests/DbReaderFileDependencyTests.cs tests/CodeIndex.Tests/DbReaderTests.cs tests/CodeIndex.Tests/QueryCommandRunnerTests.csdotnet run --project tools/CodeIndex.Changelog -- checkdotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --jsondotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll deps --format edgelist --limit 20 --exclude-testsdotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll hotspots --group-by file --exclude-tests --limit 20Documentation and changelog
USER_GUIDE.md.changelog.d/unreleased/4113.fixed.md.Follow-up candidates
Fixes #4113