Skip to content

Mark test test_spectral_clustering_output_shape_type_and_label_count as xfail#7791

Merged
rapids-bot[bot] merged 2 commits intorapidsai:mainfrom
csadorf:mitigate/7714
Feb 11, 2026
Merged

Mark test test_spectral_clustering_output_shape_type_and_label_count as xfail#7791
rapids-bot[bot] merged 2 commits intorapidsai:mainfrom
csadorf:mitigate/7714

Conversation

@csadorf
Copy link
Copy Markdown
Contributor

@csadorf csadorf commented Feb 10, 2026

Marks test_spectral_clustering.py::test_spectral_clustering_output_shape_type_and_label_count as expected to fail we work on identifying and fixing the root cause; tracked in #7714 .

While we identify the root-cause for the issue tracked in
rapidsai#7714 .
@csadorf csadorf requested a review from a team as a code owner February 10, 2026 22:35
@csadorf csadorf requested a review from betatim February 10, 2026 22:35
@csadorf csadorf added bug Something isn't working non-breaking Non-breaking change labels Feb 10, 2026
@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Feb 10, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 10, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Tests

    • Marked certain spectral clustering tests as expected failures due to a known issue.
  • Chores

    • Updated copyright year information.

Walkthrough

Added xfail markers to two tests in test_spectral_clustering.py to indicate expected failures related to issue 7714. Updated copyright year in file header from 2025 to 2025-2026. No test logic or runtime behavior changes.

Changes

Cohort / File(s) Summary
Test Markers & Metadata
python/cuml/tests/test_spectral_clustering.py
Added xfail markers to two tests to mark expected failures related to issue 7714. Updated copyright year from 2025 to 2025-2026.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

Cython / Python, improvement, non-breaking

Suggested reviewers

  • jcrist
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: marking a specific test as xfail (expected to fail), which matches the core modification in the pull request.
Description check ✅ Passed The description is directly related to the changeset, explaining why the test is marked as xfail and referencing the tracked issue, which aligns with the modifications made.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
python/cuml/tests/test_spectral_clustering.py (1)

246-246: Consider adding strict=True to surface when the underlying issue is resolved.

Without strict=True, once the root cause (issue #7714) is fixed, this test will silently pass as XPASS without anyone being prompted to remove the marker. Adding strict=True makes CI fail on an unexpected pass, serving as a reminder to clean up.

Suggested change
-@pytest.mark.xfail(reason="https://github.com/rapidsai/cuml/issues/7714")
+@pytest.mark.xfail(reason="https://github.com/rapidsai/cuml/issues/7714", strict=True)

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member

@betatim betatim left a comment

Choose a reason for hiding this comment

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

LGTM.

It would be nice if we could tell hypothesis/pytest that only this one example is known to fail. Instead of having to mark the whole test as xfail. From a quick look at the docs I think you can mark a particular @example(...).xfail() but that won't stop hypothesis from generating that example again. But maybe it is super unlikely to generate the eact same example anyway.

My conclusion as a hypothesis novice: it would be nice to keep some of this test, but unclear to me how to do that. Fine for me to merge as is, or for someone with hypothesis mega skills to show us how it is done :D

@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Feb 11, 2026

LGTM.

It would be nice if we could tell hypothesis/pytest that only this one example is known to fail. Instead of having to mark the whole test as xfail. From a quick look at the docs I think you can mark a particular @example(...).xfail() but that won't stop hypothesis from generating that example again. But maybe it is super unlikely to generate the eact same example anyway.

My conclusion as a hypothesis novice: it would be nice to keep some of this test, but unclear to me how to do that. Fine for me to merge as is, or for someone with hypothesis mega skills to show us how it is done :D

My intention is to keep #7714 open and actually address the underlying problem. If that's not possible, we can consider a more fine-grained approach.

@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Feb 11, 2026

/merge

@rapids-bot rapids-bot Bot merged commit f8e2840 into rapidsai:main Feb 11, 2026
91 checks passed
@csadorf csadorf deleted the mitigate/7714 branch February 11, 2026 21:21
dantegd added a commit to dantegd/cuml that referenced this pull request Feb 17, 2026
…as xfail (rapidsai#7791)

Marks `test_spectral_clustering.py::test_spectral_clustering_output_shape_type_and_label_count` as expected to fail we work on identifying and fixing the root cause; tracked in rapidsai#7714 .

Authors:
  - Simon Adorf (https://github.com/csadorf)

Approvers:
  - Anupam (https://github.com/aamijar)
  - Tim Head (https://github.com/betatim)

URL: rapidsai#7791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants