chore(meta): drop unused builder materialize stack after EDS-2 - #246
Conversation
- Remove materializeEffectiveModels and its merge/clone helpers now that Persist recomputes via ExpandModelsAlongExtends / E2. - Point persist helper coverage at ListDeclarations PreloadTree instead of the deleted loadLatestModelByPath wrapper. Co-authored-by: Cursor <cursoragent@cursor.com>
📝 WalkthroughWalkthroughThe change removes effective-model materialization from ChangesModel materialization removal
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/module/artifact/build/backend/builder_test.go`:
- Around line 636-639: Update the declaration assertion in the test to require
exactly one result by checking len(decls) == 1 before accessing decls[0].
Preserve the existing nil validation for the sole declaration and the subsequent
loaded assignment.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 915fc032-d11f-4f4d-be8d-c616e576ab05
📒 Files selected for processing (2)
internal/module/artifact/build/backend/builder.gointernal/module/artifact/build/backend/builder_test.go
💤 Files with no reviewable changes (1)
- internal/module/artifact/build/backend/builder.go
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
User description
Summary
materializeEffectiveModelsstack fromModuleBuildernow that EDS-2 Persist writes pure declarations and recomputes viaExpandModelsAlongExtends/ E2 (#244/#245).meta.ListDeclarationsdirectly in the persist helper test..dev/docs/.../meta-effective-dual-store-design.md(§8/§8.1/§9.1/§11; gitignored, not in this PR).Test plan
go test ./internal/module/artifact/build/backend/ ./pkg/meta/ -count=1Made with Cursor
PR Type
Refactoring, Tests
Description
Go Core: Remove obsolete
materializeEffectiveModelsand helper functions fromModuleBuilder.Go Core: Update builder unit tests to call
meta.ListDeclarationsdirectly instead of deleted helpers.No TypeScript module changes (
modules/) or new source files requiring SPDX headers.File Walkthrough
builder.go
Drop dead materialize and model cloning helper stackinternal/module/artifact/build/backend/builder.go
materializeEffectiveModelsand its internal helper functions(
mergeOrderedFields,mergeOrderedServices,computeEffectiveMeta,loadLatestModelByPath, clone helpers).meta.RecomputeKeys.builder_test.go
Adapt builder backend unit tests to use meta.ListDeclarationsinternal/module/artifact/build/backend/builder_test.go
TestMergeCloneAndMaterializedHelpersassociated with deletedmaterialize stack.
TestPersistHelpersAndBuildto testmeta.ListDeclarationsdirectly with
PreloadTree: true.Summary by CodeRabbit