I5b digests-from-the-publisher: the whole test's third take-in of mesh-sdk names the importer a mover, its entry naming mesh-sdk with no version
Builds: design 47 H2 H-A-672 (DQ-21), H-A-521, H-A-530 (AC-I5b)
This commit is contained in:
+6
-4
@@ -412,11 +412,13 @@ func TestASourceRevisionMovingMeshSDKNamesItAndItsImporters(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
importerWants := "v0.1.29"
|
||||
if slices.ContainsFunc(taken.Entries, func(m meshcatalog.TakeInEntry) bool { return m.Module == "importer" }) {
|
||||
importerWants = ""
|
||||
// The importer is a mover of this take-in (AC-I5b, design 47 H2 H-A-672, H-A-521, H-A-530): its fingerprint reads the digests
|
||||
// of the package it imports from mesh-sdk's entry of the revision computed, which moved, so its build waits for this
|
||||
// pipeline's publish and its entry names mesh-sdk with no version.
|
||||
if !slices.ContainsFunc(taken.Entries, func(m meshcatalog.TakeInEntry) bool { return m.Module == "importer" }) {
|
||||
t.Errorf("the take-in of mesh-sdk at %s names the movers %v, want importer among them", m3, taken.Entries)
|
||||
}
|
||||
for module, want := range map[string]string{"importer": importerWants, "legacy": "v0.1.29"} {
|
||||
for module, want := range map[string]string{"importer": "", "legacy": "v0.1.29"} {
|
||||
i := slices.IndexFunc(entries, func(e meshcatalog.CatalogEntry) bool { return e.Module == module })
|
||||
if i < 0 {
|
||||
t.Fatalf("main.%d holds no entry of %s", taken.Revision, module)
|
||||
|
||||
Reference in New Issue
Block a user