Repository navigation
feat(trace): add FullTracePackages db - #36
Conversation
- Add `FullTracePackages` to db for packages needing full file tracing - Add `youch` to `NonBundleablePackages` (has local assets) - Extract `listPkgFiles()` helper to deduplicate dir listing logic - Skip `fsp.glob` (Node 22+) when no glob pattern is specified
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughCentralizes full-trace package configuration into Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #36 +/- ##
==========================================
+ Coverage 73.11% 73.51% +0.39%
==========================================
Files 5 5
Lines 398 404 +6
Branches 123 124 +1
==========================================
+ Hits 291 297 +6
Misses 74 74
Partials 33 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/trace.ts`:
- Around line 378-392: The listPkgFiles function drops symlinked files and can
false-positive filter paths; change the loop to compute fullPath =
join(entry.parentPath, entry.name), skip entries where any path segment equals
"node_modules" (e.g., split fullPath by path.sep and check segments), and treat
an entry as a file if entry.isFile() OR (entry.isSymbolicLink() && await
isFile(fullPath)); push the fullPath into files; use the existing
isFile(fullPath) utility and entry.isSymbolicLink() to include symlinked targets
while improving node_modules filtering.
🪄 Autofix (Beta)
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: a4813ff1-16fb-4625-b062-b88b3ff5722c
📒 Files selected for processing (3)
scripts/trace.tssrc/db.tssrc/trace.ts
…tPkgFiles - Include symlinked files via isSymbolicLink() + isFile() check - Use segment-based node_modules check instead of substring match
FullTracePackagesexport to DB for packages that their files cannot by analyzed by nftyouchtoNonBundleablePackages(has local assets)Summary by CodeRabbit