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(ci): register omitted V2 unit suites by kitlangton · Pull Request #45970 · anomalyco/opencode Conversation
|
| Task | Command | Prerequisites |
|---|---|---|
@opencode-ai/ai#test |
bun test --timeout 30000 --only-failures |
Existing workspace dependency builds |
@opencode-ai/server#test |
bun test --only-failures |
Existing workspace dependency builds |
@opencode-ai/httpapi-codegen#test |
bun test --timeout 5000 --only-failures |
None; no workspace dependencies |
Keep success caching and empty artifact outputs. Existing --affected selection, package-wide default budgets, runner commands, CI matrix, and environment passthrough remain unchanged. No generic test task is added.
The first real Windows execution exposed three existing Codegen test-path bugs. Use native join(...) paths in the exact write/remove expectations, and fileURLToPath(...) for the generated-fixture directory instead of URL .pathname. This preserves exact content, file-list, and ownership assertions while allowing the newly registered suite to run on both platforms.
Keep only Codegen's generated TypeScript consumer fixtures checked out as LF via a scoped .gitattributes rule. This prevents Git's Windows CRLF conversion from changing files that the strict fixture test compares byte-for-byte with formatter output; the assertion itself is unchanged.
Close active connections before closing Server's native OAuth fixture listeners, both when answering cancellation and during cleanup. Bun clears the underlying server handle in close(), making a subsequent closeAllConnections() a no-op. The original cancellation, fallback, error-status, and redirect-port assertions remain unchanged; production bind/retry behavior is not modified.
Disable ambient project config discovery for the Server fetch fixtures. The repository's remote-reference config starts a background Git clone/fetch during boot; on Bun 1.3.14 for Windows, a child can inherit both fixture listening sockets and keep port 1455 occupied after their close events. With config.project=false, the unchanged HTTP auth test reuses 1455. Fixture admission order and production retries remain unchanged.
Give only the both-ports-busy integration case a documented ten-second deadline. Production retries deliberately sleep 18 * 200 ms; a loaded local reproduction completed startup at 1.273 s, authorization and both assertions at 4.977 s, and normal scoped cleanup at 5.007 s, exceeding Bun's default five-second deadline. This corrects a measured integration-budget mismatch without shortening real retries or weakening assertions. All other case budgets remain unchanged.
Use eight concurrent file reads for the existing Session UI boundary checks after their serial scans repeatedly exceeded the default Windows test budget. Both checks still scan every TypeScript/TSX source file with the same predicates and relative-path diagnostics. Each invocation gets a fresh file list and contents; there is no shared snapshot, skipped file, or deadline change.
Turbo registrations, four existing test files for native fixture portability/lifecycle and bounded scan I/O, and one scoped generated-fixture LF attribute. This registers only the three discussed V2 suites, not every other currently omitted package. No production, dependency, release, or live-service changes are included.
All temporary diagnostic scripts, workflow files, and tagged trace logs have been removed. The diagnostic workflow is disabled, and the production OAuth source matches the base revision exactly.
Final head bde15e99ec passes both complete unit jobs in 33209834266: Linux and Windows. Each added test task reports cache miss, executing and the following Bun totals:
| Suite | Linux | Windows |
|---|---|---|
| AI | 852 passed, 25 existing skips; 6.86 s | 852 passed, 25 existing skips; 12.99 s |
| Server | 39 passed, 3 existing PTY skips; 12.25 s | 39 passed, 3 existing PTY skips; 15.40 s |
| HTTP API Codegen | 94 passed; 2.43 s | 94 passed; 6.72 s |
These durations sum to 21.54 s of Linux test work and 35.11 s of Windows test work, not isolated critical-path overhead. The complete unit steps pass in 3m21s Linux / 4m36s Windows; each has 25 successful tasks and zero Turbo cache hits. Core and all 164 Session UI tests also pass. CI tests synthetic merge 0e94c1e6f9 against V2 d354c3d640; concurrent base changes account for the extra Server case compared with the local checkout.
The affected-packages job stalled in repository checkout for over an hour, before any affected-package code ran, preventing E2E jobs from starting. The completed unit evidence was retained; the stalled workflow was canceled and the affected-packages job rerun at the same head. Recovery completed successfully, then each platform passed 172 app E2E tests and 11 serverless tests. All checks are green. GitHub auto-squash merged the exact head into v2 as 51d53f45c12deed1d6ea5f30ad21b9aaa7833ca3 at 2026-08-28T21:58:54Z, without bypassing checks.
The earlier base run 33184934471 took 4m09s Linux / 4m12s Windows, versus the final 3m21s / 4m36s. That run selected only Core, CLI, and TUI test tasks; this configuration change selects all 12 registered suites. Source/selection and runner conditions differ, so the observed -48 s Linux / +24 s Windows is not an A/B measurement of three-suite overhead. Both runs have zero Turbo cache hits. The earlier Windows 6m12s estimate was an arithmetic error; exact step timestamps give 4m12s.
# Scheduling checks at the initial registration commit: bun turbo test --filter=@opencode-ai/ai --filter=@opencode-ai/server --filter=@opencode-ai/httpapi-codegen --dry=json TURBO_SCM_BASE=HEAD TURBO_SCM_HEAD=HEAD bun turbo test --affected --dry=json TURBO_SCM_BASE=HEAD^ TURBO_SCM_HEAD=HEAD bun turbo test --affected --dry=json # Same package commands; cache points at the disposable validation cache: bun turbo test --filter=@opencode-ai/ai --filter=@opencode-ai/server --filter=@opencode-ai/httpapi-codegen --force --summarize --cache-dir="$cache" bun turbo test --filter=@opencode-ai/ai --filter=@opencode-ai/server --filter=@opencode-ai/httpapi-codegen --summarize --cache-dir="$cache" bunx prettier --check turbo.json git diff --check # packages/httpapi-codegen, after the Windows test-path correction: bun run test bun typecheck # packages/ai, final credential/HOME-isolated replay run: CI=true RECORD=false bun run ../core/script/test.ts --timeout 30000 # packages/server, after config isolation and diagnostic removal: bun run ../core/script/test.ts --timeout 5000 bun run ../core/script/test.ts test/fetch.test.ts --test-name-pattern OAuth --rerun-each 5 --timeout 5000 bun typecheck # packages/server, after the measured per-case deadline correction: CI=true RECORD=false bun run ../core/script/test.ts --timeout 5000 bun run ../core/script/test.ts test/fetch.test.ts --test-name-pattern 'explains how to recover when both OpenAI OAuth callback ports are busy' --rerun-each 10 --timeout 5000 # packages/session-ui, after repeated Windows scan timeouts: bun run test bun run test --test-name-pattern 'does not import server runtime packages|does not contain old Session message boundaries' --rerun-each 20 bun typecheck
CI=true were used locally; recording remains replay. Existing Server boots may attempt a best-effort public model-catalog refresh, not provider inference; this does not change fixture isolation policy..pathname scanning /C:/...; 98910937895 then exposed CRLF checkout. An isolated git -c core.autocrlf=true checkout-index reproduced the exact byte mismatch and passed with the scoped LF attribute. Subsequent Windows runs pass all 94 Codegen tests; assertions and budgets are preserved.LISTENING through all nine retries; terminating and awaiting that owned child removes both listeners and immediately restores binding. Linux/Mac controls bind while the child lives. Changing only config.project=false in the actual focused auth test preserves its original order and port assertion, removes the retained listeners, and passes on Windows/Linux. This matches upstream Bun #36936; no Bun upgrade is included.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.