Repository navigation
refactor: remove the unused file bundling engine - #808
Merged
Merged
Conversation
ajianaz
force-pushed
the
refactor/remove-bundling-engine
branch
from
November 17, 2026 10:17
5d77ad2 to
e4ebe72
Compare
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.
What
src/engine/bundling/grouping.rs(625 lines) and the data types only it used (FileGroup,GroupingKey,LanguageFamily,GroupingStats) are deleted, together with their 33 tests, anddiff_parser::extract_added_lineswith its test. About 1,000 lines go.BundlingConfigandGroupingStrategystay (insrc/engine/bundling/types.rs), so a.cora.yamlwith abundling:section keeps loading; the parsing and merge tests are untouched. The keys never had an effect.docs/configuration.mdsays the section is deprecated with no effect and points toreview.max_chunk_charsfor large diffs;docs/roadmap.mdno longer lists the feature as done.ExtractedSymbol.line,raw,ContextChain.stats) keep a narrowallow(dead_code)with an honest comment;AstNode.parentkeeps one that points to index: keep the parent scope of methods (AstNode.parent is computed and then dropped) #807, which decides whether to store it or drop it.Why
The grouping engine was complete and never called by
cora revieworcora scan, while the roadmap called the feature done and the config documented it. Review already splits a large diff by a character budget (#733), and nothing shows that grouping by directory or language would improve a review (that cannot be measured without a model key), so the dead code goes rather than waiting to be wired in. Closes #792.Testing
cargo test --features tree-sitter: 1519 passed, 0 failed (the 33 fewer tests belonged to the deleted code);cargo fmt --all -- --checkand clippy with-D warningsclean; Cora review of the staged diff: no findings (theindex-breaking-changerule no longer blocks a removal whose callers go too, fix(rules): ignore callers that the same diff deletes in index-breaking-change #795).bundling:section (defaults, full and partial YAML, merge) still pass.