Skip to content

Add missing trition dep to BUCK target#2051

Open
lilyjanjigian wants to merge 1 commit intometa-pytorch:mainfrom
lilyjanjigian:export-D100182678
Open

Add missing trition dep to BUCK target#2051
lilyjanjigian wants to merge 1 commit intometa-pytorch:mainfrom
lilyjanjigian:export-D100182678

Conversation

@lilyjanjigian
Copy link
Copy Markdown
Contributor

Summary:
The test_device_alltoallv_dynamic target was missing the triton dependency in its BUCK file. Without it, CI workers that don't have triton pre-installed hit ImportError at module load time, before any test skip logic could run. This caused all 34 tests to fail with "cannot import name 'flush_block' from 'torchcomms.triton.fb'".

Add the triton dep so the module imports succeed. Individual tests that need CUDA still skip gracefully via unittest.skipUnless(CUDA_AVAILABLE).

Also reverts the try/except import guards and SimpleNamespace stubs that were added as a workaround — they're no longer needed since triton is always available as a build dep.

Differential Revision: D100182678

Summary:
The test_device_alltoallv_dynamic target was missing the triton dependency in its BUCK file. Without it, CI workers that don't have triton pre-installed hit ImportError at module load time, before any test skip logic could run. This caused all 34 tests to fail with "cannot import name 'flush_block' from 'torchcomms.triton.fb'".

Add the triton dep so the module imports succeed. Individual tests that need CUDA still skip gracefully via unittest.skipUnless(CUDA_AVAILABLE).

Also reverts the try/except import guards and SimpleNamespace stubs that were added as a workaround — they're no longer needed since triton is always available as a build dep.

Differential Revision: D100182678
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 13, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 13, 2026

@lilyjanjigian has exported this pull request. If you are a Meta employee, you can view the originating Diff in D100182678.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant