GeezerVison is showing github.com — ci(chat): pkgs/chat go tests (5 tests pinning broadcast + registry concurrency) run by no workflow — go-modules-build.yml builds and vets but never tests · Issue #6099 · developing-today/code
ci(chat): pkgs/chat go tests (5 tests pinning broadcast + registry concurrency) run by no workflow — go-modules-build.yml builds and vets but never tests #6099DescriptionProblem
pkgs/chat/main_test.go — the only test suite for the pkgs/chat TUI chat program — is run by no workflow. The one workflow that touches the module, go-modules-build.yml, verifies tidy/build/vet only; it never runs go test. pkgs/chat is also the only module in that workflow's matrix that has any tests at all, so the gap is invisible: the workflow is green whether the tests pass, fail, or are deleted.
Evidence (verified this run, laptop primary @ e90672d, HEAD == origin/main)
.github/workflows/go-modules-build.yml (matrix line ~57: module: [chat, database, graph, import, launcher, tea]) runs exactly three verifications per module: go mod tidy cleanliness, go build ./..., and go vet ./.... There is no go test step in the file, and no other workflow mentions pkgs/chat.
- Hand run on the laptop this run:
cd pkgs/chat && go test ./... → ok, 5 tests pass (1.128 s, fully offline).
- What the 5 tests pin (
main_test.go lines 68–207, against the 238-line main.go): Enter on empty input broadcasts nothing; Enter on real text broadcasts it verbatim exactly once; send reaches only live programs (removed sessions get nothing); removing an unknown session is a no-op; and the registry holds up under concurrent register/send/remove.
- Why these pins matter here: the open chat issues are exactly in this area — chat: broadcast fan-out runs each Send in its own goroutine — messages arrive out of order and a stalled session piles up unbounded blocked goroutines #4389 (broadcast fan-out ordering / unbounded blocked goroutines), chat: completion waiter can block forever on p.Wait() before program startup — session never deregistered #4515 (completion waiter can block forever; session never deregistered), chat: per-session message history is never trimmed — every message re-joins the full history into the 5-line viewport, so a long-lived session grows unbounded and rendering is quadratic #3268 (unbounded per-session history). The registry/broadcast contract tests are the regression net for those fixes, and today a fix for any of them can merge with the net never run.
Why it matters
Build+vet proves the chat program compiles; it says nothing about the broadcast semantics that are its whole behaviour. The suite exists, is fast and offline, and covers the precise subsystem with three open concurrency/lifecycle bugs — it is simply never executed.
Acceptance criteria
- An automated check (a
go test ./... step in go-modules-build.yml for the chat matrix entry, or an equivalent workflow) runs the pkgs/chat tests on changes under pkgs/chat/.
- The check passes on current main (5 tests at filing).
- Breaking a pinned behaviour (e.g. broadcasting empty input, or delivering to a removed session) makes the check fail.
Activitydeveloping-today commented on Nov 5, 2026 added kind/ciCI/CD pipelines, workflows, and build automation task/triageQueue packet kind: verify, reproduce, and route this item app/chatPackage/app: chat (pkgs/ or apps/ in this repo) on Nov 5, 2026dezren39 commented on Nov 5, 2026 🤖 Agent note · state: filed
- Agent: new-issue-creator (new-issue-creator-code-b)
- Session / ID: cron job new-issue-creator-code-b, run 2026-11-05 00:20 CST
- Found via: filed this run
- Task: Filed this issue — pkgs/chat's Go test suite (main_test.go: broadcast + registry-concurrency contract) is run by no workflow; go-modules-build.yml covers the module with tidy/build/vet only and has no go test step. Verified by reading the workflow, plus a hand run on the laptop @e90672dc9e (go test ./... ok, 5 tests pass).
- Expectation: effort xs — add a go test step for the chat matrix entry (or equivalent); done when it passes on current main and broadcasting empty input fails it.
- Links: packet hidden_files/packet-6099-triage.json (queue repo-health-code-pilot)
dezren39 commented on Nov 5, 2026 dezren39 commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026
Agent note — parked (CI wait on PR #8663)
dezren39 commented on Nov 11, 2026
🤖 Agent note · done (fixed_merged) — task 9911, lane code-c
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|