Repository navigation
fix(observability): meter checkpoint git commands so their dashboards stop reading empty - #129
Conversation
… stop reading empty Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview
New effect tests assert per-operation success/failure counts (including allowed non-zero exits), duration samples, and that a full checkpoint capture increments metrics once per git process, including streamed stdout handling. Reviewed by Cursor Bugbot for commit dbe982d. Bugbot is set up for automated code reviews on this repo. Configure here. |
📝 Walkthrough
Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
🔇 Additional comments: 1
apps/server/src/vcs/GitVcsDriver.ts-512-516: 1
512-516: 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Count rejected non-zero Git exits as failures.
withMetricslabels the exit ofprocess.run, not the final Git operation. IndiffCheckpoints,allowNonZeroExit: truelets a non-zero exit reach this wrapper as a success. The caller then raisesVcsProcessExitError. The failure counter therefore misses that checkpoint diff failure. Preserve expected non-zero results, but classify exits that callers reject as failures in the command metric. (effect.website)
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c7ad88f2-43cb-43c0-839d-211311e5cb93
📒 Files selected for processing: 2
apps/server/src/vcs/GitVcsDriver.test.tsapps/server/src/vcs/GitVcsDriver.ts
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Need help on this PR? Tag
@codesmith-botwith what you need.