Skip to content

0.1.7

Choose a tag to compare

@mikeroySoft mikeroySoft released this 02 Nov 20:50
· 19 commits to main since this release
7a9c88b

What's Changed since v0.1.6

Features

  • Drained engine apply: district apply --drain writes an atomic, expiring host flag so compatible timer-started Factory passes skip before starting work, waits up to 6 hours (--drain-timeout, at most 7h45m) for running and hand-run work to finish, then installs and post-checks the CI-green engine. A drain never stops, disables, masks, delays, or re-enables a timer and never kills a running pass; while drained, District does not call factory install or apply the failure cap. Only hosts with pending engine work are drained. district drain --clear [--host NAME] removes a flag, doctor warns about stale or malformed flags, and the hourly apply drains after 3 deferrals or 24 hours. Drain admission needs Factory's drain-check (mikeroySoft/factory#563); older pass units ignore the flag, so District keeps checking busy work and times out safely. (#149, #150)
  • Post-apply checks: before clearing a drain, District checks Factory help, version, tool-Python import, receipt and target ancestry, dashboard HTTP 200, restarts the installed District dashboard, validates the previous engine in isolated uv directories, and runs factory watch --dry-run from a registered repository checkout. (#149, #150)

Fixes

  • Busy means Factory services: engine busy checks read the owning host's service manager (factory-*.service on Linux, Factory launchd jobs on macOS) instead of every process's cwd and argv, so sshd and long-running dashboards no longer block an upgrade forever. Service probes share one idle deadline. (#151, #152)

Internal

  • Install-state schema 3 records local last_apply.drain and per-host last_apply.drains. (#150)
  • Project page updated for 0.1.7; the v0.1.6 and v0.1.4 changelog entries are restored to their shipped text. (#155)

Install / update

district update --to v0.1.7 --yes
district apply

Fresh install:

uv tool install git+https://github.com/mikeroySoft/district@v0.1.7

Full Changelog: v0.1.6...v0.1.7