Pull requests queued for over an hour behind three self-hosted runners while
GitHub-hosted runners, free for this public repository and already used for
fork PRs, start within about a minute and run many jobs in parallel. Pushes to
main keep the self-hosted tp04 runner.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check only reads the PR description and the changed-file list. On the
self-hosted runners it waited behind full test jobs for over an hour and held
back merges whose tests had already passed. Hosted jobs in this repository
start within about a minute.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now has a test (from the refused-restore change) that commits a HEAD
through layout.RunCommit; with the cause argument it passes
layout.CauseCommit. Test only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. The scan now covers package-level initializers, refuses
any writer referenced as a value (a method value or expression), accepts
a forwarded cause only in the four census forwarders and only while it
is never reassigned or redeclared, and refuses a writer call with
another argument count. Negative controls on synthetic source cover each
escape. The store test runs each refusal on a fresh directory, counts
filer write calls, and follows each with a success control under the
right cause.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A HEAD is written by three store calls: the conditional update (only
through runTransition), the exclusive create, and the tombstone. Each now
takes a typed HeadWriteCause, one value per row of the HEAD writer
census, so a writer without a row does not compile. The transitions that
serve one row pass it; RunAbort, RunEndClean and RunCommit, which serve
several, take it from their caller. The layout store refuses a cause
outside the census, a first HEAD not written as create and a tombstone
not written as tombstone. No behaviour changes otherwise.
TestEveryHeadWriteIsACensusRow scans the production source: every HEAD
write names a census constant or forwards its function's cause, and
every row has a writer (both directions); it logs the writers by row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New volumes stay at 256 GiB unless the v1.0.1 release note raises the limit; the restore-target exception applies when the product loop is on (interval above 0); the downgrade hazard says the commit check can run past v1.0.0's limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
miniVolumeSpec, volumeSpec's args and env, and volumeStart read or write
the layout id; each is listed with the test that probes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. activating, deactivating and reloading may have a live
holder (reloading is an active unit): the guest read and the cut stay,
refusing when the holder is down, and --force --no-cut stops the unit. A
cut's success answer must carry cutLSN and headGen (LSN 0 is an empty
volume's); without them the outcome is unknown. The lost-answer fake now
records its publication, and the refusal reports that confirmed cut.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. A unit is stopped only when systemctl reports inactive
or failed; a state it cannot report certifies nothing (stop refuses,
--replace refuses), and --replace is refused over a transitional unit.
start waits for FrontendPrimaryReady for its volume, not Healthy alone,
and names the not-ready reason. Only a complete success answer for the
volume is a cut: a lost answer, a truncated or foreign answer and
outcome_unknown are unknown outcomes (the cut may have published) and
refuse. The refusal reports the last confirmed cut, never that the
recovery point did not move. The flags the unit passes beyond mini's are
listed and classified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. Only an inactive or failed unit is nothing to stop; a
unit systemd is restarting (activating, deactivating, reloading) is
stopped without a guest read or a cut, and the output says no cut was
taken. The time in the closing sentence is read before the cut's
request, so the cut covers every write before it. A timed-out cut's
refusal says its progress is kept; the help and the page say how to add
a new volume until volume start can create one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
volume start runs an existing volume as sw-blockvolume@<volume>: it
writes the unit's settings file, resolves the layout id, enables and
starts the unit, waits until it serves, and prints the connect command.
volume stop refuses while a guest is connected (unless --force), takes a
cut, refuses when the cut failed or its outcome is unknown (unless
--no-cut, giving the recovery point's age), stops the unit, and ends
with what it promises: the recovery point in the object store is the
cut; writes after it are on this host only.
mini and the unit share one blockvolume settings builder; a test renders
the settings through the shipped unit and compares them with mini's
flags. A second supervisor on one durable root is refused (guard test).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. The template unit takes the volume id from its
instance name, so a settings file cannot name another volume (a fourth
per-instance directive, kept by the drift test). /status/guests and its
schema say what it is: the counted frontends (NVMe/TCP, iSCSI) only; an
absent frontend is not served or not counted; a vanished host stays
counted until TCP closes; 0 is not proof that nothing uses the volume.
The endpoint test's callbacks use atomics.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What volume start and volume stop need, before the commands.
/status/guests?volume=<v> reports the guests connected now through each
frontend served: NVMe/TCP hosts (live admin controllers) and iSCSI
initiators (Normal sessions past login; Discovery sessions do not count),
read at request time, and their sum.
deploy/systemd/sw-blockvolume@.service runs one volume per instance
from /etc/sw-block/volumes/<volume>.env with its own state directory;
apart from three per-instance directives it is sw-blockvolume.service,
and a test keeps the two the same.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove unnamed roots, segments and chunks through one conditional mark/delete writer. Resume chunk cursors after bounded passes; re-plan metadata first and retain the session initial root set through operator snapshot deletes. Add a local trigger of the existing snapshot schedule for qualification.
A v1.0.0 holder of a volume above 256 GiB is unsupported (its commit check can run past its limit), not unable to serve; the restore-target refusal holds while the product loop is off; cluster.check runs from a v1.0.1 sw-block and reports a v1.0.0 holder's version as unavailable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
blockmaster before any host (the reverse is not supported); no volume above 256 GiB until every host runs v1.0.1; a restore target in the cluster spec first; cluster.check reports an older build for a v1.0.0 holder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>