Repository navigation
Warn on idle annex tracking - #1689
neuromechanist merged 3 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1689Version: 🤖 Updated on each push. |
Independent review recordReviewed exact PR head Resolved findings:
No remaining actionable pipeline-contract or runtime findings were reported. The upload-entry-point integration gap remains explicit: the new warning tests exercise real subprocess behavior at Local validation on this head: 45 tests across the annex-batch, inactivity, upload-step, and export-surface suites; |
c573996
into
feature/issue-1671-epic-bru-upload-fixes
This PR adds a warning-only inactivity diagnostic for the bounded list-form
git annex add --batchpath used by upload tracking. It warns after 120 seconds without stdout or stderr, resets after either stream produces output, persists alongside the active upload spinner, and lets git-annex continue with unchanged exit and timeout behavior.The warning says local tracking has produced no stdout/stderr for about the measured duration, git-annex is still running and may be reading a large file, the user can wait or interrupt and rerun, and earlier completed batches remain resumable. Whole-tree string adds, import callers, S3 copy, upload
-j, and worker selection are unchanged.This is a partial follow-up to #1455 and does not close #1455. The controlled NFS argv-vs-batch × J1/J4/J8 benchmark/default remains pending. The full upload spinner entry point could not be tested end-to-end because the only checked-in BIDS fixture is synthetic under the NO MOCKS policy. The new subprocess tests use real child processes, the existing annex suite uses real git-annex repositories, and production upload wiring was verified by inspection. The remaining integration-test gap is recorded in
test_requirements.md.Validation:
bun test test/annex-add-batch.unit.test.ts test/run-command-inactivity.unit.test.ts(14 passing);bun run typecheck;bun run lint;git diff --check;bun test test/run-command-env.test.ts(6 passing). A targeted mutation that removed timer reset failed at the warning-count assertion (one warning instead of at least three); restoring the reset returned the focused test to green.