CI Fix tests to be compatible with new stricter cudf dtype handling#7762
Conversation
See rapidsai/cudf#21281 for cudf changes.
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change updates cudf dtype casting in the convert function. When handling cudf Series with string dtype targets, the code now skips the astype("str") call and relies on cudf's automatic string dtype inference, while other dtypes proceed normally with astype casting. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Important Action Needed: IP Allowlist UpdateIf your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:
Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist. 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. Comment |
csadorf
left a comment
There was a problem hiding this comment.
Are we sure that this was intentional? I'm asking, because pandas accepts ".astype("str").
|
I think yes, at least there is quite a bit of code that now checks Maybe @mroeschke can tell us if my interpretation is right |
csadorf
left a comment
There was a problem hiding this comment.
Happy to merge to unblock, but I'm overall a bit skeptical of the quality of this test.
|
/merge |
|
I'm a bit confused - the test only was failing on the cudf-pandas enabled runs, which suggests to me that enabling cudf-pandas changed the behavior of cudf itself in some way. This doesn't match my understanding of how |
|
Yeah, I am not sure if this side effect was on purpose or not, or if a layer of conversion is now missing from However, because something like this getting merged, in this case in cudf, immediately blocks all of our CI I only care a little bit about what the intention was/is. I'd like to be able to work on cuml while they sort out the |
|
Sorry, yes this is working around a cuDF bug probably caused by rapidsai/cudf#21281 and this change wasn't intentional. For context, the cuDF Python team is currently working on making |
…apidsai#7762) See rapidsai/cudf#21281 for cudf changes. This changed what cudf accepts as a valid dtype. Authors: - Tim Head (https://github.com/betatim) Approvers: - Simon Adorf (https://github.com/csadorf) URL: rapidsai#7762
See rapidsai/cudf#21281 for cudf changes. This changed what cudf accepts as a valid dtype.