Skip to content

Drop the duplicate has_real_cuda import in the torchao route test - #15239

Merged
danielhanchen merged 1 commit into
mainfrom
ci-fp8-torchao-dup-import
Oct 25, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-fp8-torchao-dup-import

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Source lint is red on main, and so on every PR (for example #15212 and #15217). The step that fails is Duplicate definitions (whole tree):

tests/test_fp8_torchao_import_route.py:13: has_real_cuda is imported twice from the same module (first at line 11)

#15211 and c993bf3 (skip the QAT MX and FP8 block GEMM GPU cases on the recorded real CUDA) landed the same from real_accelerator import has_real_cuda fix 18 minutes apart. Their import lines sit at different spots, so git merged both without a conflict and left the name bound twice. scripts/lint_duplicate_definitions.py exists to catch exactly this merge damage.

Change

  • Drop the second import. Nothing else in the file changes.

Verification

  • python scripts/lint_duplicate_definitions.py tests/test_fp8_torchao_import_route.py: on main duplicate definitions (1) with exit 1. With this change: clean: 1 file(s) checked and exit 0.
  • tests/test_fp8_torchao_import_route.py and tests/python/test_accelerator_skip_guards.py: 52 passed, 1 skipped.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T09:54:28.196637Z a1bc2ed 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. You're on a roll.

Reviewed commit: a1bc2ed11d

ℹ️ 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 merged commit a4a6350 into main Oct 25, 2026
0 of 14 checks passed
@danielhanchen
danielhanchen deleted the ci-fp8-torchao-dup-import branch October 25, 2026 10:00
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