mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-10-20 05:15:31 +00:00
fix(tests): restore missing __init__.py in tests/plugins/platforms
The photon plugin tests intermittently failed CI shard 'test (2)' with 'file or directory not found: test_inbound.py' despite the file being present and '5269 passed, 0 failed' in the same run. Root cause: the package chain under tests/plugins/ was broken. Every sibling (tests/plugins/web, memory, tts, …) has an __init__.py, but tests/plugins/platforms/ and tests/plugins/platforms/photon/ were missing theirs — the photon feature PR's 'Windows footgun' cleanup commit deleted the photon one, and the platforms/ level never had one. With pytest's default prepend import mode, the broken chain makes the module's rootpath resolution depend on cwd/sys.path state the sharded per-file runner doesn't reliably reproduce, so the file resolves at plan time (--collect-only) but not at per-file exec time on whichever shard it lands. Fix: add the two empty __init__.py files so the package chain matches every sibling test package. Deterministic, no runner change needed. Validation: package chain intact tests/ → plugins/ → platforms/ → photon/; 34/34 photon tests pass through scripts/run_tests_parallel.py.
This commit is contained in:
parent
d6c11a4575
commit
41506ecf0e
2 changed files with 0 additions and 0 deletions
0
tests/plugins/platforms/__init__.py
Normal file
0
tests/plugins/platforms/__init__.py
Normal file
0
tests/plugins/platforms/photon/__init__.py
Normal file
0
tests/plugins/platforms/photon/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue