From 41506ecf0ebf1c5a79ccb301b1e2fa3360c05b26 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Mon, 8 Jun 2026 14:42:11 -0700 Subject: [PATCH] fix(tests): restore missing __init__.py in tests/plugins/platforms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tests/plugins/platforms/__init__.py | 0 tests/plugins/platforms/photon/__init__.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/plugins/platforms/__init__.py create mode 100644 tests/plugins/platforms/photon/__init__.py diff --git a/tests/plugins/platforms/__init__.py b/tests/plugins/platforms/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/plugins/platforms/photon/__init__.py b/tests/plugins/platforms/photon/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1