Skip to content

turri 0.4.0

Choose a tag to compare

@zanjonke zanjonke released this 20 Nov 19:29
npm install -g @turri-dev/cli
turri doctor

New

  • Launches across a requires chain replace one another: each module of a chain is launched from its own codebase, so the server of the module below used to keep its port and every launch above it failed. Now a launch stops what launches of the modules below it started - their code is in it - waits for one of them under way, and says what it stopped. The newest build of the chain is what answers at its URL.
  • A launch takes what turri's own launches hold: a port held by a server another module's launch started is taken, and said; anything else such a server holds - a socket, a lock or pid file, a container name - the launch agent frees with stop_launched. A process turri did not start, or another running turri's, is never stopped.
  • What holds a port is said truthfully: this turri's launch, an earlier session's, another turri still running, or a program turri did not start - with the launch, module and commit, and how you free it from the chat. No launch claims a server turri started is someone else's.
  • The sentinel tests a lower module's pulse in the launch above it, which holds its code, and asks turri what holds a port with who_holds - its sandboxed shell cannot see other processes.

Fixed

  • Two modules' servers with the same name no longer stop each other, and turri no longer loses track of one.
  • A launch exports the module it was asked for, even when a module is built on it meanwhile.
  • activate gives its log's whole path, so the launch summary points at the right file.
  • turri init-config names turri doctor once, without the removed --models.

For hosts

  • A launch's summary is the launch agent's words alone - where it runs, or why it did not come up. What turri stopped for it is stopped: one entry a process - why (below, held, left-behind), module, launch, commit, name, pid, url, held - filled in as it happens. launchText(launch) puts the two together as the chat reads them; LaunchStopped is exported with it.
  • A launch whose servers a newer launch stopped comes again through onLaunch with replacedBy - which may now name a launch of another module.
  • New ledger events: launch.freed and launch.replaced.