Skip to content

Tests: skip the compiled half of the fp8 codes layer test on Windows without MSVC - #17073

Merged
danielhanchen merged 1 commit into
mainfrom
ci/fp8-compile-test-windows-cl
Nov 8, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/fp8-compile-test-windows-cl

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

When a cross-platform run selects studio/backend/tests/test_diffusion_native_quant.py, the Windows leg fails both cases of one test. #17068 is a current example:

FAILED test_diffusion_native_quant.py::test_fp8_codes_layer_matches_the_dequant_formula_eager_and_compiled[float8_e4m3fn]
FAILED test_diffusion_native_quant.py::test_fp8_codes_layer_matches_the_dequant_formula_eager_and_compiled[float8_e5m2]
E   torch._inductor.exc.InductorError: InvalidCxxCompiler: Compiler: cl is not found.

The test is on main (from #14549). Its last step runs torch.compile(layer, fullgraph = True) on CPU. Inductor's CPU backend compiles C++ with MSVC on Windows, and the windows-latest runner does not put cl on PATH. The failure is the runner's missing compiler, not the layer. Every check before that step is platform-independent and passes on Windows: the eager forward against the dequant formula, the weight equality and the zero graph-break check.

Change

studio/backend/tests/test_diffusion_native_quant.py, test only: on Windows with no cl on PATH, the test skips just before the compiled half, after the eager and graph-break checks have run. The skip reason says why. On Linux, on macOS, and on Windows with MSVC available, the test runs exactly as before.

Testing

result
the test on Linux, this branch 2 passed
the Windows leg of this PR's cross-platform run the check for the change

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T02:52:35.008842Z 42da884 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 42da88443f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen danielhanchen self-assigned this Nov 8, 2026
@danielhanchen
danielhanchen merged commit a1c6047 into main Nov 8, 2026
@danielhanchen
danielhanchen deleted the ci/fp8-compile-test-windows-cl branch November 8, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant