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 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
A pipeline's key is <branch>.<source>, so every pipeline of a branch has its
own key, and comparing the whole key found no applied run for a stale want of
an older pipeline of the same branch (main.175 after main.180): it was
applied. settleOne now compares the branches, each key without its last
part; a want of another branch still replaces whatever stands. Rows with real
keys: feat.10 applied, feat.9 refused and said, main.5 applied, the have
naming run 5 of main.5.
Review round 2, finding: the whole pipeline key compared instead of its branch.
Builds: design 47 H2 §813 (1); H-A-429 (1), H-A-458 (1)
The verb composition's drift, the directory entries the mesh made whose
owner or mode on disk differ, was the engine's own DriftView, a field the
node-engine seat's definition did not have. The definition now carries
drift (id, path, drift) at form 4, and the engine answers it as the
generated CompositionAnswerDriftItem; DriftView goes. Row: the answer read
back through the contract's decoder names the drift.
Review round 1, finding: drift in the composition answer.
Builds: design 47 H2 §813; H-A-374, H-A-392 (b), H-A-458 (2)
The state taken's write was bound by a five-second bound of its own,
whatever the ask's deadline, so an ask whose caller had gone could still be
kept, and its repeat refused. takenWithin goes: Env.Taken carries the
compose call's context, Session.TakeOnce binds the state with it and keeps
nothing once it ended. Row: a take whose context ended is refused, and the
same id is then taken the first time.
Review round 1, finding: the taken bound.
Builds: design 47 H2 §775; H-A-364 (a), H-A-458 (3)
A want of another pipeline is a placement the assigner made on purpose, so a
lower run of it was refused against a run of another branch the engine had
applied. The have now keeps the pipeline of the want it was applied from
beside its run (the node-engine seat's form 4), settleOne compares the runs
only when the pipelines are equal, and a want of another pipeline replaces
whatever stands. Rows: a lower run of another pipeline is applied, a lower
run of the same is refused and said; the have names both.
Review round 1, finding: the applied run's branch.
Builds: design 47 H2 §813 (1); H-A-429 (1), H-A-458 (1)
The composer is the node-engine's own build, so a newer composer could hand
an older engine a field its strict decode refuses. The engine's record now
states the declaration Version it reads, and the composer writes node X's
declaration at the lower of its own Version and X's (1 when X states none),
leaving out what that Version lacks: an engine reading 1 gets no
drain-bound and runs on its own default.
Builds: design 47 H2 §813 (12); H-A-416 (2), H-A-419; mesh-contracts feat/47-H2 e6ed560e (the record's declaration-reads)
The resolved definitions of oci-artifact-registry and container-image-registry
on mesh-delivery feat/47-H2 (42788501) both still hold versions, from the
registry part they include; D4a (ac99946f) only gave list a module filter and
a cursor. The validator's refusal came from a request that did not resolve
the includes, so nothing the definitions hold is changed: this reverts
845de026.
Builds: design 47 H2 §813 (7); H-A-415 (2) and its addendum
The composer is the node-engine's own build, its declarations written by
mesh-sdk's composition inside it, so the manifest states the Version it
writes beside the one it reads; the manifest test holds both to the
engine's declaration Version.
Builds: design 47 H2 §813 (12); H-A-416 (2)
H2's registry seat definitions fold the version read into list, filtered by
module, so the validator refused the engine's manifest for invoking
versions. The engine reads a version as a tag in list: oci-artifact-registry
by the module, every page while it says next, the blob a manifest keeps;
container-image-registry, whose list takes no module, by the repository's
name. The manifest invokes list, and the node grant the tests run under
follows it.
Builds: design 47 H2 §779, §813 (7); H-A-350 DMC-10, H-A-415 (2)
The group's node-engine seat defines composition-diff, and the engine has
answered it since E5, but its claim did not name it, so the manifest
validator refused the manifest: the seat's protocol promises a verb the
claim does not serve. The claim serves it, and the manifest test holds the
claim to every verb of the seat's contract.
Builds: design 47 H2 §813 (3); H-A-349 DQ-12b, H-A-355 (2), H-A-392; mesh-contracts feat/47-H2 3fbe3361 (the seat's composition-diff)
The node-engine held 1,707 top-level unit tests against the budget of 500
a module. Each unit test file with two or more tests now runs them as
subtests of one test named for the file, each named as its function was,
in the same order: every check is kept, and the check counts 383. Files
with a TestMain, a re-run of a test by its name, or the integration tag
are left. Four files of this branch's earlier commits are formatted.
Builds: design 47 H2 §819; H-A-349 DQ-14
The gate reads a mover's class from its manifest, and a module that
claims a seat carries a contract of the mesh: the node-engine claims the
seat node-engine, so it is core. An engine before it cannot state the word,
so this build's one hold for a yes at its delivery covers it too.
Builds: design 47 H2 §810, §814; H-A-394 (1)
A process's drain-bound raises the declaration's Version to 2, and an
engine before it decodes such a declaration strictly and refuses it, so the
composer that writes Version 2 must come after every engine that reads it.
The engine's manifest states the Version it reads, declaration-reads 2,
the edge the delivery plan derives; an engine before it cannot state the
word, so this build is held for a yes once at its delivery.
Builds: design 47 H2 §813 (12); H-A-358, H-A-384 (3), H-A-388 (2)
ace's Node toolchain cache directory stood at 0700 against its entry's 0711
while the engine said its composition was unchanged: an unchanged
composition is never applied, and the judgement reads the compositions, not
the disk. Each module taken as running at the engine's start now has every
directory entry its record says the mesh made given its declared owner and
mode where they drifted on disk, one journal line each; one the mesh never
made stays used as found and is said (issue 339). The verb composition's
diff names a drifted directory the mesh made. The agent test that marks
modules not composed now waits for every want it marks.
Builds: design 47 H2 §813; H-A-374, H-A-392
The engine kept the applied run in its memory only, so a restarted engine
applied an older run's want again. The have, the record of what the engine
applied, carries the run (the node-engine seat's form 2): the engine reads
it from the have before it applies a want that carries one, a write that
names none keeps the last have's, and every have is written at the seat's
form.
Builds: design 47 H2 §813 (1); H-A-355, H-A-384 (2), H-A-388 (1)
nftables refuses a rule comment past 128 bytes, and with it the whole
table, so a port shared by enough modules took every opening down. The
comment is a label: past the bound its module list is cut with a count of
the rest; the whole list stands in the table's lines above the rule.
Builds: design 47 H2 §813 (4); H-A-357, H-A-384 (1)
The holder of mesh-wants asks each node-engine compose-candidate as a kept
call, so the same ask may come again on a transport fault. The engine reads
the ask id from the request header, keeps it in its own state taken for
compose-ask-bound (process.StateOver over the link it serves its seat on),
and a repeat while the ask's run goes joins that run and gets the answer
composed once; a repeat after the run ended is composed again, since the
verb is a read and no answer is kept. The manifest declares taken with its
8 MiB cap.
Builds: design 47 H2 §775, §820; H-A-351, H-A-364, H-A-383
A module's settings reached its own process only as files its manifest
named, and its tools bundles not at all. The node-engine now composes each
setting the module declares as MESH_CONFIG_<KEY>, its value as text, into
each of its processes' environments and its slice of the tool runner's
MESH_TOOL_ENV alike, and the tool runner's own into its process; the
runner's drain-bound is a Go duration like every time setting.
Builds: design 47 H2 §781; H-A-350 DMC-13, H-A-370, H-A-377
One writer per composition key: the holder of mesh-wants writes run, the
composition run's pipeline sequence, on the want; the node-engine keeps
the run each module was applied from, applies again only a want whose run
is newer, and names the run in its journal.
Builds: design 47 H2 §813 (1); H-A-355
The generated decoders keep unknown fields and return the form read, so
a want the assigner writes with run, or any field added later, is applied
rather than refused: the node-engine that reads run runs before the
assigner writes it.
Builds: design 47 H2 §780; §813 (1) (the edge)
The node-engine holds 1,715 unit tests against a budget of 500; each of
these asserted one more case of a rendering another test already holds.
Builds: design 47 H2 §819
The service manager's stop signalled the tool runner's whole group, so
its bundles died with their calls. The composer carries the runner's
drain-bound setting on its process; the unit stops the runner alone and
waits the bound and 15 s before it kills what is left, so the new runner
starts only after the old one exits or that bound passes.
Builds: design 47 H2 §813 (12); H-A-353; H-A-358
The node-engine serves seat verbs and no tools bundle, so composed values
read by resource are a read verb beside composition: per resource, the
entries that differ between what runs and a revision or digest of its
composition key, environment entries by name, a secret's value masked.
Builds: design 47 H2 §813 (3); H-A-349 DQ-12b
The holder of node-packet-filter reads a port's scope from rules, not
from the rule's shape; the older firewall's mesh-host mark stays.
Builds: design 47 H2 §813 (4); H-A-357
fix-a-bug-met-twice, the same kind as the shadows: the composer's loop of
TestTheNodeComposesItsWantsFromTheBus ran on, until the deferred cancel,
past the cleanup that restores composeAgain, laterAgain, passSaysEvery and
slowAfter, which its passes read. The test now cancels it and waits for its
out to close first. -race -count=50: 50 of 50, no race.
Suspected, not fixed: the flake "the composer handed n1.tool.7777..., and
nothing changed" (trunk line 691, 1 of 60 at review, 0 of 200 here), I
think a compose-again pass handing a composition late after the issue 1966
step.
Builds: design 47 H H-A-312
fix-a-bug-met-twice, the kind: TestTheNodeComposesItsWantsFromTheBus
asserted on output its composer and shadows still produced, or let their
goroutines outlive a setting they read. The groups' answers are now waited
for until every group is answered as it should be, not read from whichever
answer came first (which flaked, and the settled one then read as handed
again for nothing changed); the second shadow is ended before the test's
cleanup restores notReadyAfter. Carries the ghost-entry order and the first
shadow's end from the packet filter branch.
Builds: design 47 H H-A-312
Review round 2 (2), fix-a-bug-met-twice: the ghost's entry was answered at
once, so a pass could read it entry-missing before the assertion read
entry-asked; its answer now waits until the assertion has read. The 250 ms
real sleep before compose now is gone: askedWithin is set to none, then to
an hour for the ask made again at once. The first shadow ran on while
notReadyAfter was set for the next step, a data race; it is ended first.
Builds: design 47 H H-A-312
Review round 1 (5): the node grant's stored copy had the allowed call
subjects but not the event the engine consumes, which the grants part
grants every machine's as a wildcard; the subtest of allowances-changed
now checks the grant covers the node's subject.
Builds: design 08 control-verbs §1, §3
The holder of node-packet-filter says when an allowance opens an outward
link and reads no shape of the loaded table to know one, so converged
answers the tunnel's interface and the outward links from the one
classification the filter render uses; links it cannot read refuse it.
Builds: design 33 control-verbs §10, §14; design 08 control-verbs §2; design 47 H H-A-325
An allowance of the default set opened every link but the tunnel, so a
node's internet-facing link took it too. It now negates the tunnel and
every outward link, the same links the derived rules count as outside;
an outward link opens only when an allowance names it.
Builds: design 08 control-verbs §2, §8; design 47 H lead answer H-A-324
The holder of node-packet-filter asks the node's convergence state before it
allows a port, and never assumes converged: the engine answers it from its
record, adopted or converged, since the mode last changed (now recorded with
its time), and the found firewall's kind when adopted; a record with no mode is
refused. The composition read of the filter's holder names, under
withheld-parts, the part node-packet-filter.allowed with why when the last
compose kept the filter file because allowed did not answer.
Builds: design 33 control-verbs §10, §14; design 08 control-verbs §4, §8; ADR 0683, ADR 0168; H-A-316, H-A-321
The node-engine stays the one renderer of the filter file: at each compose of
a converged node's filter it asks the holder of node-packet-filter its verb
allowed within the setting compose-ask-bound (10 s) and renders the answer.
When allowed does not answer, or answers what is not its answer, no filter file
is composed: the one loaded is kept as it runs, the holder's module is not held
(an old holder must stay replaceable), and the part withheld is said once in
the journal until an answer comes between. The node hears allowances-changed
on its own node's subject and composes again. The manifest invokes
seat:node-packet-filter.allowed and consumes node-packet-filter.allowances-changed.
Builds: design 08 control-verbs §1, §3, §4, §5, §7, §8; ADR 0683; H-A-305, H-A-307 (1), (2), H-A-314 (3), (5), (7), H-A-315 (2), (6), H-A-321