diff --git a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/buildended_test.go b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/buildended_test.go index 7dfc7904..12c6fdc0 100644 --- a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/buildended_test.go +++ b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/buildended_test.go @@ -109,6 +109,11 @@ func TestATrunkEntryTakesItsVersionFromTheReleaseOfItsFingerprintsSource(t *test if k, ok := p.namedBuild("mail", "t", 0)("t"); !ok || k.Version != "1.2.3" { t.Errorf("an entry naming no fp-src, its build made the released digests: %+v, %v", k, ok) } + // A release from an earlier source than the entry's fp-src (novox 2026-11-16, 962 against 963) is still this build's when + // its parts are exactly what the build made. + if k, ok := p.namedBuild("mail", "t", 8)("t"); !ok || k.Version != "1.2.3" || k.Parts["mail:image"] != "sha256:9" { + t.Errorf("an fp-src with no release, its build made the released digests: %+v, %v", k, ok) + } if len(logs) != 2 || !strings.Contains(logs[0], "the release of mail at fingerprint t is not heard: no version-released of it from source 8") || !strings.Contains(logs[1], "names no fp-src, and no version-released of it names the parts its build.ended made") { t.Errorf("logs = %q, want each unheard release said once, naming the module, the fingerprint and the source", logs) } diff --git a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/graphkept.go b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/graphkept.go index 6e6c14d5..27a225d5 100644 --- a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/graphkept.go +++ b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/graphkept.go @@ -213,7 +213,13 @@ func (p *passer) namedBuild(module, trunkFP string, fpSrc int64, unreleased ...b } k, ok := p.w.released.of(module, fpSrc) if !ok { - p.unheardRelease(module, fp, fmt.Sprintf("no version-released of it from source %d, the one its fingerprint was built at, is heard", fpSrc)) + // The release names the source its reservation was made at, which can be an earlier revision than the entry's + // fp-src (novox 2026-11-16: mesh-hand-acts 0.1.13 released from 962, its entry's fp-src 963): the release whose parts + // are exactly the digests this fingerprint's build made is this build's (A-421). + if k, ok = p.w.released.withParts(module, p.w.ends.madeOf(module, fp)); ok { + return k, true + } + p.unheardRelease(module, fp, fmt.Sprintf("no version-released of it from source %d, the one its fingerprint was built at, nor one naming the parts its build.ended made, is heard", fpSrc)) } return k, ok }