Environment
- Machine: Apple M1, 32 GB, macOS 25.4.0
- Python: 3.12.8
- Ollama: 0.17.5
Issues
1. test_generate_from_raw — intermittent hang
I was unable to get this test reliable initially - it may be a bug in ollama or machine limitations. With no timeout (we didn't have one in the test originally) it could hang indefinately. The test looks ok, but is dependent on parallel execution. Using the granite4:micro model should be ok at 4 in parallel (and default context of 32k).
Experimenting with enforcing timeouts.
This was the main issue leading to long execution runs or failures
2. test_generate_from_raw_with_format — stale @pytest.mark.xfail
This is marked as xfail, yet was consistently passing. I think we could remove the marker now. The current test seems reliable
3. test_format (ollama + openai_ollama) — MAX_NEW_TOKENS too small
This also failed intermittently....
MAX_NEW_TOKENS = 2**8 (256 tokens) insufficient for structured JSON output; causes
truncated responses and assertion failures. Raising to 2**10 (1024 tokens) seems to inject reliability ...
4. researcher.py — 84-second test not gated by slow
pyproject.toml described slow as ">5 minutes". researcher.py (~84s) ran in every
default suite pass, dominating duration.
I think we need to add slow to its # pytest: markers; ( and having a policy of ">1 minute" seems more reasonable )
5. asyncio_default_fixture_loop_scope=None — pytest-asyncio warning
A warning - suspect will ifgnore this for now
6. Unclosed aiohttp ClientSession / TCPConnector at suite teardown
Unclosed client session: <aiohttp.client.ClientSession object at 0x156d68950>
Similar - and only occurs at the end of the test suite
Environment
Issues
1.
test_generate_from_raw— intermittent hangI was unable to get this test reliable initially - it may be a bug in ollama or machine limitations. With no timeout (we didn't have one in the test originally) it could hang indefinately. The test looks ok, but is dependent on parallel execution. Using the granite4:micro model should be ok at 4 in parallel (and default context of 32k).
Experimenting with enforcing timeouts.
This was the main issue leading to long execution runs or failures
2.
test_generate_from_raw_with_format— stale@pytest.mark.xfailThis is marked as xfail, yet was consistently passing. I think we could remove the marker now. The current test seems reliable
3.
test_format(ollama + openai_ollama) —MAX_NEW_TOKENStoo smallThis also failed intermittently....
MAX_NEW_TOKENS = 2**8(256 tokens) insufficient for structured JSON output; causestruncated responses and assertion failures. Raising to
2**10(1024 tokens) seems to inject reliability ...4.
researcher.py— 84-second test not gated byslowpyproject.tomldescribedslowas ">5 minutes".researcher.py(~84s) ran in everydefault suite pass, dominating duration.
I think we need to add
slowto its# pytest:markers; ( and having a policy of ">1 minute" seems more reasonable )5.
asyncio_default_fixture_loop_scope=None— pytest-asyncio warningA warning - suspect will ifgnore this for now
6. Unclosed aiohttp
ClientSession/TCPConnectorat suite teardownUnclosed client session: <aiohttp.client.ClientSession object at 0x156d68950>
Similar - and only occurs at the end of the test suite