Skip to content

test: early-exit code-exec smoke tests once tool invocation is observed - #10954

Merged
filipkujawa merged 1 commit into
mainfrom
fix/code-exec-smoke-early-exit
Aug 5, 2026
Merged

test: early-exit code-exec smoke tests once tool invocation is observed#10954
filipkujawa merged 1 commit into
mainfrom
fix/code-exec-smoke-early-exit

Conversation

@filipkujawa

Copy link
Copy Markdown
Collaborator

Summary

The code_execution smoke test only checked its output pattern after the goose process exited, so models that loop extra tool calls past the 55s kill timer failed the test even though the asserted behavior (invoking the code_execution tool) had already happened.
Example: gpt-4o-mini failure - ▸ execute_typescript appears seconds in, then the model loops until the timeout.
Fix: pass the existing codeExecPattern as runGoose's early-exit success predicate, matching what the shell-tool smoke test already does.

Testing

Ran test_providers_code_exec.test.ts locally against OpenAI: gpt-4o-mini went from 72s timeout-kill to passing in 1.9s; all 4 model tests pass. Typecheck clean.

Related Issues

N/A (CI flake fix)

The code_execution smoke test only checked its output pattern after the
goose process exited, so models that keep looping tool calls past the
55s kill timer failed the test even though the asserted behavior
(invoking the code_execution tool) had already happened seconds in.
Pass the pattern as runGoose's early-exit success predicate, matching
what the shell-tool smoke test already does.
@filipkujawa
filipkujawa added this pull request to the merge queue Aug 5, 2026
Merged via the queue into main with commit c0bb257 Aug 5, 2026
23 checks passed
@filipkujawa
filipkujawa deleted the fix/code-exec-smoke-early-exit branch August 5, 2026 17:29
lifeizhou-ap added a commit that referenced this pull request Aug 6, 2026
* main: (32 commits)
  fix: keep turn-context in place for OpenAI Responses-stack models so prompt caching works (#10993)
  fix(developer): byte-bound the shell truncation preview (#10992)
  fix(openrouter): stop silently ignoring thinking effort off (#10991)
  fix: dispatch edited queued messages (#10933)
  fix: contain recipe template paths (#10930)
  fix: make shell approval titles faithful (#10986)
  fix: block MCP app form submissions (#10985)
  fix: migrate desktop routing to React Router 8.3.0 (#10971)
  fix: sanitize Bedrock tool errors (#10934)
  fix implicit OAuth during model discovery (#10929)
  fix: update React Router to 7.18.2 (#10967)
  test: early-exit code-exec smoke tests once tool invocation is observed (#10954)
  fix: keep ACP session naming out of live conversations (#10963)
  Bind MCP apps to trusted ownership metadata (#10747)
  tests: add recursion_limit attribute to remaining ACP test files (#10559)
  Sanitize Unicode tags in MCP resources (#10746)
  fix(oauth): preserve RFC 9207 iss from MCP OAuth callback (#10678)
  feat(installer): detect Termux and select musl portable build (#10568)
  feat: add Celeris provider (#10714)
  fix: shell ACP providers on desktop (#10907)
  ...
lifeizhou-ap added a commit that referenced this pull request Aug 6, 2026
* main: (101 commits)
  fix: keep turn-context in place for OpenAI Responses-stack models so prompt caching works (#10993)
  fix(developer): byte-bound the shell truncation preview (#10992)
  fix(openrouter): stop silently ignoring thinking effort off (#10991)
  fix: dispatch edited queued messages (#10933)
  fix: contain recipe template paths (#10930)
  fix: make shell approval titles faithful (#10986)
  fix: block MCP app form submissions (#10985)
  fix: migrate desktop routing to React Router 8.3.0 (#10971)
  fix: sanitize Bedrock tool errors (#10934)
  fix implicit OAuth during model discovery (#10929)
  fix: update React Router to 7.18.2 (#10967)
  test: early-exit code-exec smoke tests once tool invocation is observed (#10954)
  fix: keep ACP session naming out of live conversations (#10963)
  Bind MCP apps to trusted ownership metadata (#10747)
  tests: add recursion_limit attribute to remaining ACP test files (#10559)
  Sanitize Unicode tags in MCP resources (#10746)
  fix(oauth): preserve RFC 9207 iss from MCP OAuth callback (#10678)
  feat(installer): detect Termux and select musl portable build (#10568)
  feat: add Celeris provider (#10714)
  fix: shell ACP providers on desktop (#10907)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants