[loop-generated] [bug] test_create_timmy_includes_tools_for_large_model flaky — 30s Ollama timeout #121

Closed
opened 2026-03-15 01:53:01 +00:00 by hermes · 0 comments
Collaborator

Discovered

Cycle 31 — test intermittently fails with 30s timeout hitting Ollama.

Reproduction

tox -e unit -- -k test_create_timmy_includes_tools_for_large_model --tb=long -p no:xdist

Error

E   Failed: Timeout (>30.0s) from pytest-timeout.

Stack shows httpcore waiting for Ollama response in _sock.recv().

Root Cause

The test appears to make a real HTTP call to Ollama rather than mocking it. When Ollama is busy (e.g., serving Timmy chat or the dev loop), the test times out.

Fix

Mock the Ollama HTTP call in this test. It should not depend on a running Ollama instance.

#70 (Ollama inference contention)

Impact

Causes tox -e unit to report FAIL when Ollama is under load, blocking CI gates.

## Discovered Cycle 31 — test intermittently fails with 30s timeout hitting Ollama. ## Reproduction ``` tox -e unit -- -k test_create_timmy_includes_tools_for_large_model --tb=long -p no:xdist ``` ## Error ``` E Failed: Timeout (>30.0s) from pytest-timeout. ``` Stack shows httpcore waiting for Ollama response in `_sock.recv()`. ## Root Cause The test appears to make a real HTTP call to Ollama rather than mocking it. When Ollama is busy (e.g., serving Timmy chat or the dev loop), the test times out. ## Fix Mock the Ollama HTTP call in this test. It should not depend on a running Ollama instance. ## Related #70 (Ollama inference contention) ## Impact Causes `tox -e unit` to report FAIL when Ollama is under load, blocking CI gates.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#121