Compare commits

...

1 Commits

Author SHA1 Message Date
teknium1
41506ecf0e 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.
2026-06-08 14:42:11 -07:00
2 changed files with 0 additions and 0 deletions

View File