Skip to content

UCXX: Import snapshot and build from the UCX checkout - #12346

Closed
shasson5 wants to merge 23 commits into
openucx:masterfrom
shasson5:ucxx-snapshot-migration
Closed

shasson5 wants to merge 23 commits into
openucx:masterfrom
shasson5:ucxx-snapshot-migration

Conversation

@shasson5

@shasson5 shasson5 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What?

Import the UCXX revision pinned by #11473 into bindings/ucxx and use it directly from the UCX checkout.

Why?

Prepare the staged migration from RAPIDS while preserving a traceable source snapshot and keeping UCXX Git ancestry out of UCX history.

How?

  • Import rapidsai/ucxx@89f564e522d042d62c52c40bdae226dba04b793f (0.53.00) into bindings/ucxx.
  • Exclude RAPIDS-specific GitHub workflows, bot settings, and ownership configuration, and remove their script references.
  • Replace the separate UCXX checkout with the in-tree source path.
  • Derive UCXX package versions from its own VERSION file.
  • Retain UCXX's spelling and formatting rules.

Depends on #11473; the snapshot and integration commits follow its commits.

Alexey-Rivkin and others added 19 commits July 27, 2026 08:57
The upstream rapidsai images are not writable by the non-root UID Azure
runs steps as, and carry no gdb for crash stacks.
Run rapidsai/ucxx CI against the PR's UCX rather than released ucx
packages, so the suites exercise the submitted UCP/UCS code. UCXX jobs
are advisory and never block the UCX PR.
Every UCXX job rebuilt the same UCX, costing ~4 minutes each. Build it
once per arch/CUDA pair and share it as an artifact.
The wheel test env downloads ~2 GB of cuda/rapids wheels per run.
UCXX needs nothing from Static_check, so its ~26 min just idled the
UCXX jobs.
The pipeline runs these as `bash <path>`, which ignores the shebang, so
the fail-loud guards were silently discarded.
The env is solved fresh each run; conda-forge moved to gcc 15/16, which
rejects ucx_perftest's OpenMP 'master' under -Werror.
Pick up 174 commits of master so the UCXX stages run against current CI.
conda run only carried build_ucx_pr as an exported function, which also
leaked its body into every env dump.
The check hardcoded libucs.so.0, so a SOVERSION bump would fail it on a
healthy build.
The old check compared the copied file against its own source, so it only
proved cp worked. Catch the case that actually matters: a released ucx
package back in the test env because the dependency strip missed.
v0.52.00a is the pre-release start tag; the final tag adds test
stability fixes and matches the same RAPIDS 26.10 images.
UCXX v0.52.00 CI scripts need rapids-datetime-string, which the
azp-1 images predate.
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.
ucxx main adds ListenerCudaCloseAfterSendTest, which calls the CUDA
runtime directly and fails with cudaErrorInsufficientDriver on the CPU
slices; the GPU slice still runs it.
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.
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.
Import rapidsai/ucxx commit 89f564e522d042d62c52c40bdae226dba04b793f (version 0.53.00) into bindings/ucxx without importing its Git ancestry.

Source: https://github.com/rapidsai/ucxx/tree/89f564e522d042d62c52c40bdae226dba04b793f
Use bindings/ucxx from the UCX checkout for every UCXX build and test job. Derive UCXX package versions from its VERSION file instead of UCX Git tags, preserving RAPIDS wheel suffixes.
@shasson5
shasson5 requested a review from a team as a code owner November 16, 2026 15:21
@shasson5 shasson5 added the WIP-DNM Work in progress / Do not review label Nov 16, 2026
@shasson5

Copy link
Copy Markdown
Contributor Author

/azp run UCX PR

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@svc-ucx

svc-ucx commented Nov 16, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (Codestyle format code) · commit 008d7bba

TL;DR: The new "Check UCXX code format" step does pip install clang-format==20.1.8 inside the fedora33 container, whose pip (20.2.2) is too old to accept the PEP 600 manylinux_2_17 wheel, so pip falls back to building clang-format from source — which downloads LLVM 20.1.8 and fails because the image only has CMake 3.18.4 (LLVM requires ≥ 3.20). Fix by upgrading pip in the venv and forcing a wheel-only install (--upgrade pip + --only-binary=:all:), or by pinning a clang-format source other than a from-source LLVM build.

Full analysis

Summary: Azure job Codestyle / format code, task "Check UCXX code format" failed with ERROR: Failed building wheel for clang-format / CMake 3.20.0 or higher is required. You are running version 3.18.4.

Root cause: Commit 008d7bb added a step that creates a venv and runs /tmp/ucxx-clang-format-env/bin/pip install clang-format==20.1.8 inside the fedora container (rdmz-harbor.../ucx/fedora33:2). That image ships pip 20.2.2 (the log explicitly warns: "You are using pip version 20.2.2"). pip < 20.3 does not understand PEP 600 manylinux_x_y wheel tags, which is how the modern clang-format wheels are published, so no compatible binary wheel is found and pip falls back to the sdist. The sdist's scikit-build-core backend then downloads llvm-project-20.1.8.src.tar.xz and configures LLVM, which errors out immediately:

CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
  CMake 3.20.0 or higher is required.  You are running version 3.18.4
FAILED: ... build-clang-format-configure
*** CMake build failed
ERROR: Failed building wheel for clang-format

This is an environment/toolchain mismatch in the new CI step, not a code-formatting violation — the format check never actually ran. Note the step uses set -eEx, so the pip failure aborts the task with exit code 1.

