At its start it reads whole, from the first message, version-released, its own version-delivered and the watchman's machine-away and machine-back (process.FromFirst), then hears them; it reads the watchman's presence state no more, a machine being present unless said away. A module's newest released version is said version-delivered once every present machine placing it on its release branch runs healthy the want naming it, the machines away named, none when every one is away. A dependent whose want changes fingerprint waits, by an edge of kind 2, 4 or 6, for its dependency's newest released version on its branch not yet said delivered: wait-held step delivery, bound 60 minutes from the release, kept in the state delivery-waits, ended ran on the delivery or released once assigner_release writes it. Builds: design 47 G §376, §389, §498, §374, A-189, A-233, A-246 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
22 lines
1.1 KiB
Go
22 lines
1.1 KiB
Go
package buckets
|
|
|
|
import "testing"
|
|
|
|
// The names are the ones the earlier shared form held (mesh-sdk's go/delivery), and the ones the manifest's reads and
|
|
// states say: a bucket is `<module>_<state>`.
|
|
func TestBucketsAreTheEarlierNames(t *testing.T) {
|
|
for name, c := range map[string][2]string{
|
|
"Have": {Have, "node-engine_have"}, "ComposedRead": {ComposedRead, "mesh-host.composed"},
|
|
"Modules": {Modules, "mesh-delivery-indexer_modules"}, "Manifests": {Manifests, "mesh-delivery-indexer_manifests"},
|
|
"Answers": {Answers, "mesh-delivery-teller_answers"},
|
|
"Grants": {Grants, "mesh-grants_grants"},
|
|
"Wants": {Wants, "mesh-delivery-assigner_wants"}, "Differences": {Differences, "mesh-delivery-assigner_differences"},
|
|
"Asks": {Asks, "mesh-delivery-assigner_asks"}, "Puts": {Puts, "mesh-delivery-assigner_puts"},
|
|
"Policies": {Policies, "mesh-delivery-assigner_policies"}, "Provisions": {Provisions, "mesh-provisioner_provisions"}, "TellerModule": {TellerModule, "mesh-delivery-teller"},
|
|
} {
|
|
if c[0] != c[1] {
|
|
t.Errorf("%s = %q, want %q", name, c[0], c[1])
|
|
}
|
|
}
|
|
}
|