Skip to content

test: isolate turn model differential imports - #129389

Closed
shakkernerd wants to merge 1 commit into
mainfrom
fix/turn-model-differential-timeout
Closed

shakkernerd wants to merge 1 commit into
mainfrom
fix/turn-model-differential-timeout

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

Summary

Keep the turn model-differential suite focused on model selection instead of loading unrelated runtime barrels.

Root Cause

The test mocked its model-selection dependencies but left the thinking-level and message-channel runtime modules unmocked.

Importing those heavyweight barrels stalled module initialization before Vitest could start the test cases.

Changes

  • provide focused thinking-level helpers for the suite
  • provide focused deliverable-channel classification
  • leave production model-selection behavior unchanged

Performance

  • before: no test output after 225.52 seconds
  • after: 8/8 tests pass in 6.38 seconds

Verification

  • 8 focused tests
  • formatting
  • Oxlint
  • git diff --check
  • autoreview

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Aug 25, 2026
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Superseded by #129397, which combines this test-only fix with the related fixture and import-isolation repairs.

@RomneyDa
RomneyDa deleted the fix/turn-model-differential-timeout branch October 22, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant