Skip to content

CI: Add the CUDA tests to Jenkins - #12429

Draft
Alexey-Rivkin wants to merge 1 commit into
openucx:masterfrom
Alexey-Rivkin:ci-jenkins-cuda
Draft

Alexey-Rivkin wants to merge 1 commit into
openucx:masterfrom
Alexey-Rivkin:ci-jenkins-cuda

Conversation

@Alexey-Rivkin

@Alexey-Rivkin Alexey-Rivkin commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What?

Add the CUDA tests to the Jenkins PR CI.

Why?

The Azure PR pipeline builds and tests UCX against a set of CUDA images. The Jenkins port has no job for it yet.

How?

  • .ci/pipeline/test_cuda_matrix.yaml: a small helper pod allocates a GPU node through Slurm and runs the tests there, over the same 33 CUDA images as on Azure.
  • .ci/scripts/cap_output.sh: caps the output of the memory hooks step.
  • proj_jjb_oss.yaml: new ucx-test-cuda-oss job.
  • Jenkinsfile.dispatcher: start it with the other jobs.

Tested: #14 (internal NVIDIA link)

HPCINFRA-4961 (Internal link)

Azure runs the Cuda stage on every PR: the memory hooks test in 33
nvidia/cuda images and the SONAME suffix build with CUDA and IB. The
Jenkins pods have no GPU, so the new job runs each image in its own Slurm
allocation on the GPU partition, with the images and scripts Azure uses.
The nvidia/cuda images have no git or autotools, so a builder image
prepares the source tree on the node and the CUDA container mounts it.

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.

Comment thread .ci/pipeline/test_cuda_matrix.yaml Resolved
@svc-ucx

svc-ucx commented Nov 23, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX-OSS/ucx-coverity-oss · commit 294e60b8

TL;DR: The coverity build never ran a single step — both matrix pods were rejected by Kubernetes with exceeded quota: resourcequota-nbu-swx-ucx, requested: memory=10Gi, used: 299264Mi, limited: 300Gi, and the job then sat 90 minutes waiting for an agent until the pipeline timeout aborted it. The quota exhaustion coincides with this PR's new ucx-test-cuda-oss leaf job (32 matrix rows holding pods for up to 8 h while waiting on SLURM), so the fix is to shrink/cap that job's pod footprint (and fail fast on quota-forbidden pod creation) rather than touch coverity.

Full analysis

Summary: UCX-OSS/ucx-coverity-oss #147 failed with FlowInterruptedException: Timeout has been exceeded after both parallel branches (x86_64/cov/release, x86_64/cov/devel) failed to obtain a Kubernetes agent pod for the full 90-minute timeout_minutes window.

Root cause: Infrastructure/CI-config, not UCX code. At 14:20:10 the Kubernetes plugin logged:
Failure executing: POST .../pods. Message: pods "ucx-coverity-cov-147-lw0k0-9zgs1" is forbidden: exceeded quota: resourcequota-nbu-swx-ucx, requested: memory=10Gi, used: memory=299264Mi, limited: memory=300Gi → Retrying....
The namespace nbu-swx-ucx was at ~292 Gi of its 300 Gi memory quota, so neither coverity pod (8 Gi request from coverity_matrix.yaml + jnlp overhead = 10 Gi) could be admitted. The log then shows Still waiting to schedule task / All nodes of label 'UCX-OSS_ucx-coverity-oss_147-...' are offline at 14:20:23 and nothing else until Cancelling nested steps due to timeout / Failed in branch ... at 15:50:07 — a 90-minute silent gap, i.e. the build was blocked on pod admission the entire time, never compiled anything, and produced no artifacts.

The quota pressure is attributable to the commit under test: [REDACTED:Hex High Entropy String] adds a sixth leaf job ucx-test-cuda-oss to the dispatcher fan-out (.ci/jenkins/Jenkinsfile.dispatcher:71, .ci/jenkins/proj_jjb_oss.yaml:180-186). .ci/pipeline/test_cuda_matrix.yaml declares 32 test axis values, timeout_minutes: 480, and SLURM_IMMEDIATE_TIMEOUT: 14400 (4 h) — so each row's k8s builder pod stays resident holding quota while merely waiting for a funk SLURM allocation. Every PR event now multiplies that across concurrent dispatchers, starving the other leaf jobs (coverity being the victim here).

Implicated commit: [REDACTED:Hex High Entropy String] — Alexey Rivkin, "CI: Add the CUDA tests to Jenkins" (merge commit [REDACTED:Hex High Entropy String])

File: .ci/pipeline/test_cuda_matrix.yaml:8-21 (and :53-91); dispatcher entry at .ci/jenkins/Jenkinsfile.dispatcher:71

Suggested fix:

  1. Cap the new CUDA job's concurrent pod count and residency: verify batchSize: 6 actually throttles concurrency in the ci-demo matrix lib; if not, add an explicit concurrency/throttle, and trim the 32-entry test axis (the 11.x centos7/ubuntu18.04/ubuntu20.04 permutations are largely redundant — mirror only what Azure gates on).
  2. Reduce SLURM_IMMEDIATE_TIMEOUT (14400 s) and timeout_minutes (480) so a pod cannot hold namespace quota for hours while queued on SLURM; the k8s builder pod should be released while waiting.
  3. Make leaf jobs fail fast instead of burning the whole 90-min timeout: wrap the node acquisition with a short timeout (e.g. 10 min) inside the existing retry, so a quota-forbidden pod aborts with a clear "no capacity" error instead of Timeout has been exceeded.
  4. Short term: ask DevOps to raise the resourcequota-nbu-swx-ucx memory limit and sweep for leaked/stuck pods in nbu-swx-ucx (299264Mi used is suspicious), then re-trigger add backwards compat for old coverity #147 — this build has no UCX-code signal in it.

Related: PR #12429 (branch ci-jenkins-cuda, the change under test); prior dispatcher commits 65cd542 "CI: Abort the leaf jobs of stale PR dispatchers" (#11491) and 68af19f "CI: Trigger Blossom CI automatically on PR events" (#12235) increase concurrent dispatcher load; see also #12418 and #12094 for related Jenkins leaf-job tuning.

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 57ad97e2-ce27-4021-b22a-6f93bbd53ec5 in the triage console for the audit trail.

@svc-ucx

svc-ucx commented Nov 23, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX-OSS/ucx-test-oss · commit 294e60b8

TL;DR: No test ever ran — all four ucx-test-oss worker pods were refused by Kubernetes because the nbu-swx-ucx namespace memory ResourceQuota was exhausted (used ~998.5Gi of 1000Gi), so the branches sat in the queue for 84 min and were killed by the 90-min pipeline timeout. This is an infrastructure/capacity problem amplified by the new ucx-test-cuda-oss fan-out added in this very PR; the fix is to cut the concurrent pod footprint (and reclaim leaked pods), not to touch UCX code.

Full analysis

Summary: Build #189 aborted: parallel task failed with msg: FlowInterruptedException: Timeout has been exceeded — the 4 matrix branches (x86_64/ubuntu2404-doca2.9/w1..w4) never got an agent pod.

Root cause: From the build log: branches entered node at 15:01:36 and logged only "Still waiting to schedule task / All nodes ... are offline". The next and only meaningful line is at 16:25:11 (an 84-minute gap — no work was in progress, the jobs were queued, not slow):

WARNING: Unable to create pod: ... ucx-test-ubuntu2404-doca29-189-0m3m6-lfq7q because kubernetes resource quota exceeded.
Failure executing: POST .../namespaces/nbu-swx-ucx/pods ... is forbidden: exceeded quota:
resourcequota-nbu-swx-ucx, requested: memory=18Gi, used: memory=1022464Mi, limited: memory=1000Gi

Each worker requests 16Gi (.ci/pipeline/test_matrix.yaml kubernetes requests/limits memory: 16Gi) + 2Gi jnlp = 18Gi, and the namespace was already at 1022464Mi (~998.5Gi) of its 1000Gi limit, so every retry was rejected with HTTP 403. At 16:31 the outer timeout_minutes: 90 fired and cancelled the nested steps → aborted. There is no UCX product failure here at all.

Two things in this PR's commit make the quota pressure worse:

  • [REDACTED:Hex High Entropy String] adds ucx-test-cuda-oss to the dispatcher's parallel fan-out (.ci/jenkins/Jenkinsfile.dispatcher:71), so it now competes for the same namespace quota concurrently with ucx-test-oss.
  • That new job holds 33 matrix rows in the same namespace (.ci/pipeline/test_cuda_matrix.yaml:53-91) with timeout_minutes: 480 and SLURM_IMMEDIATE_TIMEOUT: 14400 (4h) — i.e. up to 33 pods can idle for hours merely waiting for a Slurm allocation, each pinning its quota share while doing nothing.
  • The stale-dispatcher abort logic added in 65cd5425 uses doStop()/doKill() on leaf builds; hard-killed builds can leave agent pods behind, which would explain the namespace sitting at 99.8% of quota.

Implicated commit: [REDACTED:Hex High Entropy String] — "CI: Add the CUDA tests to Jenkins", Alexey Rivkin (aggravating factor: 65cd542, same author). The quota exhaustion itself is environmental.

File: .ci/jenkins/Jenkinsfile.dispatcher:65-85 (parallel fan-out incl. ucx-test-cuda-oss); .ci/pipeline/test_cuda_matrix.yaml:10,16-21,36,53-91; .ci/pipeline/test_matrix.yaml (16Gi × 4 workers)

Suggested fix:

  1. Immediate: reclaim the namespace — list/delete orphaned pods in nbu-swx-ucx (kubectl -n nbu-swx-ucx get pods and delete pods from completed/killed builds), then re-run port fixes for ppc64 #189. Nothing in the UCX source needs changing.
  2. Throttle the new CUDA job so it cannot starve the rest: lower batchSize from 6 and/or cap concurrency of ucx-test-cuda-oss so only a handful of pods exist at once; drop SLURM_IMMEDIATE_TIMEOUT from 14400s to something far smaller so pods don't hold quota for 4h waiting on Slurm, and reduce timeout_minutes: 480.
  3. Make queueing failures fail fast instead of burning the whole 90-min budget: the retry around node silently waited 84 min. Add an inner timeout on pod acquisition (e.g. 15 min) so the branch errors with the quota message rather than being swallowed by the outer timeout.
  4. Longer term: either raise the namespace ResourceQuota, or right-size test_matrix.yaml requests (16Gi × 4 = 72Gi per build is a large reservation), and ensure dispatcher doKill() is followed by pod cleanup so killed leaf jobs release their quota.

Related: PR #12429 (this change); #12418 "CI: Use the performance-optimized durability for the Jenkins leaf jobs"; #12094 "CI: Jenkins integration testing (do not merge)" — all touching the same Jenkins/K8s pipeline capacity.

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 45bb0a33-a414-42ce-8110-faac08c2062b 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