Repository navigation
docs: add one-way sync orphan checks to the review guide - #3522
dosubot[bot] wants to merge 1 commit into
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the review-guide index so reviewers can identify one-way sync creation and cleanup logic, then follow the relevant guidance to validate orphan removal ownership and protection against destructive cleanup. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="CLAUDE.md" line_range="86" />
<code_context>
+| ג'וב או לולאה שיוצרים עותק ממקור אמת "אם חסר" — `if not ...exists(` ואחריו clone / create / `upsert` / אינדוקס — או שלב שמוחק מה שהמקור כבר לא מכיר (`prune`, `orphan`, `janitor`, `reconcile`) | `BY-STACK/cron-jobs.md`, "סנכרון חד-כיווני" + `bugbot-rules/one-way-sync-orphans.md` — מי מוחק את העותק כשהמקור מפסיק לרשום אותו, ומה עוצר מחיקה של הכול |
</code_context>
<issue_to_address>
**issue:** The new review-guide entry points readers to `bugbot-rules/one-way-sync-orphans.md`, but that rule file does not exist. Following this guidance causes the documented `codekeeper_get_repo_file` lookup to fail, so reviewers cannot access the rule they are instructed to apply.
**Triggers:** When a reviewer encounters a one-way synchronization or orphan-cleanup pattern.
**Suggested fix:** Add and approve the referenced rule before adding this trigger, or defer this table entry until the rule file exists.
```suggestion
```
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: CLAUDE.md:86
| | `clientX` בחיסור, `left`/`right`, גרירה, שינוי גודל, או הצמדה ל-viewport | `BY-STACK/hebrew-source.md` H7 + `bugbot-rules/rtl-geometry-and-clamp.md` | | ||
| | `EWMA` / `_ewma`, `anomaly_detected`, `cooldown`, `first_ts`, `adaptive_*_threshold_*` | `RECURRING-PATTERNS.md` R9 + `BY-STACK/observability.md` | | ||
| | הרצה ראשונה של ג'וב סנכרון: `baseline`, `last_*_check_time`, `if not last_seen` | `BY-STACK/cron-jobs.md` דפוס 10 — מה ההרצה הראשונה שולחת | | ||
| | ג'וב או לולאה שיוצרים עותק ממקור אמת "אם חסר" — `if not ...exists(` ואחריו clone / create / `upsert` / אינדוקס — או שלב שמוחק מה שהמקור כבר לא מכיר (`prune`, `orphan`, `janitor`, `reconcile`) | `BY-STACK/cron-jobs.md`, "סנכרון חד-כיווני" + `bugbot-rules/one-way-sync-orphans.md` — מי מוחק את העותק כשהמקור מפסיק לרשום אותו, ומה עוצר מחיקה של הכול | |
There was a problem hiding this comment.
issue: The new review-guide entry points readers to bugbot-rules/one-way-sync-orphans.md, but that rule file does not exist. Following this guidance causes the documented codekeeper_get_repo_file lookup to fail, so reviewers cannot access the rule they are instructed to apply.
Triggers: When a reviewer encounters a one-way synchronization or orphan-cleanup pattern.
Suggested fix: Add and approve the referenced rule before adding this trigger, or defer this table entry until the rule file exists.
| | ג'וב או לולאה שיוצרים עותק ממקור אמת "אם חסר" — `if not ...exists(` ואחריו clone / create / `upsert` / אינדוקס — או שלב שמוחק מה שהמקור כבר לא מכיר (`prune`, `orphan`, `janitor`, `reconcile`) | `BY-STACK/cron-jobs.md`, "סנכרון חד-כיווני" + `bugbot-rules/one-way-sync-orphans.md` — מי מוחק את העותק כשהמקור מפסיק לרשום אותו, ומה עוצר מחיקה של הכול | |
⏱️ Performance report(No performance test durations collected. Mark tests with |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Update documentation for amirbiron/amir-bug-patterns#32
Add a review-guide entry for jobs or loops that clone, create, upsert, or index copies when missing, and for cleanup steps that prune or reconcile stale copies. It directs readers to the cron-job guidance and orphan-sync rule to check who removes copies no longer tracked by the source and how to prevent deleting everything.
Generated by Dosu
Summary by Sourcery
Document review checks for safely managing copies that are no longer tracked by their source.
Enhancements:
Documentation: