Skip to content

Commit aad848d

Browse files
M09Icclaude
andcommitted
ci: add pool shutdown regression tests and PR CI workflow
Add 19 tests in core/pool/pool_test.go covering: - addAddition: normal, after cancel, wg balance, full buffer, concurrent - sendProcess: normal, after cancel, full buffer, concurrent - putToOutput/putToFuzzy: normal, after cancel, Outwg balance - Handler lifecycle: processCh close exits handler, drains all items - Shutdown sequence: no deadlock, cancel mid-flight - Goroutine leak detection after full shutdown Add .github/workflows/ci.yml: - Runs on PR to master and push to master - Tests on ubuntu-latest and windows-latest - go build, go test -race, go vet Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ebc692e commit aad848d

2 files changed

Lines changed: 560 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
push:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: "1.20"
25+
26+
- name: Build
27+
run: go build ./...
28+
29+
- name: Test (race)
30+
run: go test ./core/pool/ ./core/baseline/ ./core/ihttp/ ./pkg/ -v -race -count=1 -timeout=120s
31+
32+
- name: Vet
33+
run: go vet ./core/... ./pkg/... ./cmd/...
34+
continue-on-error: true

0 commit comments

Comments
 (0)