Skip to content

caffeinated-whale-cli: v3.4.0

Choose a tag to compare

@github-actions github-actions released this 30 Sep 17:01
· 73 commits to develop since this release

3.4.0 (2026-09-30)

A speed release: inspect and every app lookup built on it are several times faster on large instances, plus fixes that make start, stop, and shared-mode installs safer.

New Features

  • cwcli axi setup-wizard <project> <site> completes Frappe's setup wizard headlessly, so a freshly created site stops landing in the setup-wizard state (where a non-System-Manager desk renders without its navbar). cwcli axi init --complete-setup does the same during provisioning and reports the result in the same init document; --country, --currency, and --timezone set the wizard's defaults. It is idempotent and creates no user.

Bug Fixes

  • cwcli start on a frappe container that exits right after starting, or dies partway through the start, now reports a clean "not running" error with the container's exit code and a docker logs hint, instead of Docker's raw 409 ... is not running traceback.
  • A shared-mode uid remap can no longer brick an instance: every workspace re-own now runs before the frappe user's identity is changed, a failed re-own stops before that change, and the container's main process is held for the length of the remap so it cannot exit halfway through.
  • cwcli stop now takes MariaDB down last and gives it 60 seconds to shut down, instead of Docker's default (as little as 1 second on Docker Desktop). If the database is still killed before it finishes, stop reports the unclean shutdown and exits non-zero rather than claiming a clean stop. rm gives the database the same grace period and warns on an unclean shutdown.
  • One unreadable bench or site no longer breaks a whole inspect or app lookup: its cached rows are kept and marked unverified, with a warning naming the bench or site and the step that failed.
  • Bench discovery no longer silently drops every bench under a search path when one subdirectory in it is unreadable.
  • cwcli setup migrate now completes on an instance holding a real bench; container-only symlinks are copied as links instead of followed.
  • cwcli run -i without a terminal now waits for its command to finish, instead of returning success while the command keeps running in the background.

Performance Improvements

  • Measured on a 32-bench, 47-site instance, with byte-identical inspect --json and axi inspect output before and after:
    • A full inspect went from about 101 s to about 13 s. Each bench is now read in one container exec with a single Frappe process, instead of one exec per fact and one bench --site call per site.
    • A cached inspect went from about 22 s to under 1 s, and bench discovery from about 9 s to about 0.1 s.
    • Finding which sites have an app installed (used by apps update, apps checkout, apps list --installed, and apps install) went from about 3.5 s to about 0.5 s per bench.
    • The cache refresh after apps install/uninstall/checkout, update, rm-site, rm-bench, and init now re-reads only the bench that changed, going from about 52 s to about 1 s. If that refresh fails, the project's cache is cleared so the next read re-inspects instead of serving stale data.