Skip to content

AZP: UCXX integration - tests + builds - #11473

Merged
shasson5 merged 17 commits into
openucx:masterfrom
Alexey-Rivkin:ucxx-azure-tests
Nov 17, 2026
Merged

shasson5 merged 17 commits into
openucx:masterfrom
Alexey-Rivkin:ucxx-azure-tests

Conversation

@Alexey-Rivkin

@Alexey-Rivkin Alexey-Rivkin commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

What?

Add UCXX CI to the UCX PR pipeline: each UCX PR builds UCXX (conda packages, libucxx/ucxx wheels, docs) against the PR's own UCX and runs the C++ (CPU+GPU), Python (GPU), and wheel (GPU) tests.

Why?

Move UCXX CI from RAPIDS GitHub Actions onto UCX's Azure pipeline (mirrors upstream pr.yaml), so a UCX change that breaks UCXX shows up on the UCX PR.

How?

  • UCXX_ucx stage: builds the PR's UCX once per arch/CUDA and publishes it as an artifact.
  • UCXX_build stage: builds the UCXX conda packages, wheels, and docs against that UCX; the test jobs run those same artifacts.
  • buildlib/tools/ucxx_ucx_pr.sh: points the pinned ucxx tree at the PR's UCX instead of released ucx.
  • Runner scripts buildlib/tools/build_ucxx.sh / test_ucxx.sh + thin wrapper images around rapidsai/ci-conda and rapidsai/ci-wheel.
  • Matrix: CUDA 12 + 13 × x86_64 + aarch64; GPU tests on x86_64.
  • UCXX jobs are continueOnError: failures surface as warnings and never block the UCX PR.

