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 082cdac
Browse filesBrowse the repository at this point in the historyBrowse files
* Speed up race-enabled tests with isolated process shards
* Separate runtime optimizations and harden test runner
* Rename test runner to scripts/test
go vet ./... # static analysis. Always run before tests.
13
-
go test -race -count=1 ./... # tests with race detection
13
+
go run ./scripts/test -workers 4 # full race-enabled suite in isolated processes
14
14
```
15
15
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.
17
+
16
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 ./... # all tests with race detection
13
+
go run ./scripts/test -workers 4 # full race-enabled suite in isolated processes
14
14
```
15
15
16
-
Always run `go vet` before `go test`. CI runs both on every push/PR across ubuntu, windows, and macOS (`test.yml`).
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.
17
17
18
18
There is no Makefile, linter config, or code generation step. The standard Go toolchain is all that's needed.
19
19
@@ -134,7 +134,7 @@ if errors.As(err, &exitErr) { ... }
134
134
135
135
| Workflow | Trigger | What it does |
136
136
|----------|---------|-------------|
137
-
|`test.yml`| push to main, PRs |`go vet` + `go test -race -count=1 ./...`on 3 OS matrix|
137
+
|`test.yml`| push to main, PRs |`go vet` + full race-enabled process shards on 3 OSes; verified completion gate|
138
138
|`release.yml`|`v*` tags | Cross-platform precompiled binaries via `cli/gh-extension-precompile`|
139
139
|`docs.yml`| push to main (docs/**) | Builds Astro/Starlight docs, deploys to GitHub Pages |
0 commit comments