Implicated commit: [REDACTED:Hex High Entropy String] — "AZP: Use the UCXX code formatter", Shachar Hasson

File: buildlib/pr/codestyle.yml:81-82 (venv creation + pip install clang-format==20.1.8); container selected at buildlib/pr/codestyle.yml:40, image defined at buildlib/pr/main.yml:26-28

Suggested fix: Make the install wheel-only and give pip a version that understands modern manylinux tags, so it can never silently fall back to compiling LLVM:

python3 -m venv /tmp/ucxx-clang-format-env
/tmp/ucxx-clang-format-env/bin/pip install --upgrade 'pip>=23' wheel
/tmp/ucxx-clang-format-env/bin/pip install --only-binary=:all: clang-format==20.1.8

--only-binary=:all: is important: it turns a future tag/platform mismatch into a fast, clear "no matching distribution" error instead of a 2-minute LLVM source build that dies on CMake. Alternatives if you prefer not to depend on PyPI at job time: run this step in a newer container (e.g. fedora41, which has CMake ≥ 3.20 and a modern pip) instead of fedora, or bake clang-format 20.1.8 into the codestyle image. Also consider separating the UCXX format check into its own job on an image matching bindings/ucxx/.pre-commit-config.yaml rather than reusing the old fedora33 codestyle container.

Related: PR #12346 (branch ucxx-snapshot-migration); preceding commit c9baf3f "AZP: Build UCXX from the in-tree snapshot" in the same series. No existing issue found for this clang-format install failure.

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 55ca100a-0933-44eb-9369-66f8f3f291db in the triage console for the audit trail.

@shasson5

Copy link
Copy Markdown
Contributor Author

CI feedback

fixed

@svc-ucx

svc-ucx commented Nov 16, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (Codestyle AUTHORS file update check) · commit d7d19dd7

TL;DR: The "AUTHORS file check" stage failed because the PR's commit range contains two author identities not listed in AUTHORS (GitHub noreply aliases for Mikhail Brinskii and Nir Wolfer), so contrib/authors_update.sh modified the file and git diff --exit-code returned 1. Fix: either commit the regenerated AUTHORS or canonicalize those noreply emails (mailmap / rebase the branch) so they map to the existing entries.

Full analysis

Summary: Azure job AUTHORS file update check → stage "AUTHORS file check" exited with code 1 after git diff --exit-code detected uncommitted AUTHORS changes.

Root cause: The check runs ./contrib/authors_update.sh d4aad81..d7d19dd and then git diff --exit-code, requiring AUTHORS to already contain every author in the PR's commit range. The script reported two new identities:

  • ++ Mikhail Brinskiy <brminich@users.noreply.github.com>
  • ++ NirWolfer <82328769+NirWolfer@users.noreply.github.com>

Both are GitHub web-UI noreply aliases of contributors already in AUTHORS (Mikhail Brinskii <mikhailb@nvidia.com>, Nir Wolfer <nwolfer@nvidia.com>). The script's dedup logic at contrib/authors_update.sh:36 only matches on an exact email word or a case-insensitive name substring match, so it misses them: "Mikhail Brinskiy" differs from "Mikhail Brinskii" by one letter, and "NirWolfer" has no space so it does not substring-match "Nir Wolfer". It therefore appended both lines, AUTHORS became dirty, and the stage failed. Note the branch is a long-lived snapshot-migration branch, so the range pulls in 27 author identities — only these two were unknown. This is a policy/bookkeeping failure, not a code defect, and is unrelated to any product change in the PR.

Implicated commit: unknown — no single commit; the failure is triggered by commits in range [REDACTED:Hex High Entropy String]..[REDACTED:Hex High Entropy String] authored via GitHub noreply addresses (PR #12346, branch ucxx-snapshot-migration). contrib/authors_update.sh:36 is the matching logic that lets the aliases through.

File: contrib/authors_update.sh:36 (dedup check); AUTHORS:89 and AUTHORS:97 (insertion points shown in the diff)

Suggested fix: Pick one:

  1. Quickest unblock — run the tool locally and commit the result:
    ./contrib/authors_update.sh origin/master..HEAD && git add AUTHORS && git commit -m "AUTHORS: update"
    (accepts the two alias lines as separate entries).
  2. Preferred, avoids duplicate identities — add a .mailmap at the repo root (none exists today) mapping the aliases to canonical identities, and have authors_update.sh use it (e.g. git log --use-mailmap):
    Mikhail Brinskii <mikhailb@nvidia.com> <brminich@users.noreply.github.com>
    Nir Wolfer <nwolfer@nvidia.com> <82328769+NirWolfer@users.noreply.github.com>
    
  3. Harden the script so near-miss names/aliases don't create duplicates — match on the local-part/GitHub handle (e.g. brminich, NirWolfer) in addition to full email, instead of relying on a loose grep -iq "$name" substring test.

Also consider rebasing/squashing ucxx-snapshot-migration onto current master so the check only evaluates this PR's own commits rather than a 27-author backlog.

Related: PR #12346 (this PR); no existing issue found tracking authors_update.sh alias false-positives — worth opening one for fix #2/#3.

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id d980df5b-0680-42da-b002-034560c75eb0 in the triage console for the audit trail.

The stacked PR crosses the depth-100 checkout boundary, causing the title and AUTHORS checks to include unrelated UCX commits. Fetch complete history for these two history-based checks.
@shasson5

Copy link
Copy Markdown
Contributor Author

CI feedback

fixed

@shasson5 shasson5 closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP-DNM Work in progress / Do not review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants