Skip to content

Fix cudf.pandas dispatch and reduce PR test collection time - #25554

Draft
vyasr wants to merge 11 commits into
NVIDIA:mainfrom
vyasr:codex/pandas-compatibility-fixes
Draft

vyasr wants to merge 11 commits into
NVIDIA:mainfrom
vyasr:codex/pandas-compatibility-fixes

Conversation

@vyasr

@vyasr vyasr commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Keep transfer-blocking state on each cudf.pandas receiver so a CPU-only object cannot change how unrelated calls dispatch. Import pandas.api.internals before collection so the namespace test works independently of collection order.

Use targeted pandas fallbacks where cuDF differs on string operations, including selected Arrow regex and Unicode digit cases and object-valued results with pandas missing-value semantics. Update the strict expected failures for cases that now pass.

Assign pandas test files to PR shards before pytest imports them, using a snapshot of measured file runtimes to balance the work. Split the six slowest files by test node ID across three shards with eight workers each. Nightly pandas tests retain node-ID sharding.

Refresh the timing snapshot when updating the supported pandas version. The pandas testing skill uses the generator and checks that hybrid and node-ID sharding collect the same tests with the same skip and xfail markers.

AI assistance was used to develop and review this change.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

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 Python Affects Python cuDF API. cudf.pandas Issues specific to cudf.pandas labels Nov 25, 2026
@vyasr vyasr added bug Something isn't working non-breaking Non-breaking change labels Nov 25, 2026 — with ChatGPT Codex Connector
@vyasr vyasr changed the title Fix cudf.pandas fallback isolation and string compatibility Make cudf.pandas dispatch order-independent and shard PR tests by file Nov 25, 2026
@vyasr

vyasr commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

@vyasr vyasr changed the title Make cudf.pandas dispatch order-independent and shard PR tests by file Fix cudf.pandas dispatch and reduce PR test collection time Nov 26, 2026
@vyasr

vyasr commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

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

Labels

bug Something isn't working cudf.pandas Issues specific to cudf.pandas non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant