The runner, the toolchain guard, the fetch, the parsers, buildcpu, the conformance kit and mesh-pack move from mesh-sdk's buildstep into modules/mesh-build-go/buildstep (own go.mod). mesh-build-go, mesh-build-node and mesh-build-image require it by a same-repository replace; what the delivery parts read (the failure contract, the fetch request, the stale sweep, the module tree shape, NewID, CapacitySetting) stays imported from mesh-sdk as sdkstep. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
20 lines
707 B
Go
20 lines
707 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
"time"
|
|
|
|
"git.novox.be/novox/mesh-catalog/modules/mesh-build-go/buildstep/conformance"
|
|
sdkstep "git.novox.be/novox/mesh-sdk/go/buildstep"
|
|
)
|
|
|
|
// 1890/AC7: the module's own start sweep (endLeftRunning, as main runs it) keeps the conformance kit's left-running
|
|
// case: a step a previous process left running is ended at once and said, whatever its age, and a step of this process
|
|
// is kept.
|
|
func TestTheStartSweepEndsWhatAPreviousProcessLeft(t *testing.T) {
|
|
conformance.LeftRunning(t, func(ctx context.Context, scan sdkstep.Scan, node string, before time.Time, logf func(string, ...any)) {
|
|
(&Module{Node: node}).endLeftRunning(ctx, scan, before, logf)
|
|
})
|
|
}
|