Skip to content

[CI] Check real I/O progress during worktree deletion - #27620

Merged
nwparker merged 1 commit into
mainfrom
nwparker/ci-worktree-delete-io-progress-20261011
Oct 11, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/ci-worktree-delete-io-progress-20261011

Conversation

@nwparker

@nwparker nwparker commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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

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
  • Visual proof marked N/A
  • Local gates and exact-head ordinary CI complete

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: adding a real I/O progress check during worktree deletion.
Description check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit a944a37 into main Oct 11, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant