You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CI] Check real I/O progress during worktree deletion - #27620
The real-Git deletion test uses a fragile duration ratio. This change instead requires file I/O to complete while deletion is visibly in progress.
What Changed
Use the existing 30 outside hardlinks to detect partial deletion. Require an asynchronous file check to start and finish inside that interval.
Keep 3,000 real files, eight cases, Git/deletion assertions, queue limit below 32 and 60/120-second budgets. Per-check latency remains logged; its quantitative budget is removed.
Why
A loaded 2,377-file run reported 83.37 ms for a file check against 81.73 ms for deletion. Actual progress tests nonblocking behavior without extra waits or files.
Linked Issue
Maintainer test reliability; no separate issue.
Visual Proof
N/A — test assertion only.
Testing
Real-Git control
Outcome
Observed evidence
Isolated candidate with original production code
8 passed
19 I/O completions during 32 ms deletion
Verification-only synchronous deletion
7 pass, one expected failure
0 completions during 135 ms deletion
Real synchronous negative control and independent source/actual review passed.
Loaded Bun run: 2,377 files; 22,656 pass, 194 skips, five todo, zero errors. All Git cases pass: 1,622 I/O completions during 68 ms deletion.
Exact candidate formatter, ordinary/native-plugin lint, changed-quality and configured tc:node passed.
AI Disclosure
Codex implementation and independent agent review.
Review
Only the test ships; the synchronous production mutation is verification-only.
Agent skill upstream boundary
Not applicable; no upstream skill code copied.
Notes
The loaded correctness control cost 358.771 s wall/1,008.762 s CPU. The independent runtime comparison is separate and provides no claimed gain here. Current default-branch target/configuration/dependency pins match the qualified source.
Loaded and isolated workloads differ; no speed or failure-frequency improvement is claimed. A deletion too fast to expose a partial interval can still fail this observation. No per-stat latency guarantee or production/fleet benefit is claimed. Focused setup/tests: 7.423 s wall/8.421 s CPU. Ten final-gate commands: 95.832 s wall/306.867 s CPU, including configured Node typecheck (86.043 s) and changed-quality (4.387 s). Object export: 6.785 s separately, CPU unmeasured. Focused controller wall: 52.118 s separately. Initial manifest/PATH stops are retained. Ordinary CI completed 29 checks: 13 successes, 16 skips. The one validation head used 3,332 assigned runner-seconds across 13 allocations, plus 1,763 queue-seconds. No failures, cancellations or reruns.
Checklist
Mechanism, alternative and platform/SSH scope considered
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: dc9bc168-9b35-4b15-8fa7-493485d5b15f
📥 Commits
Reviewing files that changed from the base of the PR and between b022406 and 0d17eea.
📒 Files selected for processing (1)
src/main/git/worktree-removal-real-git.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
Walkthrough
The real-Git worktree-removal test now detects when checkout deletion starts by checking sentinel link counts. It counts successful stat operations during deletion and requires at least one. The test retains its queued-filesystem-request limit and removes the maximum stat-latency threshold.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to 0d17e
This change updates only a test, which still checks for real I/O progress during deletion. It no longer sets a per-stat latency limit, consistent with the stated scope; no actionable merge-blocking risk remains.
Pre-merge checks | 5
✅ Passed checks (5 passed)
Check name
Status
Explanation
Docstring Coverage
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly and concisely describes the main change: adding a real I/O progress check during worktree deletion.
Description check
The description is detailed and covers the change, rationale, testing, scope, visual proof, AI disclosure, and compatibility considerations. The linked issue field does not contain an issue reference,…
✨ Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
The real-Git deletion test uses a fragile duration ratio. This change instead requires file I/O to complete while deletion is visibly in progress.
What Changed
Use the existing 30 outside hardlinks to detect partial deletion. Require an asynchronous file check to start and finish inside that interval.
Keep 3,000 real files, eight cases, Git/deletion assertions, queue limit below 32 and 60/120-second budgets. Per-check latency remains logged; its quantitative budget is removed.
Why
A loaded 2,377-file run reported 83.37 ms for a file check against 81.73 ms for deletion. Actual progress tests nonblocking behavior without extra waits or files.
Linked Issue
Maintainer test reliability; no separate issue.
Visual Proof
N/A — test assertion only.
Testing
tc:nodepassed.AI Disclosure
Codex implementation and independent agent review.
Review
Only the test ships; the synchronous production mutation is verification-only.
Agent skill upstream boundary
Notes
The loaded correctness control cost 358.771 s wall/1,008.762 s CPU. The independent runtime comparison is separate and provides no claimed gain here. Current default-branch target/configuration/dependency pins match the qualified source.
Loaded and isolated workloads differ; no speed or failure-frequency improvement is claimed. A deletion too fast to expose a partial interval can still fail this observation. No per-stat latency guarantee or production/fleet benefit is claimed. Focused setup/tests: 7.423 s wall/8.421 s CPU. Ten final-gate commands: 95.832 s wall/306.867 s CPU, including configured Node typecheck (86.043 s) and changed-quality (4.387 s). Object export: 6.785 s separately, CPU unmeasured. Focused controller wall: 52.118 s separately. Initial manifest/PATH stops are retained. Ordinary CI completed 29 checks: 13 successes, 16 skips. The one validation head used 3,332 assigned runner-seconds across 13 allocations, plus 1,763 queue-seconds. No failures, cancellations or reruns.
Checklist