GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — mcpx testing: review all tests, set up the fuzz framework and its policies · Issue #1960 · developing-today/code Closed Labels app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insenhancementNew feature or requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/testTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item Milestone DescriptionRelocated from dezren39/darwin-nix#125 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering). Parent: #93 SummaryThe simple, explicitly requested issue: review all existing tests, set up the fuzz framework, and write its policies -- i.e. execute #121-#124 in the smallest useful slice. Three deliverables: an inventory of the 735 tests (at 05c78b2; which become generators, which hide time/randomness/ports, which are flake-prone), the seed helper + wrapper + first generator landed, and the policy text handed to #99. Original notes
Current state (initial inventory from
|
| Package | Tests | Generator candidates | Hidden time / randomness / ports |
|---|---|---|---|
internal/e2e |
209 | exec.flagset (from the TestEveryExecFlagChangesSomething table, e2e_test.go:2877), api.v1request (v1ops_test.go:287) |
time.Sleep/time.Now polling loops in e2e_test.go, v1ops_test.go:420-429, consumer_test.go:286-358 (60 s/30 s waits), proto_test.go:411-426. Daemon leaks are fixed (#182: stop --all cleanup, 60 s idle exit, guarded by TestEnvCleanupStopsTheDaemonItStarted, e2e_test.go:2630); testsupport still never removes its mcpx-bin-*/mcpx-fake-* temp dirs (internal/testsupport/build.go:27,57) |
internal/config |
66 | config.layers (merge/scope: merge_test.go:42-157 are hand-picked layer stacks) |
none seen |
internal/mcpserver |
45 | request shapes | server_test.go:621-632 polls with 2 s deadlines and 20 ms sleeps |
internal/codegen |
42 | codegen.jsonschema (codegen_test.go:16-50 is one schema per test) |
none |
internal/logging |
35 | redaction inputs (redact_test.go table) |
file_test.go:45-138 build timestamps from time.Now().Truncate(time.Hour) -- check for hour/day-boundary sensitivity |
internal/settings |
28 | settings.precedence (registry_test.go already iterates the registry) |
env reads |
internal/launcher |
25 | launcher.template (define_test.go, template_test.go) |
none |
internal/pool |
21 | -- | pool_test.go:423-424 sleeps 50 ms then ReapIdle(time.Now()): timing-dependent; ReapIdle already takes now as a parameter, so a fixed clock is a one-line change |
| others (22 packages) | 264 | parsers: openapi, searchpath, artifacts/name, diagnose |
tasks_test.go:16 sleep, elicit, mcpclient/modern_test.go |
Totals: 9 test files call time.Sleep, 14 call time.Now; at least 9 files use []struct tables (37 match a looser table/range pattern); no t.Parallel() anywhere; network use is unix sockets and httptest (daemon/routes_resolve_test.go, openapi, registry), plus the stub registry in e2e after #65.
docs/testing/inventory.md if Bump unsafe-libyaml from 0.2.8 to 0.2.10 in /sources/pavex/examples/realworld #99 picks a docs home). Per test file: generator candidate / hidden time / hidden randomness (production code mints ids with crypto/rand in pool, tasks, elicit, artifacts, mcpserver, logging/trace, so outputs differ per run; flag any test that asserts on them) / flake-prone (sleep-then-assert) / fine. No rewrites in this step.internal/testsupport/seed (Rand(t, gen), failure reproduce line, CI fail-closed), the wrapper recipe, .gitignore for .cache/test-seed/. Unit-test the helper itself (derivation is stable: golden root/stream for a test-vector id).internal/testsupport/gen with Source, bytesSource, golden-output guard, and one generator. Proposed first: launcher.template or codegen.jsonschema -- pure functions, fast, rich shapes. Plus its Fuzz* twin with a small seed corpus.MCPX_TEST_SEED on the test step; coordinate the edit with Bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /sources/launcher #95 (who owns the workflow).pool_test.go:423 with a fixed now), as proof the inventory pays.Deferred to follow-ups: remaining generators from #124, the collector (#122), soak fuzzing (#95).
seed.Rand(t, ...). No math/rand top-level functions, no time.Now().UnixNano() seeds, no crypto/rand for test data. (A guard test can rg for these in _test.go.)No real three-way choice: the user asked for one simple issue that executes the designs. The one judgement call is order -- inventory first (read-only, cheap, informs which generator goes first) vs helper first (unblocks everyone). Proposed: helper and inventory in parallel, since neither depends on the other; first generator after both.
launcher.template (smallest) or codegen.jsonschema (highest yield, needs one deno check)?_test.go: now, or once the first generators exist?Ease S-M (inventory S, helper S, registry + first generator S-M) · Impact high (turns the design into something every later test uses)
Depends on / related: #121, #122, #123, #124, #126; #99 (policy home, per-bug test, flake policy), #95 (CI init job), #52 (closed, fixed in #182; the leftover temp dirs are a #129 guard candidate), #65, #35.
Security/auth deferred; see tracker.
History carried over from dezren39/darwin-nix#125 (verbatim, oldest first):
@dezren39 · 2026-09-30T07:20:53Z
Integration pass. Placed in the DAG rooted at #181.
@dezren39 · 2026-09-30T12:03:28Z
Issues pass (2026-09-30, at 05c78b2).
e2e_test.go:2877, server_test.go:621-632, proto_test.go:411-426 and pool_test.go:423-424.d956689 to e7457f6 #52)". Phase 5: tag event bodies must travel with the event #182 fixed that (stop --all, 60 s idle exit, TestEnvCleanupStopsTheDaemonItStarted at e2e_test.go:2630). What remains is the testsupport temp dirs (build.go:27,57), a Add omasnap upstream repository to flake inputs #129 candidate.🤖 Agent note · state: filed
Lane code-j claimed task 8147 for issue #1960; execution lane is opencode, so task 8147 is handed off to the opencode claimant. Fresh check this shift: PR #5127 is still OPEN and is authored by and assigned to dezren39 (Drew) — the hard stop from the previous park persists: this fleet must not edit or merge PR #5127. The bound session should re-check ownership and park again if it is unchanged.
🤖 Agent note · blocked
🤖 Agent note · done — residual work merged in PR #5127; closing
Outcome: already done. Fresh verification this shift (2026-11-12):
All three acceptance items for this residual are met; the items this issue itself deferred (remaining generators, seed collector, soak fuzzing) stay with their named follow-ups. Closing issue #1960 as completed. Task 8147 completes as already_done.