A-471: the build modules' tests expect the language version in a toolchain report

The toolchain a build module reports (guard key and toolchain-reported event) names the
language version alone (mesh-delivery-sdk steprun Guard); the build module's own
Toolchain func keeps the installed text. Delivered with or after the sdk change.

Builds: design 47 G A-471 (G-22-lead-answers-2.md)
This commit is contained in:
2026-11-17 15:53:05 +01:00
parent d2b8f64c94
commit 1481465ec7
5 changed files with 11 additions and 10 deletions
@@ -8,6 +8,7 @@ import (
"strings"
"testing"
sdkstep "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-sdk/buildstep"
"git.novox.be/novox/mesh-sdk/go/health"
)
@@ -36,8 +37,8 @@ func TestAnyInstalledNodeIsHealthyNamedAndReported(t *testing.T) {
t.Errorf("health = %+v, want healthy naming %s", a, installed)
}
tc, ok := states.toolchain("ace.typescript")
if !ok || tc.Version != installed || tc.Recipe != m.Recipe.Version() {
t.Errorf("ace.typescript = %+v, %v; want version %s and recipe %s", tc, ok, installed, m.Recipe.Version())
if !ok || tc.Version != sdkstep.LanguageVersion(installed) || tc.Recipe != m.Recipe.Version() {
t.Errorf("ace.typescript = %+v, %v; want version %s and recipe %s", tc, ok, sdkstep.LanguageVersion(installed), m.Recipe.Version())
}
if err := m.Prepare(context.Background()); err != nil {
t.Errorf("no step can run on node %s: %v", installed, err)