Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(ci): raise timeouts for slower fork runners
The fork runs CI on shared ubuntu-latest/windows-latest instead of the
upstream Blacksmith runners, which are slower to spawn subprocesses:

- packages/core tests had no --timeout, so ripgrep/git subprocess tests
  hit the 5s default on windows-latest. Align with the opencode package
  (--timeout 30000).
- run-process's unknown-model regression guard budgeted 15s wall-clock;
  subprocess cold start alone eats that on ubuntu-latest. Raise to 40s
  (still catches a real hang, which the harness kills at the limit).

Fork-only; not part of the upstream feature branch.
  • Loading branch information
zinepush committed Jul 16, 2026
commit 980d4a230da8e3736aae7442bfc2e37c5a70243f
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"db": "bun drizzle-kit",
"migration": "bun run script/migration.ts",
"fix-node-pty": "bun run script/fix-node-pty.ts",
"test": "bun test --only-failures",
"test": "bun test --timeout 30000 --only-failures",
"typecheck": "tsgo --noEmit"
},
"bin": {
Expand Down
6 changes: 3 additions & 3 deletions packages/opencode/test/cli/run/run-process.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ describe("opencode run (non-interactive subprocess)", () => {
Effect.gen(function* () {
const result = yield* opencode.run("say hi", {
model: "test/nonexistent-model",
timeoutMs: 15_000,
timeoutMs: 40_000,
})
expect(result.exitCode).not.toBe(0)
expect(result.durationMs).toBeLessThan(15_000)
expect(result.durationMs).toBeLessThan(40_000)
}),
30_000,
60_000,
)

// The test provider's SSE error item is interpreted by the SDK as an unknown
Expand Down
Loading