Skip to content

[Python] Remove remaining datatable references from XGBoost inference tests and example - #41644

Merged
damccorm merged 1 commit into
masterfrom
users/damccorm/py313-inference-1-xgboost
Nov 24, 2026
Merged

damccorm merged 1 commit into
masterfrom
users/damccorm/py313-inference-1-xgboost

Conversation

@damccorm

@damccorm damccorm commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Part of #41652 (stack: https://github.com/apache/beam/stack/41650).

Stack 1/6 — Follow-up cleanup to #41586 removing the remaining datatable and XGBoostModelHandlerDatatable references from XGBoost inference tests, example, and requirements:

  • Remove datatable from sdks/python/apache_beam/ml/inference/xgboost_tests_requirements.txt (datatable fails to build from source on Python 3.13).
  • Remove datatable usage and XGBoostModelHandlerDatatable ITs from xgboost_inference_it_test.py, xgboost_iris_classification.py, and xgboost_inference_test.py.

Verification

… tests and example

Follow-up to #41586 removing leftover datatable and XGBoostModelHandlerDatatable
references from XGBoost inference ITs, example, unit test, and requirements
file (datatable fails to build from source on Python 3.13).
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.04%. Comparing base (3e230c6) to head (88935b7).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #41644   +/-   ##
=========================================
  Coverage     58.03%   58.04%           
  Complexity     2844     2844           
=========================================
  Files          1210     1210           
  Lines        173259   173280   +21     
  Branches       2329     2329           
=========================================
+ Hits         100554   100580   +26     
+ Misses        69995    69990    -5     
  Partials       2710     2710           
Flag Coverage Δ
python 80.67% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@damccorm

Copy link
Copy Markdown
Contributor Author

stop reviewer notifications

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📋 Review Summary

This PR cleanly removes the remaining datatable and XGBoostModelHandlerDatatable references from the XGBoost inference example, unit/integration tests, and test requirements following #41586. Crucially, removing the stale XGBoostModelHandlerDatatable import in xgboost_inference_test.py prevents the ImportError fallback from silently skipping the entire unit test suite.

🔍 General Feedback

  • The changes across all four files are clean, well-scoped, and ready to merge.
  • Minor follow-up note outside this diff: datatable>=1.1.0,<2 is still listed under [testenv:py311-xgboost-{200,300}] in sdks/python/tox.ini, which can also be dropped when convenient.

💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.

@damccorm
damccorm merged commit e502259 into master Nov 24, 2026
94 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: requested by reviewer. If you'd like to restart, comment assign set of reviewers

@damccorm
damccorm deleted the users/damccorm/py313-inference-1-xgboost branch November 25, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples python size/s S: 10-49 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants