You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addresses two structural issues from ako's review:
1. **sdk/mpr import in cmd_microflows_builder.go** — lookupMicroflowReturnType
called mpr.ParseMicroflowBSON directly, violating the executor's backend
abstraction contract. Added ParseMicroflowBSON(contents, unitID, containerID)
to the MicroflowBackend interface, implemented on MprBackend (delegates to
mpr.ParseMicroflowBSON) and Mock (Func-field with descriptive
'MockBackend.ParseMicroflowBSON not configured' default). lookupMicroflow
ReturnType now goes through fb.backend.ParseMicroflowBSON. sdk/mpr import
removed from the builder.
2. **newestVersionedPath duplication** — the four version-comparison helpers
(newestVersionedPath, versionFromPath, parseVersionParts, compareVersion
Parts) lived identically in cmd/mxcli/docker/download.go and
mdl/executor/roundtrip_helpers_test.go. Exported the production helper as
docker.NewestVersionedPath (with a full doc comment explaining the
ranking); internal docker callers updated; the integration-test harness
now imports docker and calls docker.NewestVersionedPath. All four copies
removed from the test file.
0 commit comments