Skip to content

v0.48.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 17:38
· 7 commits to main since this release
9cbfe95

bdi 0.48.0

Minor release, 0.47.0 → 0.48.0.

Highlights

bdi can flag a bead that nobody is watching. Add an [[anomalies.unwatched]] entry to your config, choosing beads with the same projects, when and unless a view's selection takes, and each such bead that is not closed and that no agent watches reads "nobody watches it". An agent holding the bead's claim counts as watching it. The flag needs bdi watch running, because only the watcher knows who watches a bead.

A bead's page in bdi web shows the bead even where the view leaves it out. When the page's list or root hides the bead, the page opens the bead's panel under a line saying "This view hides this bead", with a Show all link to the bead among every tree. A bead bdi has not read still says "This bead is not in any tree".

A tracker bdi cannot read now names the bd command that failed. The screen and the bdi gates log add the arguments bdi gave bd after the failure's sentence, and bdi --beads gives them as command, quoted so they paste after bd in a shell set up for that tracker. Where bdi cannot tell what went wrong, it also adds what bd said, with the tracker password bdi gave bd taken out, or leaves those words out where they may hold another password. Where the tracker did not answer, it adds what bd said too, which says whether the server could not be found, refused the connection or timed out. A tracker now reads as having rejected the credential only when its server refused the credential itself. Where the server accepted it and refused something else, such as a database the user may not open, bdi shows what bd said. bdi watch also writes a line to its error output when a tracker stops answering or answers again.

Fewer trackers read as unavailable when many share one server. Each bdi now runs at most sixteen bd at a time to read trackers and settle gates, so reading many projects asks their server for far fewer connections at once. A bd that cannot connect to its server is tried again within a minute before its tracker reads as unavailable. A server that says it has too many connections reads as unavailable too, and is not tried again. A bd still running after a minute is stopped, so a stalled tracker holds up the others for a minute at most. The new [bd] deadline_seconds setting changes that minute, for a server too loaded to answer a healthy call within it.

A slow tracker no longer holds back every other project in bdi watch. When the watcher reads every project, as it does on starting, it answers each project as soon as that project's tracker has been read. A bead waiting on a bead in a project not yet read reads as not ready until that project's tracker answers.

bdi gates reads its gates from bdi watch on a machine that runs both. For each project the watcher answers for, bdi gates takes the gates, the beads they hold back and the beads a bead gate waits on from what the watcher holds, so it no longer runs bd to read that tracker. It still runs bd to close a gate or comment on a bead, to list a project's gates before closing or settling one, and to read a bead's comments before telling it something new. A project that polls, or that --poll polls, is read with bd at every look, and so is a project a producer reports to bdi gates --socket. Once the watcher stops, bdi gates reads every tracker with bd again.

bdi watch keeps taking connections on a host that starts it with a low open-files limit. It raises its own limit as far as the system allows, and says so on its error output if the system refuses. Where it still runs out, a session that lost its connection gets back in once a file is free, with no restart. bdi watch, bdi web and bdi gates say on their error output why they cannot take a connection, and the terminal view shows it in its footer.

Upgrading

Restart bdi watch after upgrading if you use the new flag. A watcher started before the upgrade cannot say which beads nobody watches, so until it restarts bdi flags none of them.

Maintenance

Dependency bumps.