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
{{ message }}
Repository navigation
Commit af28053
Browse filesBrowse the repository at this point in the historyBrowse files
go vet ./... # static analysis. Always run before tests.
13
-
go test -race -count=1 -timeout=30m ./... # canonical tests with race detection
14
-
go run ./scripts/testsuite -workers 4 # same suite in isolated processes
13
+
go run ./scripts/testsuite -workers 4 # full race-enabled suite in isolated processes
15
14
```
16
15
17
-
Run vet before either test command. CI uses the same race-enabled suite on all three OSes, with process-isolated shards and a `Tests complete` manifest/result gate. The runner's JSON artifacts include test inventories and timings; scheduling hints never exclude tests. Do not add `t.Parallel` to tests that change Git mocks, cwd, or environment variables.
16
+
Run vet before tests. See [CONTRIBUTING.md](../CONTRIBUTING.md#test) for canonical/targeted commands and runner details. Do not add `t.Parallel` to tests that change Git mocks, cwd, or environment variables.
18
17
19
18
No Makefile, no code generation, no external linter config. Standard Go toolchain only.
go build -o gh-stack .# build (produces ./gh-stack binary)
12
12
go vet ./... # static analysis. Run before tests.
13
-
go test -race -count=1 -timeout=30m ./... # canonical tests with race detection
14
-
go run ./scripts/testsuite -workers 4 # same suite, isolated parallel processes
13
+
go run ./scripts/testsuite -workers 4 # full race-enabled suite in isolated processes
15
14
```
16
15
17
-
Always run `go vet` before `go test` or the parallel test runner. CI runs vet and the complete race-enabled suite on every push/PR across ubuntu, windows, and macOS (`test.yml`). Windows and macOS use process-isolated shards; `Tests complete` checks the combined manifests and results. No tests are excluded to shard the suite.
18
-
19
-
The parallel runner discovers tests from compiled binaries, retains ordinary `go test` support, and writes JSON timing/result artifacts to the printed temporary directory (`-output` selects a parent). Its `-workers` limit bounds test processes; children use `-test.parallel=1`. Scheduling weights in `scripts/testsuite/timings.go` affect balance only, never test membership.
16
+
Always run `go vet` before tests. See [CONTRIBUTING.md](CONTRIBUTING.md#test) for the alternative canonical `go test` command, targeted tests, and timing artifacts. CI runs the full platform-applicable suite with race detection on Linux, macOS, and Windows, with a cross-shard completion gate.
20
17
21
18
There is no Makefile, linter config, or code generation step. The standard Go toolchain is all that's needed.
returnvalidatedGitClient{}, fmt.Errorf("worktree %q no longer refers to the selected Git directory; rediscover worktrees before continuing", c.RepoDir)
67
+
returnnil, fmt.Errorf("worktree %q no longer refers to the selected Git directory; rediscover worktrees before continuing", c.RepoDir)
0 commit comments