Hold the replay of issue 614 to the plan since R4g: a new SDK plans itself and what stands on its package, no toolchain edge to the bundles (issue 1938)

This commit is contained in:
2026-10-24 06:01:52 +02:00
parent 491cbe2548
commit a5b874a2a0
+5 -2
View File
@@ -63,11 +63,14 @@ func TestReplay614ANewSDKPlansTheToolchainAndThenItsBundles(t *testing.T) {
m := orderMember{ID: "novox/mesh-sdk@new", Repository: "novox/mesh-sdk", Head: "new",
Paths: []string{"src/provisioner/index.ts", "package.json"}}
s := pullScope(m.pull(), entries, read, edges)
want := [][]string{{"mesh-sdk"}, {"mesh-tools"}, {"minio", "umami"}}
// Since R4g no bundle is compiled in a toolchain image (526eed99, issue 1851 C1b: the toolchain edge is gone), so a
// new SDK plans itself and what stands on its package; the TypeScript bundles move by their own build keys, whose
// fingerprints name what they are built from (issue 1938: this test was kept from older runs until then).
want := [][]string{{"mesh-sdk"}, {"mesh-tools"}}
if !reflect.DeepEqual(s.Reach.Plan.Tiers, want) {
t.Fatalf("a new SDK plans %v, want %v (edges %v)", s.Reach.Plan.Tiers, want, edges)
}
if !reflect.DeepEqual(s.Dependents, []string{"mesh-tools", "minio", "umami"}) {
if !reflect.DeepEqual(s.Dependents, []string{"mesh-tools"}) {
t.Errorf("dependents %v", s.Dependents)
}
}