G §421, §683: the node-engine reads the entry its want names by fingerprint and keeps its entries and wants
The node's own composer reads the catalog half through meshcatalogclient's Entries cache over its own calls of mesh-catalog's verb entry, and no longer watches or reads the indexer's modules, manifests and verdicts or the builder's builds: a module's manifest is its entry's, each artifact's reference is made from the digest its want's part names (artifact-store://<module>/<artifact>/blobs/<digest>, A-50). A want whose entry is asked or not found is held, its have the phase held with a detail opening entry-asked: or entry-missing: naming the fingerprint. The entries and wants it composes from are kept in composed-<node> (entry.<digits> and want.<module>), written before the composition that uses them, read at start before anything is asked, a kept want standing until the wants' live read answers, and dropped when nothing names them. The shadow keeps its reads (G §628). The node grant gains the verb entry and the running stream's consumer calls; OverNATS hears the running stream as the link's session does. Builds: design 47 G §421, §683, §614, §628, A-47, A-50
This commit is contained in:
@@ -138,7 +138,7 @@ func next(t *testing.T, out <-chan agent.Update) agent.Update {
|
||||
case u := <-out:
|
||||
return u
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("no update from the composer")
|
||||
t.Fatalf("no update from the composer")
|
||||
return agent.Update{}
|
||||
}
|
||||
}
|
||||
@@ -156,6 +156,7 @@ func quiet(t *testing.T, out <-chan agent.Update) {
|
||||
// every input was read, hands each, then Caught; an input that changes nothing composed hands nothing; a module no want
|
||||
// names any more is taken back; a node that cannot compose says so once and hands nothing.
|
||||
func TestTheNodeComposesItsWantsFromTheBus(t *testing.T) {
|
||||
t.Run("it reads the catalog half by the fingerprints its wants name", composeFromEntries)
|
||||
b := newFakeBus()
|
||||
fp := meshcatalogclient.SourcePrefix2 + strings.Repeat("a", 64)
|
||||
digest := meshcatalogclient.ManifestDigest([]byte(lemurs))
|
||||
|
||||
Reference in New Issue
Block a user