assigner: a parts-reading node's want carries the parts beside the version, until G is delivered
Bootstrap circle on novox: the node-engine's grant to ask a registry's versions follows the node-engine build wanted there, which needs a passed pipeline, which needs the pipeline runner that this want composes. With the parts beside the version, the node-engine (8a0c392) composes by its parts and asks no registry. Recovery (lead-47).
This commit is contained in:
@@ -169,6 +169,12 @@ func (n Nodes) withKept(m Module, node string, w mwc.Want) mwc.Want {
|
||||
if k.KeptOn != "" {
|
||||
w.KeptOn = k.KeptOn
|
||||
}
|
||||
// Bootstrap, until G is delivered (lead-47, 2026-11-15): a node whose node-engine reads parts gets them beside the
|
||||
// version, so it composes without asking a registry seat its grant does not yet admit (the grant follows the
|
||||
// node-engine build wanted there, which needs a pipeline, which needs the pipeline runner this composes).
|
||||
if n.ReadsParts(node) {
|
||||
w.Parts = k.Parts
|
||||
}
|
||||
return w
|
||||
}
|
||||
// A build with no version known to the assigner (another watched branch's, a kept one: build.ended names none) is named by its
|
||||
|
||||
@@ -1622,7 +1622,7 @@ func TestAWantNamesAKeptBuildsPartsAndNodeForANodeThatReadsThem(t *testing.T) {
|
||||
version string
|
||||
parts bool
|
||||
}{
|
||||
"released, reads parts": {[]string{WantParts}, nil, func(fp string) (KeptBuild, bool) { return released, fp == fNew }, "1.2.3", false},
|
||||
"released, reads parts": {[]string{WantParts}, nil, func(fp string) (KeptBuild, bool) { return released, fp == fNew }, "1.2.3", true},
|
||||
"released, reads none": {[]string{"form:oci"}, nil, func(fp string) (KeptBuild, bool) { return released, fp == fNew }, "1.2.3", false},
|
||||
"unversioned, capability": {[]string{"form:oci"}, []string{WantParts}, func(fp string) (KeptBuild, bool) { return unversioned, fp == fNew }, "", true},
|
||||
"unversioned, reads none": {[]string{"form:oci"}, nil, func(fp string) (KeptBuild, bool) { return unversioned, fp == fNew }, "", false},
|
||||
|
||||
Reference in New Issue
Block a user