Repository navigation
[Test] Skip the Windows moe smoke test when FlyDSL is absent - #8094
Conversation
`op_tests/windows/test_moe_small_m_direct.py` landed on main at 02:29 UTC today (#4740). It re-exports `op_tests.test_moe_small_m_direct`, which imports `aiter.fused_moe`, which imports FlyDSL unconditionally -- 39 names across three `aiter.ops.flydsl` modules. FlyDSL ships Linux-only wheels, and `requirements.txt` says so: `flydsl==0.4.2; sys_platform != "win32"`. The Windows smoke runner therefore logs `Ignoring flydsl: markers 'sys_platform != "win32"' don't match your environment` and never installs it, so pytest raises `ModuleNotFoundError: No module named 'flydsl'` while COLLECTING the module. A collection error is not a skip: it fails the whole smoke job. Guarding the import inside `aiter/fused_moe.py` instead would need fallbacks for all 39 names and leave the module half-defined, so the skip belongs here, next to the platform that deliberately lacks the dependency. It costs no coverage Windows had -- `aiter.fused_moe` has never been importable there. The daily scheduled run (13:00 UTC) is green through 2026-11-16 because it last ran before #4740 merged; today's would be the first to hit this. PR #8075 found it earlier only because it carries `ci:all`, which is what lets this job run on a pull request at all. Verified: black and ruff clean; 47 tests still collect on Linux, where FlyDSL is present, so the happy path is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
WAITING ON AUTHORPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
Summary
op_tests/windows/test_moe_small_m_direct.pycannot be collected on Windows. It fails the whole Windows smoke job withModuleNotFoundError: No module named 'flydsl'. This skips it there instead.What happens
The file is a re-export shim. It imports
op_tests.test_moe_small_m_direct, which importsaiter.fused_moe, which imports FlyDSL unconditionally -- 39 names across threeaiter.ops.flydslmodules, so the dependency is structural rather than a corner of the file.FlyDSL ships Linux-only wheels and
requirements.txtsays so:The Windows runner logs
Ignoring flydsl: markers 'sys_platform != "win32"' don't match your environmentand never installs it. pytest then raises during COLLECTION, and a collection error is not a skip -- it fails the job.Why here rather than in
aiter/fused_moe.pyGuarding the import there would need fallbacks for all 39 names and leave the module half-defined.
Stage2ScatterContextis also used in twodef-line annotations, and the file has nofrom __future__ import annotations, so aNonefallback raises at definition time. The skip belongs next to the platform that deliberately lacks the dependency.It costs no coverage Windows had:
aiter.fused_moehas never been importable there.Timeline
op_tests/windows/test_moe_small_m_direct.pyThe job runs on a pull request only with
ci:windowsorci:all, which is why #8075 saw it and other PRs opened since #4740 did not.Testing
black --checkcleanruff checkcleanpytest.importorskipon a missing module raisesSkipped, not an errorDocumentation
Dependencies
Breaking Changes
None. Linux behaviour is byte-for-byte unchanged.
🤖 Generated with Claude Code