Skip to content

Fix unexpected success failures for Conv/RefOps tests on XPU#3200

Open
PatrykWilczewski wants to merge 1 commit intointel:mainfrom
PatrykWilczewski:dev/pmerchex/fix_unexpected_success
Open

Fix unexpected success failures for Conv/RefOps tests on XPU#3200
PatrykWilczewski wants to merge 1 commit intointel:mainfrom
PatrykWilczewski:dev/pmerchex/fix_unexpected_success

Conversation

@PatrykWilczewski
Copy link
Copy Markdown
Contributor

Several tests marked as expectedFailure for CUDA now pass on XPU, causing "Unexpected success" failures.

Add passing ops to _cuda_xfail_xpu_pass to suppress the inherited expectedFailure decorator:

  • nn.Conv2d, nn.ConvTranspose2d, nn.LazyConv2d, nn.LazyConvTranspose2d for test_memory_format (device_type='cuda', dtypes=[float64])
  • _refs.pow for test_python_ref_executor (device_type=None, dtypes=[complex32])

Extend gen_xpu_wrappers to also strip expectedFailure decorators that have device_type=None when the (op_name, test_name) pair is listed in _cuda_xfail_xpu_pass. This is needed because _refs.mul and _refs.pow mark test_python_ref_executor as expectedFailure without scoping to a specific device type.

Fixes: #2537

Several tests marked as expectedFailure for CUDA now pass on XPU,
causing "Unexpected success" failures.

Add passing ops to _cuda_xfail_xpu_pass to suppress the inherited
expectedFailure decorator:
- nn.Conv2d, nn.ConvTranspose2d, nn.LazyConv2d, nn.LazyConvTranspose2d
  for test_memory_format (device_type='cuda', dtypes=[float64])
- _refs.pow for test_python_ref_executor (device_type=None,
  dtypes=[complex32])

Extend gen_xpu_wrappers to also strip expectedFailure decorators that
have device_type=None when the (op_name, test_name) pair is listed in
_cuda_xfail_xpu_pass. This is needed because _refs.mul and _refs.pow
mark test_python_ref_executor as expectedFailure without scoping to a
specific device type.

Fixes: intel#2537
Copilot AI review requested due to automatic review settings March 27, 2026 12:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses “Unexpected success” failures in XPU test runs caused by inheriting CUDA (and unscoped) expectedFailure decorators for ops that now pass on XPU. It does so by expanding the allowlist of (op, test) pairs that should not carry over those xfails to XPU, and by teaching the wrapper generator to also drop unscoped (device_type=None) expectedFailure decorators for those pairs.

Changes:

  • Add Conv/LazyConv module entries to _cuda_xfail_xpu_pass for test_memory_format.
  • Add _refs.pow entry to _cuda_xfail_xpu_pass for test_python_ref_executor.
  • Extend gen_xpu_wrappers to strip expectedFailure decorators with device_type=None when the (op, test) pair is in _cuda_xfail_xpu_pass.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Title: [upstream_ut] Failed: Unexpected success

2 participants