Skip to content

fix(bench): run the fused-MoE Dff harness test on Windows - #3082

Merged
inureyes merged 1 commit into
mainfrom
fix/bench-fused-moe-dff-windows
Nov 15, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/bench-fused-moe-dff-windows

Conversation

@inureyes

Copy link
Copy Markdown
Member

The Windows build job's tests/ Python suite fails in test_bench_fused_moe_dff:

  • /proc/loadavg: scripts/bench_fused_moe_dff.py::loadavg() reads it, and only Linux has it (FileNotFoundError).
  • Open log file: main() returns on several paths without closing harness.log, so Windows cannot remove the test's temporary directory (PermissionError: [WinError 32]).

The job is path-filtered and seldom runs, which is how this reached main; #3069 triggered it.

The fix:

  • loadavg() falls back to os.getloadavg(), then to "na".
  • main() opens the log and the run CSV through a contextlib.ExitStack, so every return path closes both files.
  • New tests cover both loadavg() fallbacks.

Validation: python3 -m unittest discover -s tests -p 'test_*.py' passes locally (240 tests, 28 skipped). The Windows job runs on this PR only if its path filter matches.

The Windows build job's `tests/` Python suite failed in test_bench_fused_moe_dff: loadavg() read /proc/loadavg, which only Linux has, and main() returned without closing harness.log, so Windows could not remove the test's temporary directory. The job is path-filtered and rarely runs, which is how this reached main; PR #3069 triggered it.

loadavg() now falls back to os.getloadavg() and then to "na", and main() opens the log and the CSV through an ExitStack so every return path closes them. New tests cover both fallbacks. The tests/ suites pass locally (240 tests).
@inureyes inureyes added status:review Under review type:bug Bug fixes, error corrections, or issue resolutions priority:medium Medium priority labels Nov 15, 2026
@inureyes
inureyes merged commit bb76daa into main Nov 15, 2026
31 checks passed
@inureyes
inureyes deleted the fix/bench-fused-moe-dff-windows branch November 15, 2026 11:22
inureyes added a commit that referenced this pull request Nov 15, 2026
)

These four PRs merged without their technical reports (the repository keeps reports via `TECHNICAL_REPORTS/.keep-reports`). This adds the English and Korean reports for each:

- #3069: per-thread default device
- #3082: Windows bench harness test
- #3086: create_causal_mask roster count
- #3089: thread-safe kernel holders

Docs only.
@inureyes inureyes added this to the 0.9 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Medium priority status:review Under review type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant