Skip to content

Commit 175297d

Browse files
committed
Rename test runner to scripts/test
1 parent af28053 commit 175297d

11 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/copilot-instructions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Repository operations require Git 2.36+.
1010
go mod download # install deps
1111
go build -o gh-stack . # build
1212
go vet ./... # static analysis. Always run before tests.
13-
go run ./scripts/testsuite -workers 4 # full race-enabled suite in isolated processes
13+
go run ./scripts/test -workers 4 # full race-enabled suite in isolated processes
1414
```
1515

1616
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.

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: go vet ./...
3737
- name: Test
3838
run: >-
39-
go run ./scripts/testsuite
39+
go run ./scripts/test
4040
-workers ${{ matrix.workers }}
4141
-shard ${{ matrix.shard }}
4242
-shards ${{ matrix.shards }}
@@ -70,4 +70,4 @@ jobs:
7070
pattern: tests-*
7171
path: ${{ runner.temp }}/test-results
7272
- name: Verify full platform inventories
73-
run: go run ./scripts/testsuite -verify "${{ runner.temp }}/test-results"
73+
run: go run ./scripts/test -verify "${{ runner.temp }}/test-results"

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Repository operations require Git 2.36 or later.
1010
go mod download # install dependencies
1111
go build -o gh-stack . # build (produces ./gh-stack binary)
1212
go vet ./... # static analysis. Run before tests.
13-
go run ./scripts/testsuite -workers 4 # full race-enabled suite in isolated processes
13+
go run ./scripts/test -workers 4 # full race-enabled suite in isolated processes
1414
```
1515

1616
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.

‎CONTRIBUTING.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ go vet ./...
4444
For process-isolated parallel execution:
4545

4646
```sh
47-
go run ./scripts/testsuite -workers 4
47+
go run ./scripts/test -workers 4
4848
```
4949

5050
Alternatively, use the canonical Go command:
@@ -70,7 +70,7 @@ To run a package or a specific regression:
7070

7171
```sh
7272
go vet ./internal/modify
73-
go run ./scripts/testsuite -workers 4 ./internal/modify
73+
go run ./scripts/test -workers 4 ./internal/modify
7474

7575
go vet ./cmd
7676
go test -race -count=1 -timeout=30m -run '^TestRebase_Worktrees' ./cmd
@@ -80,7 +80,7 @@ CI partitions the full suite across Windows and macOS jobs. The `Tests complete`
8080
check verifies that every platform has a complete, consistent set of successful
8181
shards. Missing results, failures, or cancelled shards fail the check. Test
8282
membership comes from Go's test binaries, not the advisory scheduling weights in
83-
`scripts/testsuite/timings.go`; newly added tests are included automatically.
83+
`scripts/test/timings.go`; newly added tests are included automatically.
8484

8585
## Vet
8686

@@ -122,7 +122,7 @@ npm run build # Production build to docs/dist/
122122
1. Create a new branch: `git checkout -b my-branch-name`
123123
1. Make your change and add tests
124124
1. Make sure vet passes: `go vet ./...`
125-
1. Make sure tests pass: `go run ./scripts/testsuite -workers 4` (or the canonical command above)
125+
1. Make sure tests pass: `go run ./scripts/test -workers 4` (or the canonical command above)
126126
1. Push to your fork and [submit a pull request][pr]
127127

128128
Here are a few things you can do that will increase the likelihood of your pull request being accepted:

0 commit comments

Comments
 (0)