From 53eb79eadb7b721e4db1167adf4bda24df07731c Mon Sep 17 00:00:00 2001 From: repo-worker-tmp-code-b Date: Wed, 11 Nov 2026 06:08:36 -0600 Subject: [PATCH] ci(chat): run pkgs/chat Go tests in go-modules-build (#6099) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The go-modules-build workflow built and vetted chat but never ran its test suite. Add a chat-only Test step after Vet that runs go test ./... in pkgs/chat, guarded on main_test.go existing so a missing suite fails loudly instead of reporting a false green. Other matrix modules have no test files and are unchanged. Verified: cd pkgs/chat && go test ./... — ok (suite now 11 tests); guard verified to fail when main_test.go is absent; workflow YAML parses. --- .github/workflows/go-modules-build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/go-modules-build.yml b/.github/workflows/go-modules-build.yml index 07d9b6ab58..f5c263d465 100644 --- a/.github/workflows/go-modules-build.yml +++ b/.github/workflows/go-modules-build.yml @@ -101,3 +101,18 @@ jobs: - name: Vet working-directory: pkgs/${{ matrix.module }} run: go vet ./... + + - name: Test (chat only) + if: matrix.module == 'chat' + working-directory: pkgs/chat + run: | + # pkgs/chat is the one matrix module with a test suite + # (#6099): five-plus tests pinning broadcast and registry + # concurrency. Guard on the suite existing so a missing + # main_test.go fails loudly instead of `go test` reporting + # a false green for a package with no test files. + if [[ ! -f main_test.go ]]; then + echo "pkgs/chat/main_test.go is missing; refusing to report a test pass with no tests." + exit 1 + fi + go test ./...