Skip to content

xgboost tests incompatible with v2.1+ #70

Description

@mfansler

We're seeing some unit test failures on Conda Forge in a recent build for v0.1.2 when combined with xgboost v2.1.2. Root cause appears to be signature changes in xgboost::xgb.DMatrix and xgboost::xgb.load.raw from v2.0.3 to v2.1.0. Testing against xgboost v2.0.3 passes without issue.

I haven't checked if this only impacts the tests, or if other package code is affected.

Test Results

Details
[ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ][ FAIL 4 | WARN 0 | SKIP 12 | PASS 18 ]

══ Skipped tests (12) ══════════════════════════════════════════════════════════
• !interactive() is TRUE (4): 'test_bundle_h2o.R:137:3',
  'test_bundle_h2o.R:284:3', 'test_bundle_h2o.R:428:3',
  'test_bundle_h2o.R:564:3'dbarts cannot be loaded (2): 'test_bundle_bart.R:2:3',
  'test_bundle_bart.R:107:3'On CRAN (5): 'test_bundle_bart.R:103:3', 'test_bundle_embed.R:2:3',
  'test_bundle_h2o.R:2:3', 'test_bundle_keras.R:2:3',
  'test_bundle_workflows.R:126:3'torch cannot be loaded (1): 'test_bundle_torch.R:2:3'

══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_bundle_parsnip.R:21:3'): bundling + unbundling parsnip model_fits (xgboost) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `xgboost::xgb.DMatrix(x, missing = NA, info = info_list)`:
! unused argument (info = info_list)
Backtrace:1. └─callr::r(...) at test_bundle_parsnip.R:21:3
 2.   └─callr:::get_result(output = out, options)
 3.     └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test_bundle_workflows.R:37:3'): bundling + unbundling tidymodels workflows (xgboost + step_log) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `xgboost::xgb.DMatrix(x, missing = NA, info = info_list)`:
! unused argument (info = info_list)
Backtrace:1. └─callr::r(...) at test_bundle_workflows.R:37:3
 2.   └─callr:::get_result(output = out, options)
 3.     └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
── Error ('test_bundle_xgboost.R:36:3'): bundling + unbundling xgboost fits ────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
Error: ! in callr subprocess.
Caused by error in `xgboost::xgb.load.raw(object, as_booster = TRUE)`:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions