Skip to content

[Tests] Reduce redundant ONNX and PyTorch integration tests#20026

Merged
tqchen merged 4 commits into
apache:mainfrom
tlopex:tests/frontend-ci-pressure-reduction
Jul 18, 2026
Merged

[Tests] Reduce redundant ONNX and PyTorch integration tests#20026
tqchen merged 4 commits into
apache:mainfrom
tlopex:tests/frontend-ci-pressure-reduction

Conversation

@tlopex

@tlopex tlopex commented Jul 17, 2026

Copy link
Copy Markdown
Member

This PR reduces repeated Relax frontend and integration test work while preserving distinct coverage. It reworks ONNX ConvTranspose tests into direct importer checks plus 11 numerical cases covering all ranks, asymmetric padding, grouping, bias, dilation, and output padding. Targeted runtime improves from 17.97s to 3.55s.

  • removes duplicate ONNX Pow, unused dynamic Squeeze parameterizations, and irrelevant Resize ROI value permutations.
  • consolidates overlapping PyTorch integration tests while preserving symbolic shapes, TIR, I.pyfunc, and packed-function coverage.
  • removes the redundant BasePyModule aggregate suite, moves its unique output-only call_tir case into the DLPack test, and removes a DLPack test that swallowed all exceptions.

@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 refactors and simplifies several test files in the Relax Python test suite. It removes the redundant test_base_py_module.py file, cleans up unused imports, and consolidates test cases in test_pytorch_integration.py and test_dlpack_integration.py. Additionally, it refactors the ConvTranspose tests in test_frontend_onnx.py into parameterized import and numerical tests, and simplifies the test cases for dynamic squeeze and resize operations. There are no review comments, so I have no feedback to provide.

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.

@tqchen
tqchen merged commit a82b34d into apache:main Jul 18, 2026
8 checks passed
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