Skip to content

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 03 Nov 20:22
· 63 commits to main since this release
90662ca

This release adds a local heavy pool for one busy machine: a per-run time limit, per-run CPU units with a gate class, a STARVED line that says what it waited for, wait ages in bitc status, and a guard that a queued run keeps its place. A recipe is in docs/local-heavy-pool.md. Tracking issue: #33.

Added

  • A per-run time limit for local runs: the host key pools.<p>.timeout and bitc run --timeout DUR. The flag can only narrow the pool's limit. The clock starts when the command starts, so waiting for a slot does not count. At the limit bitc terminates the command's process group and exits 124 with bitc: <pool>: time limit <dur> reached; terminated. result.json and the history say outcome = "timed-out". Remote runs keep remote_limits.timeout.
  • Land evidence: result.json and the history start and end lines carry head (the work tree's commit when the hold starts) and tree_clean. result.json also carries cwd.
  • bitc run --units <group>=<k>: it replaces a pool's unit count for one run. A pool can cap it with the host-only pools.<pool>.groups_max.<group>. A bad value exits 64 with one line naming the limit. Admission is unchanged: all or none, first in first out, never preempted. status, result.json and the history show the units held or asked for.
  • A STARVED line that says what expired: STARVED heavy (group cpu busy: wanted 2 of 8 units; waited 1d), STARVED gate (slots busy; waited 3h), STARVED lint (queue; waited 10m). Before, a slot wait printed a bare STARVED <pool>. Any caller that matched the exact old line should match the STARVED <pool> prefix instead.
  • Wait ages in bitc status: when a pool has waiters, its line shows the configured wait and the oldest waiter's age, for example lint: 1/1 slots held, 3 waiting (wait 3h, oldest 1h22m), and each waiter line shows its own age. --json adds wait, oldest_wait_s and waited_s. All are optional in docs/status.schema.json.
  • A conformance guard, T6: a run already queued is admitted before any run that arrives after a slot frees, including in the window before the waiter's next poll.
  • docs/local-heavy-pool.md: one machine with a cpu group and gate, heavy, light and bench pools.

Fixed

  • With [compat] set, a RunPod launch that cannot open or take the legacy launch lock within launch_wait is now refused as a temporary failure: that provider is skipped, the run goes to the next provider (or local), and it ends 75 only when none is left. It can no longer slip past a legacy launcher's spend cap (#9).
  • On Linux, a state or accounting dir on CIFS, SMB2, SMB, 9p, AFS or any FUSE mount is now refused (78) like NFS, naming the filesystem, because flock there is not bitc's exclusion. The state-dir message ends with how to point BITC_DIR (or --state-dir) at a local path (#25).

Changed

  • CI runs in the merge queue (merge_group) and is split into named jobs. make ci is unchanged locally.
  • The release workflow's dry-run job now runs make release-check, and a new vuln job runs make vuln, on pull requests, in the merge queue and on a push to main, so the run at the release commit is the release gate. vuln is advisory on pull requests.

Known issues

  • macOS builds still refuse every remote provider (78). macOS as a client to remote providers (#4, #26) is planned for 0.1.5.
  • On Linux without a readable /proc/locks, status, doctor and sweep --dry-run still read slot holders with a brief try-lock, so for that moment a concurrent admission can find a free slot busy (#24). Planned for 0.1.5.
  • Sprites stays refused until the catch-all egress deny lands (#6).
  • A run from a working directory in the high priority lane (priority.high_cwd or priority.high_cwd_contains) can still starve normal runs in the same pool while high runs keep overlapping. Aging is planned for 0.1.5.

Install

Assets for linux and darwin, amd64 and arm64: bitc_0.1.4_<os>_<arch>.tar.gz (binary, LICENSE, README) and the bare bitc_0.1.4_<os>_<arch>, with sha256 sums in checksums.txt. Check an install with bitc version (expect bitc 0.1.4 (commit 90662ca) ... release=true).