From d1bd7ac7576b8d6770cb56503a8687bbae36bba3 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Sat, 13 Dec 2025 10:53:29 -0800 Subject: [PATCH] perf(ci): replace Windows full tests with smoke tests (bd-bmev) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows CI was timing out at 30 minutes due to fundamentally slow I/O (NTFS, Defender scans, slow Git). RAM disk experiments didn't help enough. Replace two parallel full test jobs with single smoke test job that: - Builds bd.exe - Runs version check - Tests init, create, list, show, update, close Should complete in <2 minutes vs 30+ minute timeouts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/ci.yml | 43 ++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1fd2d3c2..d52be3f16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,12 +51,11 @@ jobs: file: ./coverage.out fail_ci_if_error: false - # TODO: Replace with smoke tests (see bd-bmev) - # Full test suite times out; RAM disk experiments didn't help enough - test-windows-cmd: - name: Test (Windows - cmd) + # Windows smoke tests only - full test suite times out (see bd-bmev) + # Linux runs comprehensive tests; Windows just verifies binary works + test-windows: + name: Test (Windows - smoke) runs-on: windows-latest - continue-on-error: true # Windows tests timeout; don't block PRs steps: - uses: actions/checkout@v6 @@ -71,30 +70,22 @@ jobs: git config --global user.email "ci@beads.test" - name: Build - run: go build -v ./cmd/bd + run: go build -v -o bd.exe ./cmd/bd - - name: Test cmd package - run: go test -v -short -timeout=30m -parallel=4 ./cmd/... + - name: Smoke test - version + run: ./bd.exe version - test-windows-internal: - name: Test (Windows - internal) - runs-on: windows-latest - continue-on-error: true # Windows tests timeout; don't block PRs - steps: - - uses: actions/checkout@v6 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24' - - - name: Configure Git + - name: Smoke test - init and CRUD run: | - git config --global user.name "CI Bot" - git config --global user.email "ci@beads.test" - - - name: Test internal packages - run: go test -v -short -timeout=30m -parallel=4 ./internal/... + ./bd.exe init --quiet --prefix smoke + $output = ./bd.exe create --title "Windows smoke test" --type task + $id = ($output | Select-String -Pattern "smoke-\w+").Matches.Value + echo "Created issue: $id" + ./bd.exe list + ./bd.exe show $id + ./bd.exe update $id --status in_progress + ./bd.exe close $id + echo "All smoke tests passed!" lint: name: Lint