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 — test: repair 19 pre-existing V2 test failures by kitlangton · Pull Request #45826 · anomalyco/opencode Conversation
|
| Cases | Before | After |
|---|---|---|
| Responses executor (2) | Text deltas had no preceding output item | Add the canonical response.output_item.added frame required by #44575; retain HTTP fallback, full-consumption commit, malformed-frame, early-stop, and interruption assertions |
| Provider entrypoints (2) | Mantle default expected Chat; Anthropic endpoint expected a static path | Assert Mantle's Responses default and distinct Chat alias (#45394); render the dynamic compatible endpoint and assert the exact non-beta URL (#44583) |
| Anthropic recordings (5) | Non-beta URLs; PDFs omitted the filename-derived title | Migrate request URLs to ?beta=true (#44583), and PDF titles to verification.pdf (#44593) |
| OpenRouter recordings (2) | Older generic Chat body defaults | Match the native route's max_completion_tokens, store: false, usage inclusion, and tool strict: false fields (#44710) |
| OpenRouter reasoning (4) | Reasoning-only assistant content expected null |
Expect "" per #41210 and explicitly unset scalar aliases; retain exact signed, opaque, duplicate, and distinct reasoning details and scalar omission checks |
| Anonymous Promise types (1) | Expected redundant parentheses from reference expansion | Assert both directly inlined anonymous object fields and no synthetic exported alias; current SchemaRepresentation keeps anonymous non-recursive types inline |
| OAuth callback ports (3) | A single hostname listener could leave one loopback family free | Occupy both 127.0.0.1 and ::1, await listening readiness, and await scoped teardown; keep cancellation, preferred-port recovery, fallback-port selection, and exact dual-port error assertions |
The seven cassettes are request-only migrations performed offline, not new provider recordings. All ten recorded responses, request headers, metadata, timestamps, and signed continuation payloads remain unchanged. Exact request matching remains enabled.
Test-only repair of the identified 19 failures. No production behavior, TestLLM implementation, skip policy, timeout budgets, or fixture framework changes. Catalog refresh is explicitly disabled in the affected Server fetch fixture.
Tests ran from package directories using the existing Core isolation runner, with an empty credential environment, ephemeral HOME/XDG/config directories, RECORD=false, and a macOS OS sandbox allowing only loopback outbound connections. The sandbox was separately checked to allow a local HTTP server and reject an external connection. The models-fetch environment flag is CLI-only, so the affected direct Server fixture additionally uses models.fetch: false.
# packages/ai: full suite env -i PATH="$PATH" RECORD=false OPENCODE_DISABLE_MODELS_FETCH=true \ sandbox-exec -p '(version 1)(allow default)(deny network-outbound)(allow network-outbound (remote ip "localhost:*"))' \ bun run ../core/script/test.ts --timeout 30000 # packages/ai: affected files env -i PATH="$PATH" RECORD=false OPENCODE_DISABLE_MODELS_FETCH=true \ sandbox-exec -p '(version 1)(allow default)(deny network-outbound)(allow network-outbound (remote ip "localhost:*"))' \ bun run ../core/script/test.ts --timeout 30000 test/executor.test.ts test/provider-package.test.ts test/provider/anthropic-messages-cache.recorded.test.ts test/provider/openai-chat-reasoning.recorded.test.ts test/provider/pdf.recorded.test.ts test/provider/golden.recorded.test.ts test/provider/openrouter.test.ts # Run separately from packages/server and packages/httpapi-codegen: full suites env -i PATH="$PATH" RECORD=false OPENCODE_DISABLE_MODELS_FETCH=true \ sandbox-exec -p '(version 1)(allow default)(deny network-outbound)(allow network-outbound (remote ip "localhost:*"))' \ bun run ../core/script/test.ts # Run separately from packages/ai, packages/server, and packages/httpapi-codegen bun typecheck git diff --check
Normal CI is green at head c9c7f12dc80ef1513c3d49e659e8cbdacb218e3e: all ten PR checks passed, including Linux/Windows unit and app e2e jobs, service-worker verification, repository typechecking, compiled/Node service lifecycle checks, packed workerd SDK verification, and generated client/documentation checks where configured. Test workflow: https://github.com/anomalyco/opencode/actions/runs/33140207206.
CI coverage limitation: the current turbo.json does not register @opencode-ai/ai#test, @opencode-ai/server#test, or @opencode-ai/httpapi-codegen#test. The completed unit logs contain no test execution for those three packages, so the direct local full-suite results above establish the 19 fixes; green CI must not be interpreted as having run them. Registering additional CI test tasks is a separate follow-up, not folded into this repair.
Local replay verifies request construction and parser/continuation coverage; it does not claim fresh live-provider acceptance. No paid provider calls or live elected OpenCode server were used. The earlier upgrade PR's green CI is not evidence that every failing local case ran there.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Align fixtures with canonical Responses item lifecycles, Mantle Responses aliases, Anthropic beta URLs and PDF titles, and current OpenRouter request defaults. Preserve recorded responses and exact reasoning continuation coverage. Occupy both literal loopback families in OAuth callback tests so localhost cannot bind the unoccupied family. Match directly inlined anonymous Promise wire types without redundant parentheses.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.