diff --git a/modules/mesh-build-go/cmd/mesh-build-go/candidate_integration_test.go b/modules/mesh-build-go/cmd/mesh-build-go/candidate_integration_test.go index fe6dc2800..f8bd00fc2 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/candidate_integration_test.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/candidate_integration_test.go @@ -58,6 +58,7 @@ func main() { // compiles that program and runs it shut off, answers its mark judged by the candidate at the tree's commit, and the // program reached no key, no login, no name and no socket of the machine. func TestTheUnitLevelUnderTheWorkspaceRunnerRunsTheTreesProgramShutOff(t *testing.T) { + t.Parallel() needTools(t, "the candidate's program shut off", "go", "git", "bwrap") home := t.TempDir() key, login := filepath.Join(home, ".ssh", "mesh_ed25519"), filepath.Join(home, "broker") diff --git a/modules/mesh-build-go/cmd/mesh-build-go/isolation_integration_test.go b/modules/mesh-build-go/cmd/mesh-build-go/isolation_integration_test.go index 457d6b524..d09a001fe 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/isolation_integration_test.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/isolation_integration_test.go @@ -15,6 +15,7 @@ import ( // resolves no name, reaches no socket of the machine (a TCP port on its loopback, a unix socket) and leaves the shared // caches unchanged. The probe is testdata/repos/probe. func TestARunStepReachesNoKeyLoginNameOrSocketAndLeavesTheCachesUnchanged(t *testing.T) { + t.Parallel() needTools(t, "the shut-off unit level", "go", "git", "bwrap") tree := repository(t, "probe") work, err := os.MkdirTemp("", "w") diff --git a/modules/mesh-build-go/cmd/mesh-build-go/pins_integration_test.go b/modules/mesh-build-go/cmd/mesh-build-go/pins_integration_test.go index 6337ed1f8..1e2e79b36 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/pins_integration_test.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/pins_integration_test.go @@ -21,6 +21,7 @@ import ( // build_go_fetch is asked that head as the package's version and build_go_build runs on the member, then both pass, the // build with GOPROXY=off against the head: the older commit holds no Go package at all. func TestRealFetchAndBuildOfAMemberAskedAPullHeadItsGoModDoesNotName(t *testing.T) { + t.Parallel() // Not skipped when a tool is missing: a pass of the check must mean this test ran (the check prints no test log). for _, tool := range []string{"go", "git"} { if _, err := exec.LookPath(tool); err != nil { diff --git a/modules/mesh-build-go/cmd/mesh-build-go/preview_integration_test.go b/modules/mesh-build-go/cmd/mesh-build-go/preview_integration_test.go index 7a69a5779..2d84225e7 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/preview_integration_test.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/preview_integration_test.go @@ -171,6 +171,7 @@ func TestRealFetchMergesConflictsAndPlainlyFetches(t *testing.T) { // sibling and passes with it; the sibling is a plain directory with no symlink in it; and a sibling that holds a // symlink fails the fetch naming it. func TestRealTestsReadTheSiblingBesideTheTree(t *testing.T) { + t.Parallel() needTools(t, "the shut-off unit level", "go", "git", "bwrap") // the tests run in bubblewrap (1309) f := newForge(t) files := map[string]string{} diff --git a/modules/mesh-build-go/cmd/mesh-build-go/store_integration_test.go b/modules/mesh-build-go/cmd/mesh-build-go/store_integration_test.go index f69b58619..f33613e2d 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/store_integration_test.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/store_integration_test.go @@ -118,6 +118,7 @@ func resolve(t *testing.T, addr string, a builds.BuiltArtifact) []byte { // reference resolves in a real artifact store to bytes of that digest. The build is the real go's, shut off, of the // fixture testdata/repos/build, with an archive beside its bundle. func TestADoneBuildsArtifactsResolveInARealArtifactStore(t *testing.T) { + t.Parallel() needTools(t, "the build", "go", "bwrap") work := t.TempDir() tree := filepath.Join(work, "ws1", "tree") diff --git a/modules/mesh-build-go/cmd/mesh-build-go/test_real_integration_test.go b/modules/mesh-build-go/cmd/mesh-build-go/test_real_integration_test.go index 1e14fc7fd..7645d90bb 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/test_real_integration_test.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/test_real_integration_test.go @@ -62,6 +62,7 @@ func repository(t *testing.T, name string) string { // test_test.go read the output captured from them, and this one proves the capture is what the real go says today. It // starts go test, so it carries the tag. func TestUnitLevelRunsTheRealGoOnTheFixtureRepositories(t *testing.T) { + t.Parallel() needTools(t, "the unit level on fixtures", "go", "git", "bwrap") want := map[string]struct { passed, noTests bool @@ -104,6 +105,7 @@ func TestUnitLevelRunsTheRealGoOnTheFixtureRepositories(t *testing.T) { // 086 A-C3 against the real go (design 47 line 571 at b229f5c4): a tree holding an unformatted file passes its unit // level, its two tests run, and the lint step's body fails naming the file. func TestAnUnformattedFileFailsTheRealLintStepAndNotTheUnitLevel(t *testing.T) { + t.Parallel() needTools(t, "the unit level's gofmt and vet", "go", "git", "bwrap") home := t.TempDir() m := &Module{Home: home, Work: t.TempDir(), Cache: t.TempDir()} @@ -150,7 +152,7 @@ func TestIntegrationLevelRunsAgainstARealStoreAndBusAndLeavesNothing(t *testing. needTools(t, "the integration level", "go", "git", "initdb", "pg_ctl", "postgres", "bwrap") tree := repository(t, "store") // A short work directory: a unix socket's path is bounded at 108 bytes. - work, err := os.MkdirTemp("/tmp", "w") + work, err := os.MkdirTemp(os.TempDir(), "w") if err != nil { t.Fatal(err) } @@ -185,6 +187,7 @@ func TestIntegrationLevelRunsAgainstARealStoreAndBusAndLeavesNothing(t *testing. // 1487/AC2: given a fixture Go module, when it is built twice, both digests are equal and the archive holds one // executable named as binaryName says. It runs the real go, so it carries the tag. func TestBuildTwiceGivesOneDigestAndOneExecutable(t *testing.T) { + t.Parallel() needTools(t, "the build", "go", "bwrap") work := t.TempDir() tree := filepath.Join(work, "ws1", "tree")