From 9ade199740e38e84c1d806ac04a6e6fa9afecced Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 19 Oct 2026 14:42:04 +0200 Subject: [PATCH] Give the build fixture the path the controller writes for build-agent (issue 1233) --- go/delivery/buildrecord_test.go | 4 ++-- go/delivery/testdata/build-record-build-agent.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go/delivery/buildrecord_test.go b/go/delivery/buildrecord_test.go index f67b24d..c056d38 100644 --- a/go/delivery/buildrecord_test.go +++ b/go/delivery/buildrecord_test.go @@ -56,8 +56,8 @@ func TestBuildRecordPath(t *testing.T) { // 1233/AC1 if err := json.Unmarshal(loadBuildFixture(t), &r); err != nil { t.Fatal(err) } - if r.Path != "modules/mesh-delivery-watchman" { - t.Errorf("path = %q, want modules/mesh-delivery-watchman", r.Path) + if r.Path != "modules/build-agent" { + t.Errorf("path = %q, want modules/build-agent", r.Path) } // mesh-controller's manifest is its repository's root: the controller writes no path (omitempty), so the path is "". var m map[string]json.RawMessage diff --git a/go/delivery/testdata/build-record-build-agent.json b/go/delivery/testdata/build-record-build-agent.json index 2084a3b..458b9e3 100644 --- a/go/delivery/testdata/build-record-build-agent.json +++ b/go/delivery/testdata/build-record-build-agent.json @@ -1 +1 @@ -{"id":"build-1792395447088936520","state":"built","repository":"novox/mesh-controller","ref":"main","module":"build-agent","path":"modules/mesh-delivery-watchman","commit":"7a74cee83f88e6585a5511c3cc53bdf0f5303d20","manifest-digest":"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","source-fingerprint":"src1:e846efe73716b78e80860baaac96153de2cb76551325753838ca245d2160a3d7","source-inputs":{"Module":"build-agent","Tree":"11c0b4f90cae0d6e4ef9cc48cbfdf9f6dbe52bca","Bases":["sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc","sha256:8ac98ca534ac3f51e1f420a1dd2c15e74c75cfa0f23f3ad27eb5d7236c349a0c"],"Contexts":{"server":"narrow:d51ca744fd11af59d616c858f76c27b3e58e16e11fbdc0c720eb9d7d19d55fac"},"Toolchains":null,"Unpinned":""},"made":[{"name":"server","kind":"image","reference":"registry.example/build-agent@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc"}],"at":"2026-10-19T09:38:00Z"} +{"id":"build-1792395447088936520","state":"built","repository":"novox/mesh-controller","ref":"main","module":"build-agent","commit":"7a74cee83f88e6585a5511c3cc53bdf0f5303d20","path":"modules/build-agent","manifest-digest":"sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","source-fingerprint":"src1:e846efe73716b78e80860baaac96153de2cb76551325753838ca245d2160a3d7","source-inputs":{"Module":"build-agent","Tree":"11c0b4f90cae0d6e4ef9cc48cbfdf9f6dbe52bca","Bases":["sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc","sha256:8ac98ca534ac3f51e1f420a1dd2c15e74c75cfa0f23f3ad27eb5d7236c349a0c"],"Contexts":{"server":"narrow:d51ca744fd11af59d616c858f76c27b3e58e16e11fbdc0c720eb9d7d19d55fac"},"Toolchains":null,"Unpinned":""},"made":[{"name":"server","kind":"image","reference":"registry.example/build-agent@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc"}],"at":"2026-10-19T09:38:00Z"}