Skip to content

Test issues (local, m1, 32GB) #573

Description

@planetf1

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions