Skip to content

Workaround flaky test in cudf-polars - #24632

Merged
vyasr merged 1 commit into
NVIDIA:mainfrom
TomAugspurger:tom/dask-client-workaround
Oct 15, 2026
Merged

vyasr merged 1 commit into
NVIDIA:mainfrom
TomAugspurger:tom/dask-client-workaround

Conversation

@TomAugspurger

Copy link
Copy Markdown
Contributor

Description

We've seen occasional errors in CI
(https://github.com/NVIDIA/cudf/actions/runs/38751937396/job/116494190204?pr=24626#step:13:5112) that likely come from dask/distributed#9374. This change works around that issue by bumping the periodic check, making the race less likely.

Checklist

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

We've seen occasional errors in CI
(https://github.com/NVIDIA/cudf/actions/runs/38751937396/job/116494190204?pr=24626#step:13:5112)
that likely come from dask/distributed#9374.
This change works around that issue by bumping the periodic check,
making the race less likely.
@copy-pr-bot

copy-pr-bot Bot commented Oct 15, 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-polars Issues specific to cudf-polars labels Oct 15, 2026
@TomAugspurger TomAugspurger added bug Something isn't working non-breaking Non-breaking change labels Oct 15, 2026
@TomAugspurger
TomAugspurger marked this pull request as ready for review October 15, 2026 16:55
@TomAugspurger
TomAugspurger requested a review from a team as a code owner October 15, 2026 16:55
@TomAugspurger
TomAugspurger requested a review from wence- October 15, 2026 16:55
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/cudf/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 7c82b6f1-c977-4c09-b6eb-cb33910103d2
📥 Commits

Reviewing files that changed from the base of the PR and between 8628eed and aa64acf.

📒 Files selected for processing: 1
  • python/cudf_polars/tests/conftest.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Tests
    • Configured test sessions to refresh Dask scheduler information every 60 seconds when Dask is available.

The test configuration adds an autouse, session-scoped fixture. It sets Dask’s scheduler information interval to "60s" when Dask is available and skips configuration when Dask cannot be imported.

Changes: Dask Test Configuration

Layer / File(s) Summary
Configure Dask for the test session
python/cudf_polars/tests/conftest.py
The new fixture sets distributed.client.scheduler-info-interval to "60s" when Dask imports successfully. If Dask is unavailable, the fixture yields without setting the option.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to aa64a

The test session uses a 60-second Dask scheduler-information interval when Dask is available, aiming to reduce flaky CI errors. No material merge risk is identified in the supplied change; it is ready for normal checks.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: a workaround for a flaky cudf-polars test. It is concise and specific.
Description check Passed The description explains the CI errors, identifies the suspected Dask race, and describes the periodic-check workaround. It is directly related to the changeset.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@vyasr

vyasr commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Going to admin merge this, the failures are the fallout from the rmm change that I'm working on fixing in #24633.

@vyasr
vyasr merged commit 90f9065 into NVIDIA:main Oct 15, 2026
170 of 174 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in cuDF Python Oct 15, 2026
@TomAugspurger
TomAugspurger deleted the tom/dask-client-workaround branch October 15, 2026 19:10
rapids-bot Bot pushed a commit to NVIDIA/raft that referenced this pull request Oct 16, 2026
Oldest-dependency Python tests can select an older Python RMM package alongside a newer C++ librmm, causing an undefined `callback_memory_resource` symbol during import. The existing CUDA bindings pins exclude the matching Python RMM package.

Raise the CUDA 12 bindings minimum and oldest-test pin to 12.9.3, and the CUDA 13 equivalents to 13.0.2, matching RMM's requirements. Apply the same minimums in the conda recipes and regenerate the environments and Python package metadata.

Related to rapidsai/rmm#2580 and rapidsai/rmm#2595.

Apply the same test-only Dask workaround as [cuDF #24632](NVIDIA/cudf#24632): set the raft-dask test suite's scheduler-info refresh interval to 60 seconds. This reduces the likelihood of [Dask's scheduler-info cache race](dask/distributed#9374), which can report no workers during collective initialization. All tests remain enabled; runtime configuration is unchanged.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - James Lamb (https://github.com/jameslamb)
  - Bradley Dice (https://github.com/bdice)
  - Divye Gala (https://github.com/divyegala)

URL: #3180
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-polars Issues specific to cudf-polars non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants