From daf57cd2a78e1636f0b00cd7048cfef9c9af7c02 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 28 Oct 2026 19:43:49 +0100 Subject: [PATCH] =?UTF-8?q?Go=20build=20module:=20the=20compose=20test=20g?= =?UTF-8?q?ives=20its=20module=20a=20slot,=20since=20a=20node=20with=20no?= =?UTF-8?q?=20capacity=20set=20now=20pulls=20nothing=20(issue=201126,=20AD?= =?UTF-8?q?R=200567=20=C2=A715)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test built its module with no settings file and no Capacity; the new buildstep.NodeCapacity answers 0 for that (no default names a node), so the puller took no ask and the test timed out after 90 s in check 205f634c30df. Failed first locally at origin/main af89893d (90.1 s), passes with the slot (2.5 s). --- .../mesh-build-go/cmd/mesh-build-go/compose_integration_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/mesh-build-go/cmd/mesh-build-go/compose_integration_test.go b/modules/mesh-build-go/cmd/mesh-build-go/compose_integration_test.go index ad1fe4d0..fae8c3a0 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/compose_integration_test.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/compose_integration_test.go @@ -73,6 +73,7 @@ func TestAComposeAskIsBuiltOnceAndAnsweredOnTheBus(t *testing.T) { states := newStates() m := moduleWith(states, "go1.26.0") m.Work, m.Cache, m.Inside = t.TempDir(), t.TempDir(), true + m.Capacity = func() int { return 1 } // its own slot: no settings file, and a node with no capacity set pulls nothing (ADR 0567 ยง15) m.Run = StepRunner(t.TempDir()) m.GoModCache = goEnvOf(t, "GOMODCACHE") // the module cache this module's own build filled, read and not fetched run, gocache := m.Run, goEnvOf(t, "GOCACHE") // this machine's build cache, so the composer's packages compile once