Skip to content

CI: Run the new and GPU jobs on new-01 only (test, do not merge) - #12194

Draft
Alexey-Rivkin wants to merge 2 commits into
openucx:masterfrom
Alexey-Rivkin:ci-new01-mixed-test
Draft

Alexey-Rivkin wants to merge 2 commits into
openucx:masterfrom
Alexey-Rivkin:ci-new01-mixed-test

Conversation

@Alexey-Rivkin

@Alexey-Rivkin Alexey-Rivkin commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What?

Test-only branch: run master's ucx_new and GPU jobs together on swx-rdmz-ucx-new-01, with CUDA loaded only for GPU jobs. Do not merge.

Why?

new-01 now has an RTX A6000 and should take GPU jobs to ease the GPU queue, while its new jobs keep running as before. Today try_load_cuda_env decides from the host state alone, so on a GPU host every new job builds and tests with CUDA too: duplicate GPU work and longer new jobs.

How?

  • AZP: Load CUDA only for GPU jobs (candidate for a real PR): GPU jobs (template name gpu / gpu_namespace) set UCX_CI_GPU_JOB=yes. On Azure, try_load_cuda_env loads CUDA only for those jobs, and load_cuda_env fails a GPU job that can't load CUDA. Jenkins runs are unchanged.
  • Test commit: every ucx_new, ucx_gpu and ucx_gpu_test demand becomes ucx_new01_test, the label that only the new-01 agents carry.

@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread buildlib/pr/main.yml
parameters:
name: gpu
demands: ucx_gpu -equals yes
demands: ucx_new01_test -equals yes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this lane runs centos7_cuda11 with --gpus all --device=/dev/gdrdrv, and the same applies to the other gpu lanes (384, 423, 455, 512, 541) — does the ucx_new01_test agent have a GPU? otherwise the gpu demand is lost and these jobs fail on check_gpu/docker device setup.

Comment thread buildlib/pr/main.yml
parameters:
name: new
demands: ucx_new -equals yes
demands: ucx_new01_test -equals yes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after this change gpu and new demand the same capability, so each gpu/new pair (wire-compat, tests, namespace, go, asan) runs on the same host and no longer covers two different setups — is that intended?

Comment thread buildlib/pr/main.yml
parameters:
name: gpu
demands: ucx_gpu -equals yes
demands: ucx_new01_test -equals yes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

load_cuda_env() in buildlib/az-helpers.sh only fails on CUDA load error when the ucx_gpu capability is set; if this job lands on a host without it, missing CUDA becomes a warning and the gpu lane passes without CUDA coverage.

Comment thread buildlib/pr/main.yml
parameters:
name: gpu
demands: ucx_gpu -equals yes
demands: ucx_new01_test -equals yes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: the jucx gpu job (line 438) still uses ucx_gpu and cuda/cuda_compatible.yml still uses ucx_gpu_test — pls say if leaving them out is deliberate.

@svc-nvidia-pr-review

Copy link
Copy Markdown

is this a temporary pin to validate the new01 agent? if yes, pls mark the PR as DNM — merged as is, the whole PR pipeline (wire-compat, tests, EFA, namespace, go, asan, cuda) depends on a single agent label, so every PR stalls or fails when that one host is busy or offline.

Validation gap: no CI evidence in the diff that the new label actually resolves to an agent with GPU + IB; per REVIEW.md build/CI changes need a passing run (or explicit statement which lanes were exercised) before this can be judged as more than a temporary pin.

@Alexey-Rivkin
Alexey-Rivkin marked this pull request as ready for review October 28, 2026 15:38
new-01 now has a GPU and is meant to serve both the ucx_new and the
ucx_gpu jobs. Its agents carry a separate ucx_new01_test label, so this
branch routes every ucx_new, ucx_gpu and ucx_gpu_test job of master to
that one host to see how the combined load and the host-level CUDA
detection affect the results.

Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
try_load_cuda_env decides from the host state: any job on a host with
the NVIDIA driver, nvidia_peermem and a GPU builds and tests with CUDA.
A host that serves both CPU and GPU jobs therefore turns every CPU job
into a duplicate GPU run - longer, and competing for the same GPU -
while the GPU jobs still run separately.

GPU jobs now set UCX_CI_GPU_JOB=yes (template name gpu / gpu_namespace,
the same signal check_gpu uses), and on Azure try_load_cuda_env loads
CUDA only for them. load_cuda_env fails a GPU job that cannot load CUDA
instead of keying on the host's ucx_gpu label. Jenkins runs are not
affected.

Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
@svc-nvidia-pr-review

Copy link
Copy Markdown

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

displayName: JUCX Test ${{ parameters.arch }}
${{ if eq(parameters.name, 'gpu') }}:
variables:
UCX_CI_GPU_JOB: yes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the UCX_ prefix is parsed by UCX as a config variable, so every ucx_perftest/ucx_info/io_demo/jucx run in these jobs will print unused environment variable: UCX_CI_GPU_JOB. pls rename it outside the UCX_ namespace, e.g. CI_GPU_JOB (also in az-helpers.sh and the 3 other templates).

Comment thread buildlib/az-helpers.sh
have_gdrcopy=no

# Azure hosts serve CPU and GPU jobs, load CUDA only for GPU jobs
if [ "x$RUNNING_IN_AZURE" = "xyes" ] && [ "x$UCX_CI_GPU_JOB" != "xyes" ]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for CPU jobs this early return is intentional, but load_cuda_env will then always report Cuda device is not available as an Azure warning on those jobs (go new, jucx aarch64). can we skip that warning when UCX_CI_GPU_JOB != yes?

Comment thread buildlib/az-helpers.sh
try_load_cuda_env
if [ "${have_cuda}" == "no" ] ; then
if [ "${ucx_gpu}" = "yes" ] ; then
if [ "${UCX_CI_GPU_JOB}" = "yes" ] ; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ucx_gpu: yes is still passed in the soname_suffix_cuda_ib job env (main.yml:531); pls remove or rename it so no stale flag is left behind.

name: MLNX
demands: ${{ parameters.demands }}
displayName: ${{ parameters.name }} on worker
${{ if eq(parameters.name, 'gpu_namespace') }}:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this keys CUDA loading on the job name in 4 templates (and the name differs here: gpu_namespace vs gpu), so renaming a job silently turns CUDA off instead of failing. why not pass an explicit template parameter, e.g. gpu_job: yes, from main.yml?

@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gaps: the non-GPU lanes (new, roce, althca, BlueField, go new, new_namespace) now deliberately build and test without CUDA even when they land on a GPU host — that looks intended, but it means CUDA coverage in the PR pipeline rests entirely on the gpu-named lanes, which all target the single ucx_new01_test agent. That amplifies the single-agent concern already raised, and there is still no CI evidence in the diff that the new label resolves to a GPU + IB host.

@svc-ucx

svc-ucx commented Oct 28, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (AddressSanitizer new on worker 0) · commit 4ee1c3d2

TL;DR: This is not a real test failure — the Azure DevOps agent on swx-rdmz-ucx-new-01 received a shutdown signal mid-run and the job was cancelled while tests were passing normally; re-run the build and check agent/host health. No UCX code defect is implicated.

Full analysis

Summary: The "AddressSanitizer new on worker 0" job for build 141303 was aborted by an agent shutdown/cancellation during ./contrib/test_jenkins.sh, not by a failing assertion, sanitizer report, or timeout.

Root cause: The log contains no test failure of any kind. Every gtest line up to the end reports [ OK ] or [ SKIP ], and there is no AddressSanitizer diagnostic (ERROR: AddressSanitizer, SUMMARY:, LeakSanitizer) anywhere in the output. The terminal events are purely infrastructural:

  • 2026-10-28T19:48:07.0928Z ##[error]The agent has received a shutdown signal. This can happen when the agent service is stopped, or a manually started agent is canceled.
  • 2026-10-28T19:48:07.1387Z ##[error]The Operation will be canceled. The next steps may not contain expected logs.
  • 2026-10-28T19:48:17.2216Z ##[error]The operation was canceled. → Finishing: Run ./contrib/test_jenkins.sh

Critically, this is not a hang-induced wall-clock kill. Scanning timestamps across the whole retrieved window (19:47:43 → 19:48:17), the largest gap between consecutive lines is ~0.6 s (19:48:07.1387 → 19:48:07.7327), and typical spacing is 1–500 ms. The test binary was making continuous forward progress — completing tcp/test_ucp_sockaddr_destroy_ep_on_err, rc/test_ucp_tag_nbx, ud/test_ucp_sockaddr_wireup_fail, shm_gga/test_ucp_perf, and entering dc_ud/test_ucp_sockaddr — right up to the instant the agent died. A hang would show a multi-minute silent gap; there is none. Likewise it is not a job-timeout: Azure reports timeouts differently, whereas "agent service is stopped, or a manually started agent is canceled" is emitted when the agent process itself goes away (host reboot/decommission, agent service restart) or the run is cancelled externally (e.g. a newer commit pushed to PR #12194 superseding this run, or a manual cancel).

Also note the branch name ci-new01-mixed-test and the host swx-rdmz-ucx-new-01 referenced in the test output — consistent with this being a run pinned to a newly provisioned/experimental worker ("new on worker 0"), which is the most likely candidate for agent instability.

Implicated commit: unknown — commit [REDACTED:Hex High Entropy String] is not implicated; no code-level failure appears in the log.

File: unknown — no source file is implicated. The last pipeline step touched is contrib/test_jenkins.sh (cancelled, not failed).

Suggested fix: Do not change the job timeout and do not chase a UCX bug from this log. Instead:

  1. Re-run build 141303 / the PR CI: Run the new and GPU jobs on new-01 only (test, do not merge) #12194 CI to confirm the cancellation was transient.
  2. Confirm whether the run was superseded — check if a newer commit was pushed to ci-new01-mixed-test around 2026-10-28T19:48Z, which would make Azure auto-cancel this run. If so, this alert is a false positive and the poll-based trigger should filter out builds whose result is canceled rather than failed.
  3. If no superseding commit exists, investigate agent host health on swx-rdmz-ucx-new-01: check the Azure DevOps agent service status/uptime, agent _diag logs for the shutdown reason, and the host's dmesg/journal around 19:48:07 for a reboot, OOM-kill of the agent process, or service restart. ASAN builds have a large RSS footprint, so an OOM event taking down the agent is a plausible mechanism worth ruling out first on a newly provisioned worker.
  4. Optionally make triage less noisy by treating ##[error]The agent has received a shutdown signal as an infrastructure class distinct from test failure.

Related: none — searches for the agent-shutdown and cancellation signatures returned only unrelated open PRs (#12178, #11903, #12160, #11958, #11924, #12119), with no matching known issue.

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id f439335a-3dd6-4f29-a813-2bf2a89487e9 in the triage console for the audit trail.

This branch has not been deployed

No deployments
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.

3 participants