Repository navigation
fix(bench): run the fused-MoE Dff harness test on Windows - #3082
Merged
Merged
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Windows build job's
tests/Python suite fails intest_bench_fused_moe_dff:/proc/loadavg:scripts/bench_fused_moe_dff.py::loadavg()reads it, and only Linux has it (FileNotFoundError).main()returns on several paths without closingharness.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 toos.getloadavg(), then to"na".main()opens the log and the run CSV through acontextlib.ExitStack, so every return path closes both files.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.