Skip to content

Test on WSL in CI - #8847

Draft
bdice wants to merge 17 commits into
NVIDIA:mainfrom
bdice:wsl-ci
Draft

bdice wants to merge 17 commits into
NVIDIA:mainfrom
bdice:wsl-ci

Conversation

@bdice

@bdice bdice commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Contributes to rapidsai/build-planning#114

Adds the wsl-pr / wsl-nightly migration matrices to conda-cpp-tests and wheels-test, which adds one WSL job to each in PRs and nightlies.

Depends on rapidsai/shared-workflows#683 (merged).

@bdice bdice added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Nov 3, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 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.

@bdice

bdice commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 326cbd4

@bdice

bdice commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 7fb75ea

@bdice bdice added the DO NOT MERGE Hold off on merging; see PR for details label Nov 3, 2026
@bdice

bdice commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6aaa80b

@github-actions github-actions Bot added the ci label Nov 3, 2026
@bdice

bdice commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 03a8d2e

@bdice

bdice commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 911c07b

@bdice

bdice commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor Author

(my agent wrote this)

WSL CI findings

1. wheel-tests-cuml (wsl, h100): pytest interrupted at the 1h timeout — fixed

  • Symptom: timeout: sending signal INT after 1:00:06, with 13618 passed and 0 failed (log).
  • Root cause: the whole suite runs about 2.2x slower on the WSL runner than on the Linux h100 job (30:13); no single test hangs. The median per-test slowdown is 1.7x.
  • Fix: 69f7e66 raises the single-GPU pytest timeout from 1h to 90m. In 3 validation runs the WSL suite took 1:04–1:05 (example).

2. wheel-tests-cuml-dask (wsl, h100): NCCL init failures — fixed

  • 2a. cuMem path: with default settings, ncclCommInitRank fails with Cuda failure 999 'unknown error' in ncclCuMemMapAndSetAccess (NCCL 2.32.3, Windows driver 596.36, H100 NVL) (diagnostic log). 03a8d2e sets NCCL_CUMEM_ENABLE=0 on WSL.
  • 2b. /dev/shm too small for the non-cuMem path: with NCCL_CUMEM_ENABLE=0 alone, every comms init then failed with NCCL_ERROR: b'unhandled system error' (log). Without cuMem, NCCL's proxy needs a ~68 MB /dev/shm segment, and the container has Docker's 64 MB default. Test on WSL in CI rapidsai/cugraph-gnn#567 captured the same failure as ncclOsShmOpen ... No space left on device.
    • Fix: ca3307b passes container-options: "--shm-size=1g" to the dask wheel-test jobs in pr.yaml/test.yaml. After that change no NCCL errors appeared and /dev/shm showed 1.0G (log).

3. wheel-tests-cuml-dask (wsl, h100): 1h timeout in test_dask_coordinate_descent.py — fixed

  • Symptom: once NCCL worked, the float32 test_elastic_net/test_lasso cases took 200–683 s each, so the job reached the 1h timeout at 8% (log). The same cases took 3.5–12.7 s on Linux h100 (log).
  • Root cause: these tests use tol=1e-10, which float32 can never reach, so float32 always runs all max_iter=1000 epochs. The MG coordinate-descent solver (cpp/src/solver/cd_mg.cu) does several stream syncs and a host copy per coefficient per epoch. That makes it latency-bound, and per-op latency on this WSL runner is much higher. float64 converges early and is unaffected.
  • Fix: ed87163 lowers max_iter from 1000 to 100 in those two tests. On a WSL2 RTX 3070 Ti, R² was identical to 6 decimals at 100 and at 1000 epochs. That held for 40 configs: Lasso and ElasticNet, float32 and float64, cyclic and random selection, 5 seeds each. The WSL dask job then passed: 867 passed in 36:08 (log). (ee741b7 only updates that file's copyright header for verify-copyright.)

4. wheel-tests-cuml (wsl, h100): transient small-allocation failures under xdist load. Unresolved.

  • Frequency: 3 of the last 6 WSL single-GPU runs had 1–2 failures. Each failure was an allocation far smaller than free device memory, made in a process started during the 8-worker xdist run:
    • test_umap_trustworthiness_on_batch_nnd[brute_force_knn-all-l2-False-5]: cuMemAllocManaged out of memory (log).
    • test_benchmark.py::test_real_backend_smoke[csr-inference-cuml]: cudaErrorMemoryAllocation on a 4208-byte allocation in a spawned worker (log).
    • test_benchmark.py::test_cli_real_workers[providers1] failed in three runs:
      • a spawned worker exited with SIGSEGV before any output (log, and again in the full run at ee741b7: log);
      • cudaErrorMemoryAllocation: out of memory during warmup of a 64×8 PCA, while the next worker a few seconds later succeeded (log).
  • Not deterministic, and depends on load: in that same job, the benchmark real-worker tests were run 20 times standalone before the full suite, and all 20 passed (160 test runs).
  • Not device capacity: device memory sampled every 2 s peaked at 10–12 GiB of ~94 GiB (log).
    • Host memory in the WSL VM (29.9 GB RAM) does fall steadily during the suite. MemAvailable goes from 28.5 GB to 4.5 GB, and Committed_AS reaches 42 GB (log).
  • Hypotheses, neither confirmed:
    • (a) On WSL, guest RAM and CUDA allocations share the Windows host's commit budget, so new allocations fail at peak usage.
    • (b) A test in another xdist worker sizes a short-lived allocation from cudaMemGetInfo free memory. On WSL that reports more than can actually be allocated. A spike like that between 2 s samples would starve concurrent processes.
    • Telling these apart needs higher-frequency device sampling plus host commit counters from the runner team.
  • No mitigation is committed. Possible ones, both untested: fewer xdist workers on WSL (the suite already takes ~1:04 of the 90m budget), or running test_benchmark.py's real-worker tests serially.

Infra

  • Run 41758365843 attempt 1: all 10 wheel-test jobs (Linux and WSL) failed at pip install with error: connection-timeout / THESE PACKAGES DO NOT MATCH THE HASHES from the pip cache (log). The rerun passed all 8 Linux jobs.
  • Run 41998298202 attempt 1: wheel-build-cuml 12.9.2 amd64 failed with a GitHub 504 while downloading nlohmann_json; the rerun passed.

Status

  • All TEMP commits are reverted: 9c7ac9e by d4b5911, 0d26955 by 6d3d02b, and b580fc7 by fc91ea4. The head fc91ea4 has the same tree as ee741b7.
  • Full CI at ee741b7 (run): 73 jobs passed, including WSL conda-cpp-tests and WSL wheel-tests-cuml-dask. The only failures were WSL wheel-tests-cuml (item 4, test_cli_real_workers[providers1]) and pr-builder.
  • /ok to test has been posted for fc91ea4.

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 9c7ac9e

… reaches tol=1e-10 and 100 epochs give the same fit
@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test ed87163

@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Nov 5, 2026
@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 0d26955

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d4b5911

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test ee741b7

@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test b580fc7

…l-worker tests with faulthandler"

This reverts commit b580fc7.
@bdice

bdice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test fc91ea4

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

Labels

ci Cython / Python Cython or Python issue DO NOT MERGE Hold off on merging; see PR for details improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant