Skip to content

farm: M2 restore-pending/attempts/KillMode, M4 re-adopt live hold, orphan hold-file gc (stacked on #85) - #108

Merged
pablogonz12 merged 5 commits into
lane/farm-review-remainingfrom
lane/farm-review-m2-m4
Nov 19, 2026
Merged

pablogonz12 merged 5 commits into
lane/farm-review-remainingfrom
lane/farm-review-m2-m4

Conversation

@pablogonz12

Copy link
Copy Markdown
Owner

Stacked on #85.

  • M2: restore-pending persisted as files (/restore-pending/); a part left running by a farmd restart now counts an attempt (exhausted -> error, no endless loop) and marks its phone for restore; unit gets KillMode=mixed + TimeoutStopSec=30 (owner applies when idle: copy unit, daemon-reload, restart farmd only with no job/hold running).
  • M4: an active hold whose caller still heartbeats is re-adopted by a new farmd (thread resumes the wait/cleanup loop) instead of being closed as 'farmd restarted'.
  • gc: orphan .hb/.rel and .tmp-* hold files older than 10 min removed.
    Tests: 3 new in test_farm.py; readopt and attempts tests fail without the fix. Full suite: 4 tests fail identically on farm: small robustness fixes from the farm review (M1, M3, M6, L items) #85 base in a clean clone (no origin/main); bisect test can time out under host load.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@pablogonz12
pablogonz12 merged commit e3c6489 into lane/farm-review-remaining Nov 19, 2026
1 check passed
pablogonz12 added a commit that referenced this pull request Nov 19, 2026
* farm: L items - run_watched kills the group when alive() raises, _run_part releases the lock on a job read error, cancel marker removed after a cancelled part, store_route locks and keeps the file mode

* farm tests: farmd() helper timeout 60s->240s (fake bisect test times out on a loaded host)
Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 20, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 20, 2026
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