Skip to content

bay 0.7.77

Choose a tag to compare

@gudjon gudjon released this 04 Dec 22:43
  • bay status and bay status --all show how far the origin's hosted trunk lags (detail.origin.main: lag_s, checked_s, stray, refusal).
  • bay host serve publishes the lag at refs/bay/origin/lag when it changes, or every 300 s.
  • A status that cannot read the lag says why (detail.origin.unread).
  • Before, only bay doctor on the origin's own machine read the lag.
  • A runner's presence names only the operation whose lease it holds (holding).
  • A pass that holds no lease names none, and post work names post.
  • Before, each runner named the first operation that waited, so several runners named the same operation.
  • A runner's presence carries stale_after_s: the age past which bay judges it stale, by that runner's own settings.
  • A reader outside bay can use it in place of a copy of bay's rule.
  • A batch whose check gives no answer on its machine ends its bisect, and the head runs alone.
  • Another machine then checks the head's own gap.
  • Before, the bisect checked each smaller prefix to the check's time limit and recorded each as a failure.
  • A head's terminal record keeps the checks that no attempt records (other_checks, other_check_s).
  • These are each round of a batch that did not land, and each lone check that main's move stopped.
  • bay status shows both.
  • Before, the record showed only the check time of the attempts.
  • The rework count reads a move of main under an operation as main_moved.
  • A serve pass names where each stray sits (strays_by): the runner whose log or presence it is, else its namespace.
  • A runner's compaction pass moves a closed talk into its shard once its last entry is older than its window.
  • The window is the retention window, and never less than 7 days.
  • The record keeps the talk's tip, its talk.json, its step log and each of its entries.
  • An open talk stays on the remote.
  • The host takes the delete of a talk's ref only with its whole record in the same push.
  • The host takes it only for a closed talk, and only past its window.
  • bay talk --show reads a talk from its shard when no ref holds it.
  • Then kept names the shard commit, and signed is null.
  • Before, no talk left the remote, and every fetch and push listed each one.
  • An idle runner pass ends a change as landed when main holds its publication and its record is still live.
  • This applies when its newest operation was refused CHANGE_ALREADY_MERGED.
  • Bay publishes the operation of the revision that landed, if there is one. Retention can then cut the change.
  • Before, such a change stayed ready: no runner visits a blocked operation, so nothing ended it.
  • The timing record of each command splits its network time by the tier each call went to (network_by_tier).
  • The tiers are origin (the store's bay origin served it) and direct (the store's own remote).
  • A third tier, origin-down, is a call sent to an origin that never answered.
  • A store's records then say what share of its calls the origin served.
  • Before, a record did not say whether a call reached the origin or the hosted remote.
  • A check's request names candidate.listing: a file that lists each entry of its tree, with its blob and size.
  • The listing also names kept_mtime_s, the time of each file that bay kept from its store.
  • A file at that time, with no write bit and its listed size, holds its listed blob's bytes.
  • So an adapter can take each such file's blob from the listing and hash only the other files.
  • Bay keeps a file only after it hashes the file's bytes to its blob.
  • A file whose bytes hash to another blob fails the tree as a fault of bay or the store.
  • Kept files now carry the time 2000-01-02.
  • After the update, each store writes its files again once, and the prune removes the old files.
  • Before, an adapter hashed each file: 23-33 s a run, where bay made the tree in 1-3 s.
  • A fetch that loses a local ref to another fetch of the same store is tried again after 0.2 s.
  • Before, it waited 1 s, the wait for a host.
  • On one machine, 29 of 337 merges in a day waited so.
  • Before a check that reads history runs in a blob-less clone, bay walks only the new commits.
  • Those are the commits that its last walk of the same paths did not reach.
  • The store keeps that commit for each set of paths, under bay/history/ in its Git directory.
  • A mark that names a commit that the store does not hold is no mark.
  • Then bay walks the whole history again.
  • Before, each run walked the whole history, even when no object was absent.
  • On one machine, that took 11-18 s for each run of each such check.

Built from 2660a49. Verify SHA256SUMS with SHA256SUMS.sig (ssh-keygen -Y verify, namespace bay-release).