Skip to content

[Tests][Disco] Skip CCL tests when runtime support is absent - #19724

Merged
tqchen merged 1 commit into
apache:mainfrom
tlopex:fix-disco-ccl-wheel-skip
Jun 10, 2026
Merged

tqchen merged 1 commit into
apache:mainfrom
tlopex:fix-disco-ccl-wheel-skip

Conversation

@tlopex

@tlopex tlopex commented Jun 10, 2026

Copy link
Copy Markdown
Member

The disco CCL tests called tvm.get_global_func("runtime.disco.compiled_ccl") at module import time, which raises ValueError on TVM builds without Disco CCL support (e.g. published wheels), failing pytest collection. Resolve the function with allow_missing=True and skip the module when it is absent.

The disco CCL tests called tvm.get_global_func("runtime.disco.compiled_ccl")
at module import time, which raises ValueError on TVM builds without Disco
CCL support (e.g. published wheels), failing pytest collection. Resolve the
function with allow_missing=True and skip the module when it is absent.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Disco CCL tests to gracefully skip execution when Disco CCL is not enabled in the TVM build. However, in test_ccl.py, wrapping the result of _compiled_ccl() in a list creates an unintended nested list structure, which will cause parametrization to fail. It is recommended to assign _ccl directly to the return value of _compiled_ccl().

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tests/python/disco/test_ccl.py
@tqchen
tqchen merged commit 3d95dec into apache:main Jun 10, 2026
9 checks passed
MasterJH5574 pushed a commit to MasterJH5574/tvm that referenced this pull request Jun 15, 2026
…19724)

The disco CCL tests called
tvm.get_global_func("runtime.disco.compiled_ccl") at module import time,
which raises ValueError on TVM builds without Disco CCL support (e.g.
published wheels), failing pytest collection. Resolve the function with
allow_missing=True and skip the module when it is absent.

(cherry picked from commit 3d95dec)
MasterJH5574 pushed a commit to MasterJH5574/tvm that referenced this pull request Jun 15, 2026
…19724)

The disco CCL tests called
tvm.get_global_func("runtime.disco.compiled_ccl") at module import time,
which raises ValueError on TVM builds without Disco CCL support (e.g.
published wheels), failing pytest collection. Resolve the function with
allow_missing=True and skip the module when it is absent.

(cherry picked from commit 3d95dec)
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.

2 participants