@Alexey-Rivkin Alexey-Rivkin changed the title AZP: add UCXX_tests stage to PR pipeline (Phase 1 plumbing) AZP: add UCXX_tests stage to PR pipeline (Phase #1) May 20, 2026
@Alexey-Rivkin
Alexey-Rivkin force-pushed the ucxx-azure-tests branch 17 times, most recently from 05531f8 to 1def0bd Compare May 24, 2026 15:24
@Alexey-Rivkin
Alexey-Rivkin force-pushed the ucxx-azure-tests branch 3 times, most recently from 1a79d8a to dec2673 Compare May 24, 2026 19:25
@Alexey-Rivkin Alexey-Rivkin changed the title AZP: add UCXX_tests stage to PR pipeline (Phase #1) AZP: UCXX integration - tests + builds May 24, 2026
@Alexey-Rivkin
Alexey-Rivkin force-pushed the ucxx-azure-tests branch 7 times, most recently from 3b30b46 to e78b89e Compare May 25, 2026 03:24
@svc-ucx

svc-ucx commented Oct 11, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (UCXX_build UCXX conda-cpp-build (aarch64_cuda12_py311)) · commit 5e383bc2

TL;DR: The UCXX conda-cpp-build job died immediately because ucxx's ci/build_cpp.sh (line 9) calls the gha-tools helper rapids-datetime-string, which does not exist in the pinned rapidsai-ci-conda:26.10-azp-1 container — a version skew introduced by pinning the ucxx checkout to tag v0.52.00. Fix by aligning the ucxx ref with the image's RAPIDS version (or shimming rapids-datetime-string in build_ucxx.sh the way rapids-download-from-github already is).

Full analysis

Summary: Step "Build UCXX conda C++ package" exited with code 1 within 0.1 s: ci/build_cpp.sh: line 9: rapids-datetime-string: No such file or directory.

Root cause: Not a UCX code failure and not a timeout — all preceding steps succeeded (UCX-PR artifact staged fine: # Library version: 1.24.0, /tmp/ucx-pr/lib/libucs.so.0). The failure is a missing CI helper binary. buildlib/tools/build_ucxx.sh phase conda_cpp hands off to the ucxx repo's own ci/build_cpp.sh, which at line 9 invokes rapids-datetime-string from rapidsai/gha-tools. The ucxx tree checked out is the release tag v0.52.00 (HEAD is now at 807dc0f REL v0.52.00 release, per buildlib/azure-pipelines-pr.yml:40 ref: refs/tags/v0.52.00), while the container is pinned to rdmz-harbor.rdmz.labs.mlnx/ucx/rapidsai-ci-conda:26.10-azp-1 (buildlib/pr/main.yml:279), built from rapidsai/ci-conda:26.10-latest (buildlib/dockers/rapidsai-ci-conda.Dockerfile:4). The gha-tools version baked into that 26.10 image does not provide rapids-datetime-string, so the ucxx-tag script and the image are out of sync. Note build_ucxx.sh already compensates for exactly this class of problem for one other helper (it writes a rapids-download-from-github shim into $HOME/.local/bin, lines 90–115) but nothing covers rapids-datetime-string. This is environment-wide, not aarch64-specific — the x86_64 conda-cpp/conda-python slices use the same image and script and will fail identically.

Implicated commit: [REDACTED:Hex High Entropy String] — "AZP: test UCXX against the v0.52.00 release tag", Alexey Rivkin (the only change in this build; it repinned the ucxx ref)

File: buildlib/azure-pipelines-pr.yml:40 (ucxx ref: refs/tags/v0.52.00), interacting with buildlib/pr/main.yml:279 / buildlib/dockers/rapidsai-ci-conda.Dockerfile:4 (image 26.10), and buildlib/tools/build_ucxx.sh:90-115 (shim block that omits this tool)

Suggested fix: Pick one of:

  1. Align the versions (preferred, cleanest): repin the ucxx resource ref to the branch/tag matching the container's RAPIDS version (e.g. the 0.53/26.10-aligned ref) — or conversely rebuild the wrapper images from the ci-conda/ci-wheel tag that corresponds to ucxx v0.52.00 — so ucxx's ci/*.sh scripts and the image's gha-tools come from the same release train.
  2. Shim the helper (quick unblock, consistent with existing code): in buildlib/tools/build_ucxx.sh, next to the rapids-download-from-github shim (~line 90), add a fallback only when absent:
    command -v rapids-datetime-string >/dev/null 2>&1 || {
      printf '#!/bin/bash\ndate -u +%%Y%%m%%dT%%H%%M%%SZ\n' \
        > "$HOME/.local/bin/rapids-datetime-string"
      chmod +x "$HOME/.local/bin/rapids-datetime-string"
    }
  3. Add a fail-loud preflight in build_ucxx.sh before dispatching to ci/*.sh that checks the gha-tools commands the ucxx scripts need (grep -oh 'rapids-[a-z-]*' ci/*.sh | sort -u) and errors with a clear "image/ucxx-ref version skew" message instead of a bare No such file or directory. This would have made the skew obvious on the first run.

Since all UCXX jobs are continueOnError: true (buildlib/pr/ucxx_build.yml:24), this does not block PR #11473 — it only surfaces as a warning — but every conda/docs slice in the stage is currently a no-op until the skew is fixed.

Related: PR #11473 (AZP: UCXX integration — tests + builds, the PR under test), PR #11484 (AZP: Build UCXX conda + wheel packages, Phase #2 — closed)

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 9c508680-f337-4daa-839a-675fbe001c1c in the triage console for the audit trail.

Comment thread buildlib/tools/test_ucxx.sh Resolved
Comment thread buildlib/tools/ucxx_ucx_pr.sh Resolved
Comment thread buildlib/tools/test_ucxx.sh Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Mode: COMMENT — nothing here meets the blocker bar; all four findings are non-blocking. Already-raised items deliberately not repeated: PR size/split, continueOnError self-validation, and matrix cost on the shared MLNX pool. Verified as correct: the guard-and-sed patch pattern, the grep -q ... && { ...; return 1; } constructs (safe under errexit as the non-last element of an AND list), the IS_GPU boolean handling via ${IS_GPU,,}, the UCX_PR_SLICE resolution against the four published slices, and the sysroot=2.17 pin that makes the conda-built tarball loadable on rockylinux8. Residual coverage gap: as noted previously, these stages are only observable from a real pipeline run, and every lane is continueOnError, so a tripped guard surfaces only as "succeeded with issues."

UCXX v0.52.00 CI scripts need rapids-datetime-string, which the
azp-1 images predate.
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread buildlib/pr/main.yml Resolved
Comment thread buildlib/tools/ucxx_ucx_pr.sh Resolved
Comment thread buildlib/pr/ucxx_build.yml Resolved
@svc-ucx

svc-ucx commented Oct 11, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (UCXX_tests UCXX GPU tests (x86_64_cuda13_py313)) · commit 6c1b814e

TL;DR: The UCXX GPU gtest binary was killed by the 1200 s process timeout while blocked in epoll_wait inside ucxx::Worker::progressWorkerEvent(); the blocking/event-fd progress-mode parameterizations of the CUDA RMA tests each stall a full 20 s waiting for a cuda_copy wakeup that never arrives, so the suite burns its whole time budget and RequestTest.MemoryGet/28 hung outright. Fix the lost-wakeup in uct_cuda_base_iface_event_fd_arm() (arm a notifier whenever any CUDA event is outstanding) rather than raising the timeout.

Full analysis

Summary: Run UCXX C++ tests step exited 124 — UCXX_TEST timed out after 1200 s, hung in CCCLProgressModes/RequestTest.MemoryGet/28.

Root cause: This is a hang, not slowness. The gdb stack captured at kill time shows the main test thread parked in the wakeup path:

#2 epoll_wait ()
#3 ucxx::Worker::progressWorkerEvent(int) () from .../libucxx.so
#4 waitRequests<ucxx::Request>(...)
#5 RequestTest_MemoryGet_Test::TestBody()

MemoryGet/28 started at 10:00:13 and produced no further output until the 10:00:23 kill. The same signature is visible as a pervasive 20-second quantization throughout the log: specific parameter indices report exactly ~20000 ms while their siblings take 30–90 ms — e.g. MemoryGet/5..9 and /25..29 at 20027/20027/20029/20029/20048 ms, and MemoryPutRequestAttributes/6..9 and /26..29 at ~20035–20089 ms, versus ~35–100 ms for the polling-mode params. A per-test time that lands on a round 20 s is a timeout expiring, not transfer work: the worker sleeps in epoll_wait, the CUDA completion notification is never delivered, and only the fallback progress timeout releases it — after which the request is already complete, so the test still reports [ OK ]. Roughly 5 of every 20 parameterizations pay 20 s, which exhausts the 1200 s budget, and the last one (MemoryGet/28) was still sleeping when the harness fired.

The missing notification comes from the cuda_copy event-fd arm path, src/uct/cuda/base/cuda_iface.c:119-168. uct_cuda_base_iface_event_fd_arm() only launches the wakeup callback (cuLaunchHostFunc → uct_cuda_base_iface_stream_cb_fxn → ucs_async_eventfd_signal) for queue descriptors already linked on iface->active_queue with a non-empty event_queue (lines 145-165). A GET/PUT zcopy whose CUDA event is outstanding on a stream not (yet) on active_queue, or one that completes in the window between the uct_cuda_base_queue_head_ready() readiness scan (lines 129-134) and the host-func launch, leaves the iface armed with no notifier pending. epoll_wait then blocks with nothing to signal the eventfd. Note PR #11473 ("AZP: UCXX integration - tests + builds") only adds pipeline YAML — it does not touch UCX C code, so it is not the injector; it newly exposes this latent blocking-progress wakeup gap by running the UCXX GPU suite for the first time.

Implicated commit: No code commit in this PR — #11473 (commit 6c1b814) adds only the Azure job definition. The latent arm-path logic is long-standing; related lineage is PR #8754 "UCT/CUDA_COPY: use EVENT_FD instead of EVENT_ASYNC_CB", which introduced the event-fd wakeup scheme.

File: src/uct/cuda/base/cuda_iface.c:119-168 (uct_cuda_base_iface_event_fd_arm), specifically the conditional launch at lines 145-165; test-side wait at cpp/tests/request.cpp (waitRequests) in rapidsai/ucxx v0.52.00.

Suggested fix: Close the lost-wakeup window in uct_cuda_base_iface_event_fd_arm():

  1. Re-scan for readiness after launching the host functions and return UCS_ERR_BUSY if any event became ready in the interim, so the caller polls instead of sleeping.
  2. Ensure every stream with outstanding CUDA work gets a notifier — don't skip queue descriptors absent from active_queue; alternatively unconditionally signal the eventfd once if iface->active_queue is non-empty when arming, making a spurious wakeup the failure mode instead of a permanent sleep.
  3. To confirm the diagnosis cheaply, re-run the job with UCX_TLS excluding cuda_copy or force polling progress (UCX_*_PROGRESS_MODE=polling) — the 20 s quanta should disappear entirely.

Do not raise the 1200 s process timeout; the log shows a 10 s silent gap on the final test and repeated exact-20 s timeout stalls, so the budget increase would only move the kill point.

Related: PR #11473 (this job), PR #8754 (cuda_copy EVENT_FD wakeup), PR #11484, PR #11488

@Alexey-Rivkin

Copy link
Copy Markdown
Contributor Author

On the matrix size: the lanes mirror upstream ucxx PR CI, are advisory (continueOnError) and run on the regular ucx_docker/ucx_arm64 slices. If pool pressure shows up we can trim or move them to a schedule, but I'd like one stable baseline first.

@Alexey-Rivkin

Copy link
Copy Markdown
Contributor Author

Re the CI triage note on UCXX GPU tests: this is not a cuda_copy wakeup bug in UCX. The 20 s stalls reproduce on a CPU-only host with UCX_TLS=tcp,sm,self and come from the ucxx test helper waitRequests(), which blocks in epoll before checking completion; #11319 only made it visible. Fix: rapidsai/ucxx#777

Pin ucxx to main commit 89f564e5: it carries the blocking-progress fix in
the test helper but has moved to RAPIDS 26.12, so its conda recipe needs
the newer rattler-build in the 26.12 images and its Python matrix starts
at 3.12.
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

ucxx main adds ListenerCudaCloseAfterSendTest, which calls the CUDA
runtime directly and fails with cudaErrorInsufficientDriver on the CPU
slices; the GPU slice still runs it.
Comment thread buildlib/tools/ucxx_ucx_pr.sh Resolved
Comment thread buildlib/pr/ucxx_build.yml Resolved
Comment thread buildlib/tools/test_ucxx.sh Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gap (unchanged from earlier rounds): these stages are only observable from a real pipeline run, and every lane is continueOnError, so a tripped sed/guard surfaces as "succeeded with issues" rather than a failure. Finding 1 makes this worse for the dependencies.yaml strip specifically, since that guard cannot fail even when the strip is a no-op.

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread buildlib/tools/test_ucxx.sh Resolved
gleon99
gleon99 previously approved these changes Oct 20, 2026
Comment thread buildlib/tools/ucxx_ucx_pr.sh Resolved
Comment thread buildlib/pr/ucxx_tests.yml Resolved
Comment thread buildlib/tools/ucxx_ucx_pr.sh Resolved
Comment thread buildlib/tools/ucxx_ucx_pr.sh Resolved
Test jobs run the UCXX_build conda artifacts instead of rebuilding them;
the UCX CUDA lookup follows conda-forge's targets/sbsa-linux on aarch64;
the recipe linker check stays on with only the PR's UCX allowlisted; and
only the import tests are dropped from the recipes, not every test.
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread buildlib/tools/test_ucxx.sh Resolved
Comment thread buildlib/tools/ucxx_ucx_pr.sh Resolved
Comment thread buildlib/tools/test_ucxx.sh Resolved
An unset LD_LIBRARY_PATH left an empty entry that glibc reads as the
cwd; the wheel version check compared ucxx's numeric version against a
string that may carry an extra suffix; and the wrapper images had no
rebuild recipe for the tags main.yml pulls.
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

@svc-ucx

svc-ucx commented Nov 16, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR · commit 00951764

Summary: Unable to fetch logs — cannot diagnose without them.
Root cause: Unknown — log access failed.
Implicated commit: unknown
File: unknown
Suggested fix: Provide a direct link to the failed build log in a follow-up comment.
Log fetch attempts:

  • fetch_azure_logs({'build_url': 'https://dev.azure.com/ucfconsort/0b36e3f0-8ab9-4a48-b68b-[REDACTED:Hex High Entropy String]/_build/results?buildId=145336'}) → [fetch_azure_logs ERROR: no failed job found in timeline for build 145336]
  • fetch_jenkins_stages({'job': 'UCX PR', 'build': 145336}) → [fetch_jenkins_stages ERROR] build URL names Jenkins controller 'https://dev.azure.com/ucfconsort/0b36e3f0-8ab9-4a48-b68b-[REDACTED:Hex High Entropy String]/_build/results?buildId=145336', but this deployment is configured for 'https://nbuprod.blsm.nvidia.com/nb
  • fetch_jenkins_logs({'job': 'UCX PR', 'build': 145336}) → [fetch_jenkins_logs ERROR] build URL names Jenkins controller 'https://dev.azure.com/ucfconsort/0b36e3f0-8ab9-4a48-b68b-[REDACTED:Hex High Entropy String]/_build/results?buildId=145336', but this deployment is configured for 'https://nbuprod.blsm.nvidia.com/nbu-
  • fetch_azure_logs({'build_url': 'https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=145336'}) → [fetch_azure_logs ERROR: no failed job found in timeline for build 145336]

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id eb855f72-70ca-4ff9-a6db-9b3b5ea3fcbd in the triage console for the audit trail.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants