Skip to content

fix(test): skip cumsum tests on TensorRT-RTX Windows instead of xfail#4189

Merged
lanluo-nvidia merged 1 commit intopytorch:mainfrom
tp5uiuc:skip-cumsum-trtrtx-windows
Apr 15, 2026
Merged

fix(test): skip cumsum tests on TensorRT-RTX Windows instead of xfail#4189
lanluo-nvidia merged 1 commit intopytorch:mainfrom
tp5uiuc:skip-cumsum-trtrtx-windows

Conversation

@tp5uiuc
Copy link
Copy Markdown
Contributor

@tp5uiuc tp5uiuc commented Apr 15, 2026

Description

Change TestCumsumConverter from @pytest.mark.xfail to @unittest.skipIf to match the repo convention for TensorRT-RTX conditional test skips.

With xfail, the cumsum test still executes and the resulting error corrupts CUDA state, causing subsequent tests in the CI pipeline to fail. Using skipIf avoids running the test entirely and prevents these cascading failures.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes
  • I have added the relevant labels to my PR in so that relevant reviewers are notified

Change TestCumsumConverter from @pytest.mark.xfail to @unittest.skipIf.
With xfail, the test still runs and the cumsum error corrupts CUDA
state, causing subsequent tests in the pipeline to fail. Skipping
avoids running the test entirely and prevents the cascading failures.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@meta-cla meta-cla bot added the cla signed label Apr 15, 2026
@github-actions github-actions bot added the component: tests Issues re: Tests label Apr 15, 2026
@github-actions github-actions bot requested a review from lanluo-nvidia April 15, 2026 00:50
@lanluo-nvidia lanluo-nvidia merged commit cba9b75 into pytorch:main Apr 15, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants