Repository navigation
v0.1.4
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>.timeoutandbitc 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 withbitc: <pool>: time limit <dur> reached; terminated.result.jsonand the history sayoutcome = "timed-out". Remote runs keepremote_limits.timeout. - Land evidence:
result.jsonand the historystartandendlines carryhead(the work tree's commit when the hold starts) andtree_clean.result.jsonalso carriescwd. bitc run --units <group>=<k>: it replaces a pool's unit count for one run. A pool can cap it with the host-onlypools.<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.jsonand 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 bareSTARVED <pool>. Any caller that matched the exact old line should match theSTARVED <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 examplelint: 1/1 slots held, 3 waiting (wait 3h, oldest 1h22m), and each waiter line shows its own age.--jsonaddswait,oldest_wait_sandwaited_s. All are optional indocs/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 acpugroup and gate, heavy, light and bench pools.
Fixed
- With
[compat]set, a RunPod launch that cannot open or take the legacy launch lock withinlaunch_waitis 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 ciis unchanged locally. - The release workflow's
dry-runjob now runsmake release-check, and a newvulnjob runsmake vuln, on pull requests, in the merge queue and on a push tomain, so the run at the release commit is the release gate.vulnis 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,doctorandsweep --dry-runstill 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_cwdorpriority.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).