diff --git a/checks/failurekit/failurekit.go b/checks/failurekit/failurekit.go index d95afa6a..9738d66a 100644 --- a/checks/failurekit/failurekit.go +++ b/checks/failurekit/failurekit.go @@ -1,4 +1,4 @@ -// Package failurekit refuses a build module whose tests do not run mesh-sdk's conformance kit (issue 1901, its thorough +// Package failurekit refuses a build module whose tests do not run the build runner's conformance kit (issue 1901, its thorough // fix): a module that claims a node-build-* seat and serves a test step must hold a test that calls conformance.Run, so // its parse of the test runner's output is held to the failure contract (a failing test named with its cause, never a // passing line in its place). A build module with no test step (mesh-build-image builds images and runs no tests) is @@ -71,7 +71,7 @@ func Judge(root string) ([]Judged, error) { } if !runs { refused = append(refused, fmt.Sprintf("it claims %s and serves the test step %s, and no test of it calls conformance.Run "+ - "(mesh-sdk go/buildstep/conformance): run the kit with the module's own parse path (issue 1901)", seat, test)) + "(mesh-build-go buildstep/conformance): run the kit with the module's own parse path (issue 1901)", seat, test)) } } // Every build module keeps steps, so every one runs the left-running case, test step or not (issue 1890). @@ -81,7 +81,7 @@ func Judge(root string) ([]Judged, error) { } if !sweeps { refused = append(refused, fmt.Sprintf("it claims %s, and no test of it calls conformance.LeftRunning "+ - "(mesh-sdk go/buildstep/conformance): run the kit's left-running case with the module's own start sweep (issue 1890)", seat)) + "(mesh-build-go buildstep/conformance): run the kit's left-running case with the module's own start sweep (issue 1890)", seat)) } j.Refused = strings.Join(refused, "; ") out = append(out, j) @@ -121,7 +121,7 @@ func runsTheKit(dir, call string) (bool, error) { return err } found = strings.Contains(string(raw), call) && - strings.Contains(string(raw), `"git.novox.be/novox/mesh-sdk/go/buildstep/conformance"`) + strings.Contains(string(raw), `"git.novox.be/novox/mesh-catalog/modules/mesh-build-go/buildstep/conformance"`) return nil }) return found, err diff --git a/checks/failurekit/failurekit_test.go b/checks/failurekit/failurekit_test.go index f08ecf7b..17f6fce4 100644 --- a/checks/failurekit/failurekit_test.go +++ b/checks/failurekit/failurekit_test.go @@ -11,7 +11,7 @@ import ( // cases is refused, and a module that claims no node-build-* seat is not judged. func TestABuildModuleWithATestStepMustRunTheKit(t *testing.T) { root := t.TempDir() - const imp = "package main\n\nimport \"git.novox.be/novox/mesh-sdk/go/buildstep/conformance\"\n\n" + const imp = "package main\n\nimport \"git.novox.be/novox/mesh-catalog/modules/mesh-build-go/buildstep/conformance\"\n\n" const sweep = "func TestSweep(t *testing.T) { conformance.LeftRunning(t, nil) }\n" kit := imp + "func TestKit(t *testing.T) { conformance.Run(t, conformance.GoTest, nil) }\n" + sweep for path, body := range map[string]string{