Skip to content

Fix scikit-learn 1.8 test incompatibilities#7589

Merged
rapids-bot[bot] merged 16 commits intorapidsai:mainfrom
csadorf:fix/scikit-learn-1.8-incompatibilities
Dec 15, 2025
Merged

Fix scikit-learn 1.8 test incompatibilities#7589
rapids-bot[bot] merged 16 commits intorapidsai:mainfrom
csadorf:fix/scikit-learn-1.8-incompatibilities

Conversation

@csadorf
Copy link
Copy Markdown
Contributor

@csadorf csadorf commented Dec 10, 2025

This PR reverts #7588. and updates the test suite to ensure compatibility with scikit-learn 1.8.

Closes #7599.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Dec 10, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Dec 10, 2025
@csadorf csadorf added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Dec 10, 2025
@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Dec 10, 2025

/ok to test 28d0702

@csadorf csadorf force-pushed the fix/scikit-learn-1.8-incompatibilities branch from 28d0702 to bf8a042 Compare December 11, 2025 16:03
@csadorf csadorf linked an issue Dec 11, 2025 that may be closed by this pull request
@csadorf csadorf force-pushed the fix/scikit-learn-1.8-incompatibilities branch from bf8a042 to be53e2c Compare December 11, 2025 16:29
@github-actions github-actions Bot added the conda conda issue label Dec 11, 2025
@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Dec 11, 2025

/ok to test be53e2c

@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Dec 11, 2025

/ok to test 169365b

@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Dec 11, 2025

/ok to test f7bd3cd

@csadorf csadorf force-pushed the fix/scikit-learn-1.8-incompatibilities branch from f7bd3cd to 72b46d9 Compare December 12, 2025 15:06
@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Dec 12, 2025

/ok to test 72b46d9

@csadorf csadorf force-pushed the fix/scikit-learn-1.8-incompatibilities branch from 0c64a12 to 72b46d9 Compare December 12, 2025 21:23
@csadorf csadorf force-pushed the fix/scikit-learn-1.8-incompatibilities branch from 72b46d9 to 2b910d5 Compare December 12, 2025 21:24
@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Dec 12, 2025

/ok to test 2b910d5

@csadorf csadorf marked this pull request as ready for review December 12, 2025 22:14
@csadorf csadorf requested review from a team as code owners December 12, 2025 22:14
@csadorf csadorf requested review from gforsyth and jcrist December 12, 2025 22:14
Comment on lines +915 to +917
# skip with sklearn version 1.8.0.dev0
if Version(sklearn.__version__) >= Version("1.8.0.dev0"):
pytest.skip("xgboost is incompatible with sklearn >= 1.8.0.dev0")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can revert this once dmlc/xgboost#11858 is released.

Copy link
Copy Markdown
Member

@jcrist jcrist left a comment

Choose a reason for hiding this comment

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

LGTM (assuming tests pass)

@csadorf
Copy link
Copy Markdown
Contributor Author

csadorf commented Dec 15, 2025

/merge

@rapids-bot rapids-bot Bot merged commit 45ff135 into rapidsai:main Dec 15, 2025
106 checks passed
@csadorf csadorf deleted the fix/scikit-learn-1.8-incompatibilities branch December 15, 2025 14:49
mani-builds pushed a commit to mani-builds/cuml that referenced this pull request Jan 11, 2026
This PR reverts rapidsai#7588. and updates the test suite to ensure compatibility with scikit-learn 1.8.

Closes rapidsai#7599.

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

Approvers:
  - Jim Crist-Harif (https://github.com/jcrist)
  - Gil Forsyth (https://github.com/gforsyth)
  - Bradley Dice (https://github.com/bdice)

URL: rapidsai#7589
rapids-bot Bot pushed a commit that referenced this pull request Jan 21, 2026
## Summary

Adds a `set` command to `xfail_manager.py` for batch modification of xfail test metadata, and simplifies `summarize-results.py` by removing its xfail list update functionality.

## Motivation

This toolset was expanded during work on #7589 to streamline xfail list maintenance for scikit-learn 1.8 compatibility. These improvements are useful for ongoing xfail list management and should be maintained in the codebase.

## Changes

- **xfail_manager.py**: Added `set` command to modify test metadata (reason, condition, marker, strict, run) for specified tests
- **summarize-results.py**: 
  - Removed `--update-xfail-list`, `--in-place`, `--xpassed` options (now handled by xfail_manager.py)
  - Added `-k/--filter` for substring filtering and `--test-id-prefix` for prefixing test IDs
- **test_config.yaml**: Added `test_id_prefix` config option
- **umap/run-tests.sh**: Fixed `--rootdir` to point to UMAP repo -- makes it so that the test id prefix matches between report and xfail list
- **README.md**: Updated documentation for new tooling workflow

## Example Usage

```bash
# Set a new reason for specific tests
./xfail_manager.py set xfail-list.yaml "test_foo" "test_bar" --reason "Known issue #123"

# Mark tests as flaky (non-strict)
./xfail_manager.py set xfail-list.yaml "test_flaky" --no-strict

# Filter summarize-results output
./summarize-results.py results.xml --format traceback -k "logistic"
```

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

Approvers:
  - Tim Head (https://github.com/betatim)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #7607
viclafargue pushed a commit to viclafargue/cuml that referenced this pull request Jan 26, 2026
## Summary

Adds a `set` command to `xfail_manager.py` for batch modification of xfail test metadata, and simplifies `summarize-results.py` by removing its xfail list update functionality.

## Motivation

This toolset was expanded during work on rapidsai#7589 to streamline xfail list maintenance for scikit-learn 1.8 compatibility. These improvements are useful for ongoing xfail list management and should be maintained in the codebase.

## Changes

- **xfail_manager.py**: Added `set` command to modify test metadata (reason, condition, marker, strict, run) for specified tests
- **summarize-results.py**: 
  - Removed `--update-xfail-list`, `--in-place`, `--xpassed` options (now handled by xfail_manager.py)
  - Added `-k/--filter` for substring filtering and `--test-id-prefix` for prefixing test IDs
- **test_config.yaml**: Added `test_id_prefix` config option
- **umap/run-tests.sh**: Fixed `--rootdir` to point to UMAP repo -- makes it so that the test id prefix matches between report and xfail list
- **README.md**: Updated documentation for new tooling workflow

## Example Usage

```bash
# Set a new reason for specific tests
./xfail_manager.py set xfail-list.yaml "test_foo" "test_bar" --reason "Known issue rapidsai#123"

# Mark tests as flaky (non-strict)
./xfail_manager.py set xfail-list.yaml "test_flaky" --no-strict

# Filter summarize-results output
./summarize-results.py results.xml --format traceback -k "logistic"
```

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

Approvers:
  - Tim Head (https://github.com/betatim)
  - Dante Gama Dessavre (https://github.com/dantegd)

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

Labels

conda conda issue Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revert PR #7588 and ensure scikit-learn 1.8 test compatibility

5 participants