Skip to content

v0.1.39

Choose a tag to compare

@eharriett0 eharriett0 released this 17 Nov 18:27
· 8 commits to main since this release
b65e595

merge-pr reads the PR it merges, wherever it is; the coordination log's writers no longer hang on a stopped holder.

  • #228: wt merge-pr with a forwarded -R, or a PR given by its URL, reads that PR.
    • The bug. Only the checks gate, the base .wt.conf read and the deploy gate passed -R along. The precheck, the guard, the close check and the post-merge reads went to this clone's PR of the same number. A merged PR of that number here made merge-pr skip the merge as "already merged" and auto-clean this clone's lane.
    • The fix.
      • The PR is resolved once in its repository, and its URL is what every read and gh pr merge take.
      • Issues are read in that repository, and its squash settings on its own host.
      • A PR that can't be resolved is refused.
    • A PR URL is resolved the same way, read as gh reads one (…/pull/5.diff included).
    • Auto-clean touches a lane only when the PR's repository or its branch's is this clone's origin. With origin a fork and -R naming upstream, it fetches the PR's head from the PR's own repository.
    • Command hints carry the forwarded -R and never spell a PR #5, which a shell reads as a comment. That covers gh pr ready, gh pr checks --watch and wt merge-pr … --bypass.
  • #235: the coordination log's writers wait at most 30s, and say so.
    • The bug. A wt prune-coord stopped with Ctrl-Z, or a wt block-id stuck on a network mount, made every announce, ack and block-id wait silently for as long as it stayed that way.
    • The fix.
      • A writer says it is waiting after a second and gives up at 30s, with the file's path and how to find the holder (lsof <path>).
      • It says to resume the holder (fg, kill -CONT), never to kill it: a prune killed mid-rewrite leaves the log empty.
      • wt append's doc lock is bounded the same way.
    • A filesystem that can't lock at all (ENOTSUP, EOPNOTSUPP, ENOSYS: macOS NFS nolocks, some FUSE and SMB mounts) lets announce, ack, all-clear and block-id --written/--abandon write unlocked, with one warning. Before, they failed there.
    • A lock service that is down (NFS lockd unreachable: ENOLCK) is not that. Every write fails and merge-pr's hold gate refuses until it is back, since writing or reading unlocked then could lose a hold.
    • prune-coord prunes past a locked block ledger, lists the locked ones, and shares one 30s deadline across them.