Skip to content

[Docs] Modernize test-gating documentation#19788

Merged
guan404ming merged 3 commits into
apache:mainfrom
tlopex:docs-test-gating
Jun 16, 2026
Merged

[Docs] Modernize test-gating documentation#19788
guan404ming merged 3 commits into
apache:mainfrom
tlopex:docs-test-gating

Conversation

@tlopex

@tlopex tlopex commented Jun 16, 2026

Copy link
Copy Markdown
Member

This pr updates the contributor guide and tvm.testing docstrings/comments to describe the current gating API

Update the contributor guide and tvm.testing docstrings/comments to
describe the current gating API (@pytest.mark.gpu + tvm.testing.env.has_*()
+ skipif, and pytest.importorskip for optional packages) instead of the
removed Feature class and @tvm.testing.requires_*/uses_gpu decorators.

@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 documentation and docstrings across the codebase to reflect the transition from per-target decorators to capability-based gating probes (such as tvm.testing.env.has_cuda()) and @pytest.mark.gpu for GPU tests. The review feedback suggests improving consistency in the docstrings of python/tvm/testing/env.py by using the full namespace tvm.testing.env for capability probes instead of abbreviated versions.

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 python/tvm/testing/env.py Outdated
Comment thread python/tvm/testing/env.py Outdated
tqchen and others added 2 commits June 16, 2026 07:30
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

@guan404ming guan404ming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@guan404ming guan404ming merged commit 949be81 into apache:main Jun 16, 2026
9 checks passed
MasterJH5574 pushed a commit to MasterJH5574/tvm that referenced this pull request Jun 16, 2026
This pr updates the contributor guide and tvm.testing
docstrings/comments to describe the current gating API

---------

Co-authored-by: Tianqi Chen <tqchen@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

3 participants