Skip to content

test(core): stabilize shell integration timing - #40084

Merged
kitlangton merged 1 commit into
v2from
fix-cli-test-flakes
Aug 2, 2026
Merged

test(core): stabilize shell integration timing#40084
kitlangton merged 1 commit into
v2from
fix-cli-test-flakes

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What

Stabilize three ShellTool integration scenarios that have failed intermittently on Windows CI under runner contention.

Before / After

Before: the stderr/mixed-output and overflow tests inherited Bun's 5-second deadline and occasionally finished just after it. The timeout-output test could terminate PowerShell after 500 ms, before PowerShell executed its first write, producing (no output) instead of the expected partial output.

After: real-process scenarios have a 15-second test deadline. The Windows timeout-output fixture gets 3 seconds to start and write before timing out its 60-second sleep, preserving the behavior under test.

How

Only packages/core/test/tool-shell.test.ts changes. Production shell timeout behavior is unchanged.

Scope

This addresses the repeated recent ShellTool Windows failures. Separate service-registration and config-debounce flakes observed in CI need independent diagnosis.

Testing

  • bun run test test/tool-shell.test.ts --rerun-each 10 from packages/core: 170 passed
  • bun run test from packages/core: 1,528 passed, 6 skipped
  • bun typecheck from packages/core
  • Push hook workspace typecheck: 33 packages passed

@kitlangton
kitlangton merged commit 3f30203 into v2 Aug 2, 2026
10 checks passed
@kitlangton
kitlangton deleted the fix-cli-test-flakes branch August 2, 2026 18:45
github-actions Bot pushed a commit to ReStranger/opencode that referenced this pull request Aug 3, 2026
* upstream/v2:
  test(core): stabilize shell integration timing (anomalyco#40084)
  fix(core): route Bedrock packages natively (anomalyco#40165)
  feat(ai): add native Bedrock Mantle support (anomalyco#40119)
  fix(tui): reserve home and end for navigation (anomalyco#40123)
  refactor(ai): align multimodal naming (anomalyco#40073)
  refactor(tui): remove redundant code (anomalyco#40081)
  fix(tui): discover plugins across config roots (anomalyco#39988)
  fix(tui): make vertical tabs responsive (anomalyco#40080)
  feat(tui): add vertical session tabs (anomalyco#40072)
  fix: preserve provider error status (anomalyco#39976)
  fix(tui): prevent sidebar scrollbar flash (anomalyco#40056)
  feat(tui): prioritize favorite model search results (anomalyco#40049)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant