Review round 1 found that an interrupted backup of a move judged unchanged still said "it is backed up
again" while the apply takes none, and that the start's hold end also matched a revert's hold, which
carries a wait.
- The interrupted backup's line says the move is judged unchanged and applied with no backup when the
judge finds it unchanged and the want carries no again; its comment says the same.
- The hold end at the start takes only a failed backup's hold (no wait): a revert's hold waits for the
operator's answer, whatever the judgement. A hold after a failed again stays, as before.
Builds: design 47 H2 H-A-772 (3)
On ace at 03:40:55 the node-engine backed up lidarr (5.6 GB) for a move whose one difference was
env.MESH_FINGERPRINT, judged unchanged; the backup ran past its 10 minutes, lidarr was held, the operator
was asked, and the agent's loop stood still for 10 minutes. A move judged unchanged changes nothing of
the module, so it needs no backup.
- The apply backs a data module up only when the judge finds the move changed (any judgement but
unchanged), or when the want carries the operator's answer again.
- The judgement compares the composition to what the machine applied (this engine's last apply, else
the applied store's composition read at the start), never to a have, which in issue 1585's shape
names a held composition not yet applied; with neither, the move is changed.
- A module held for a failed backup of a move judged unchanged has its hold ended at the engine's
start, said in the journal, and is applied with no backup; the assigner takes its ask back as stale
once the have runs.
Builds: design 47 H2 H-A-771, H-A-772 (1), (2)
StopModule answers only what it found running (a container found stopped is not in it); StartModule starts that answer, services before timers, then containers.
Builds: design 47 H2 H-A-752 (amends H-A-735 (1)), H-A-641
A module taken as running its want's composition at the start (the agent's TakenAtStart, now the named
takenAtStartIn the node agent hands it) has the unit of each process whose composed unit differs from its
applied record's written again, by one function (apply.ProcessWrote, which the apply builds its record with
too), and the record takes it, so a second pass finds nothing. Nothing is applied: no backup, no other
resource, the have unchanged. A held module, or one whose want names a new fingerprint, is never taken as
running and is not touched. A process whose record names another bundle, or none, is left as it is and said
(H-A-714); a failed units reload is said.
What restarts: services only. Run-once steps and scheduled processes' units are written, not run or started.
Brother's two processes (brother-device, brother-watch; neither run-once nor scheduled) are services: each
restarts once, if brother runs its want's composition.
Builds: design 47 G A-342, H-A-711, H-A-713, H-A-714
declarationOf never copied the composition's Node into the declaration's For, so no process
placed by a composition got MESH_NODE. Compositions of two nodes, or a composition naming no node,
are refused.
Builds: design 47 G A-342
Review round 1 of fd7f049e, the kind "a test waits a fixed quiet window"
(the 50 ms window of the hand pass was the first, note 14's shadow part the
second). The shadow part of TheNodeComposesItsWantsFromTheBus counted its
answers after fixed windows (150 ms drains, a 100 ms no-answer window, two
30 ms sleeps) and failed under load on trunk too (2 of 48 processes).
It now runs in a bubble of testing/synctest: each of those waits ends only
once every goroutine of the bubble is idle and the bubble's clock passed
it, so a slow build node cannot end it early. The pattern bus's watch ends
with its context, as the bus's own does, so the bubble's readers end with
it. What the steps after the shadow use (the record, the assignment, the
want) is made before the bubble; the shadow ends inside it.
Under load (48 processes x 5, GOMAXPROCS=2, race detector): 240 of 240
passed (trunk: 6 of 48 processes failed).
Issue 721 (note 15, acceptance criterion 721/AC2).
Review round 1 of fd7f049e. The test of an ask while a pass runs waited a
fixed 50 ms for a pass made by hand not to begin. It now checks, while the
loop's pass is held, that the lock of a whole pass is taken (TryLock is
false), which needs no wall time and fails at once when compose takes no
lock; the pass made by hand must still end once the held pass did. Both
tests of the fix cite their criterion, 721/AC2.
Issue 721 (note 15, acceptance criterion 721/AC2).
TestSelfcompose/TheNodeComposesItsWantsFromTheBus failed pipelines main.266,
main.459 and main.479: its issue 1966 step composed by hand beside the
composer's running loop, and a loop pass woken by an entry's answer composed
tool too and handed it on out, so a later quiet or wait saw n1.tool.
The kind is two passes over one composer's state at once. compose and
composeEarly now hold one lock (passMu) for the whole pass, so a pass asked
while another runs is made after it. The lock alone does not take the
order away (the loop's woken pass may still come before the test's), so the
step's passes run on a copy of what the composer holds (scratch), which runs
no loop; the take-back pass at its end is no longer needed and goes.
The test of an ask while a pass runs also makes a pass by hand there: it
does not begin until the running one ended (fails without the lock). Its
read of what runs no longer blocks once eight reads are unheard (a pass
reads it more than once, and the extra pass filled the channel).
Issue 721 note 11 (a blocking fault for its live proof).
readsNow states the reader capability directory-contents-owner, which mesh-sdk's
ManifestNeeds names for every manifest declaring runs-as, so the module graph
orders a move to an account of its own after this engine runs on its node.
Builds: design 47 H2 H-A-554 (1), H-A-556
Review round 1: the contents are now given before the directory's own owner
changes, so a walk that fails leaves the directory as it was and the next apply
walks again; an entry gone meanwhile is nothing to give. An entry is matched by
its user alone: one of another user is left with everything below it, and one
given the new user gets the new group only where its group was the previous
group. A test now applies a directory whose owner changed, with stand-ins for
the chowns, and shows the contents given first and a placed child left.
Builds: design 47 H2 H-A-550, H-A-554 (2)
A module moved to an account of its own (runs-as) has files below its
directories that it wrote as the account it ran as before (gitea's webhook
secret, 0600, as the operator's account); the node-engine changed only the
directory's owner, so the new account could not read them. Now applyDirectory
and applyMeshDirectory give the new owner to what the previous owner held below
the directory, but never a path the declaration or another module's composition
places (and what lies below it), never an entry another account owns, never
through a link (Lchown) and never on another file system.
Builds: design 47 H2 H-A-545 (2), H-A-550
Review round 1 of the slow vault read's wait: a tick before the read began
says "waits on nothing it reads (composing)", which released the read at
once; the read then ended before the next tick and the row failed again on
a slow start. The read now waits for a line naming the vault's own
secrets, and the row asks that any line said names it.
Runs under issue 774 (a pass that runs on says what it waits on).
Builds: design 47 H2 (test only; no design line changes)
TheNodeComposesItsWantsFromTheBus failed in pipeline main.417 on a loaded
build node: its row "the vault did not answer in time" slept a fixed 30 ms
in the vault read and expected the pass's 5 ms ticker to have said it runs
on. When the process stalls, the read ends with the first tick, the pass
ends and cancels the ticker first, and the say is lost or lands after the
test read the shared lines. The merge of #253 and #254 did not cause it.
The read now waits for the pass's own say (bounded at 5 s), with no fixed
sleep, and the test reads only this pass's lines, which must name the
vault's own secrets as what it waits on.
Builds: design 47 H2 (test only; no design line changes, issue 774's say)
Review round 1: sessionHaves.Read gave no run, pipeline or want revision,
so on the live engine every have written over an apply (held, failed,
waiting, not composed) dropped the want revision, and the next want
counted as nothing applied. Read now maps the have value the same way as
ReadAt, through one function.
Builds: design 47 H2 §813 (1); H-A-504 fourth addendum
The composer wrote every placed artifact as artifact-store://…/blobs/<digest>,
which the routing turns into a blob URL the declaration's own check refuses
("image … is not pinned"), so nats's composition was refused on the node. An
image now keeps the image seat's form, an upstream copy the reference the seat's
holder answers by name-of (kept by from; unanswered leaves the old form, said
once), and only bundles and archives take the blobs form.
Builds: design 47 H2 H-A-513, H-A-513 second addendum
The engine refused a want whose run was not newer than the run it applied,
so wants written with a revision number as their run held every later
want back ("the want of mesh-delivery-indexer carries run 288, and the
engine applied it from run 323"). The bus orders the writes of one key:
the engine now keeps the want revision it applied in the have (beside the
run, the seat's form 5) and refuses only an older revision; the same
revision goes on to the checks that already stop a needless apply, so
Reconcile and a recomposition still apply. The run is information.
Builds: design 47 H2 §813 (1); H-A-504 third addendum, H-A-504 fourth addendum, H-A-504 fifth addendum
Review round 1: the line that never marks a module waiting for its rank and the
clear's "only while the have still says the mark" had no failing test; each now
has one. A mark whose every write lost its race is now said, not dropped silently
(P-failure-loud).
Builds: design 47 H2 H-A-480 (review round 1 finding)
The composer's loop and its hearers outlived the node agent's run and logged after
it ended; the node agent now waits for them (Composer.Wait) once its run stops.
Builds: design 47 H2 H-A-480
Under load, a rank wait settle wrote between the composer's read of a have and its
mark was overwritten by the mark and never written again. The mark and its clear
now write over the revision they read (a lost race reads again and keeps the other
cause), a module waiting for its rank is never marked, and a mark on a module that
never ran is cleared at the next pass that composes it.
Builds: design 47 H2 H-A-480 (and its addendum), H §771, H-A-59
Rebuilding a stubbed module's bundles from the tool runner's running
MESH_TOOL_ENV kept the setting words the engine itself composed before
(MESH_CONFIG_PUBLISH_TRIES "8" from the builder's old default), so §781's
check refused them against the setting's composed value ("5") and every
composition on shanks failed. Leave them out like the other mesh-said
words; they are composed again from the setting.
Builds: design 47 H2 §781, H-A-477
serves reached the wire because nothing composed the catalogue's own manifests and read
what came out with the node-engine's strict decoder. The test composes each manifest of
the catalogue placed beside the repository on one machine, with what it needs there, and
fails when a key the node-engine does not know reaches a declaration; every other
refusal is the catalogue's own fault and is logged. Against the catalogue's main it
fails at the parent commit for nats (keeper) and mesh-recovery.
Builds: design 47 H2 H-A-469, H-A-469 addendum
The composer stripped a process's bus before the declaration but not its serves, so the
node-engine's strict declaration read refused every module whose process declares serves
(the builder, the bus module's keeper, mesh-recovery): "a process does not use serves, and
it is set". The keys are now one set, built from the SDK's constants, so a later
manifest-only key joins it in one place; the bus test gains a row for serves.
Builds: design 47 H2 H-A-469
The take-in's two package skips (the wait for a reference and Built)
were proved by no test: the test's take-in only got the build buildOf
makes, which carries no package. The builder's done key frombus hands
over does carry the package with no reference; the package row now
takes in such a key and checks Built gives no package. Without the
first skip the key is refused waiting for the package's reference;
without the second Built holds it.
Builds: design 47 H2 H-A-466
A package is a build input published to a registry, never placed on a
machine, and no registry seat the engine reads numbers it: asking its
digest failed the whole build, so a module declaring a package (the
indexer, the forge bridge) was wanted and held. The engine now leaves
package artifacts out of what it resolves (lookUp), holds
(partsMissing), builds (buildOf) and takes in (takein.Manifest,
takein.Built, and the manifest handed to Resolve), and so does the
candidate compose, which shares partsOf.
Builds: design 47 H2 H-A-466