fix: high-severity bugs in incremental index, CLI entry, pr-comment, tests extractor#123
Conversation
🦋 Changeset detectedLatest commit: c98251f The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (37)
📝 WalkthroughWalkthroughThis PR fixes four high-severity issues in the codemap package: git porcelain parsing for file paths with spaces using NUL-terminated output, describe.each AST handling preventing parent stack corruption, symlink-aware main module detection via canonical path resolution, and TTY stdin safety for the PR comment CLI command. ChangesHigh-Severity Bug Fixes Batch
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
Use diff --name-status -z for commit deltas, lowercase ext in candidate filter, and cover mixed delete+change incremental runs plus comma-safe impact walks.
7dde111 to
c98251f
Compare
Summary
describe.eachcurried-callparentStackleak (wrongparent_indexon sibling tests).git status --porcelain -zso spaced paths are included in incremental index deltas.isMainModule()so npm bin / symlinked entrypoints run the CLI.codemap pr-comment -when stdin is a TTY (no indefinite hang).Test plan
bun test src/extractors/behavioral.test.tsbun test src/application/get-changed-files.test.tsbun test src/index-entry.test.tsbun test src/cli/cmd-pr-comment.test.tsbun run checkSummary by CodeRabbit
Release Notes
Bug Fixes
Tests