failurekit: G8 kit-checked, a build module whose tests do not run the reproducible case is refused

Every build module claiming a node-build-* seat must hold a test that calls
conformance.Reproducible; mesh-build-node's tests now run it over its bundle
build, as mesh-build-go's and mesh-build-image's do. A row of the check's test
(a module with the rest of the kit and no reproducible case) is refused.

Builds: design 47 H2 H-A-591 (4), H-A-593 (3)
This commit is contained in:
2026-11-25 17:39:00 +01:00
parent f6dbeafeea
commit 804f5c4ab4
3 changed files with 39 additions and 6 deletions
@@ -115,3 +115,24 @@ func TestThePullerCountsRunsThatStarted(t *testing.T) {
return m.Puller(nil, steprun.NewFakeAsks())
})
}
// H-A-591 (4), H-A-593 (3): the kit's `reproducible` case. The module's own build step packs a fixture bundle twice, in two
// workspace folders of other names and other file times (the compiler and the bundler stand in, as in every build test of this
// module, and write what they would from the same source), and the archive's digest is the same: nothing of the folder or
// the clock is in the pack.
func TestTheBuildOfABundleIsOneDigestInAnyFolder(t *testing.T) {
conformance.Reproducible(t, func(dir string) error {
workspaceWith(t, dir, map[string]string{"modules/m/module.json": strings.Replace(bundleManifest, "%s", "", 1),
"modules/m/tools/index.ts": "export {}"})
return nil
}, func(dir string) (map[string]string, error) {
m, f, _ := newMachine(t)
m.Work = dir
f.effect = esbuildEffect(t)
out, err := m.build(context.Background(), buildArgs())
if err != nil {
return nil, err
}
return map[string]string{"tools": out.(BuildResult).Digest}, nil
})
}