Skip to content

[CI] test_kernel_density fails with NotImplementedError validation issues #7403

@csadorf

Description

@csadorf

Summary

The test_kernel_density property-based test is failing due to two issues: the error message for an expected NotImplementedError does not match the expected string, and in some cases, a NotImplementedError is not raised when it should be.

Failing test/component: test_kernel_density.py::test_kernel_density

Failure observed in:

Environment

This failure is environment-independent and occurs regardless of OS, Python version, CUDA version, GPU, or dependency set.

Test Details

  • Test file: python/cuml/tests/test_kernel_density.py
  • Test name: test_kernel_density (line 96)
  • Error message:
    BaseExceptionGroup: Hypothesis found 2 distinct failures. (2 sub-exceptions)
    
    Failure 1 - Regex pattern mismatch:
      Expected: "Only \['gaussian', 'tophat'\] kernels, and the euclidean metric are supported."
      Actual: "Only ['gaussian', 'tophat'] kernels are supported."
      Example: kernel='epanechnikov', metric='euclidean'
    
    Failure 2 - Missing validation:
      Expected: NotImplementedError to be raised
      Actual: No error raised
      Example: kernel='gaussian', metric='manhattan'
    

Root Cause Analysis

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcihypothesisFailure is related to hypothesis testing

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions