Skip to content

CI: Add the namespace tests to Jenkins - #12426

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

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

Conversation

@Alexey-Rivkin

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

Copy link
Copy Markdown
Contributor

What?

Add the namespace tests to the Jenkins PR CI.

Why?

The Azure PR pipeline runs contrib/test_namespace.sh in its Namespace_tests stage. The Jenkins port has no job for it yet.

How?

  • .ci/pipeline/test_namespace_matrix.yaml: one privileged pod in the host PID namespace runs contrib/test_namespace.sh.
  • proj_jjb_oss.yaml: new ucx-test-namespace-oss job.
  • Jenkinsfile.dispatcher: start it with the other jobs.
  • The GPU lane of the Azure stage is not part of this job.

Tested: #10 (internal NVIDIA link)

HPCINFRA-5188 (Internal link)

@Alexey-Rivkin
Alexey-Rivkin marked this pull request as ready for review November 23, 2026 13:56
@Alexey-Rivkin
Alexey-Rivkin requested a review from a team as a code owner November 23, 2026 13:56
@svc-nvidia-pr-review

Copy link
Copy Markdown

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

Comment thread .ci/pipeline/test_namespace_matrix.yaml Resolved
Comment thread .ci/pipeline/test_namespace_matrix.yaml Resolved
Comment thread .ci/pipeline/test_namespace_matrix.yaml Resolved
@svc-nvidia-pr-review

Copy link
Copy Markdown

Coverage gap to note: the job covers only x86_64 host transports; the CUDA cuda_ipc namespace path in test_namespace_pid() is still exercised only by the Azure gpu_namespace lane, so Blossom alone would not catch regressions there.

@svc-ucx

svc-ucx commented Nov 23, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX-OSS/ucx-test-oss · commit 8de9c25b

TL;DR: No test ever ran — all four ucx-test-oss worker pods were rejected by Kubernetes with exceeded quota: resourcequota-nbu-swx-ucx, requested: cpu=6500m, used: cpu=118900m, limited: cpu=120, so the build sat unschedulable for 90 min until the pipeline timeout aborted it. Fix is to lower the CPU requests in the Jenkins matrix files (as the new test_namespace_matrix.yaml already does) and/or raise the namespace quota — not to raise the timeout.

Full analysis

Summary: UCX-OSS/ucx-test-oss #182 aborted in the "Parallel end" stage: every matrix worker pod failed to be created due to namespace CPU resource-quota exhaustion, and the 90-minute pipeline timeout cancelled the build.

Root cause: Pure scheduling starvation, not a code or test failure. At 14:02:20 the Kubernetes API rejected all four pods (ucx-test-ubuntu2404-doca29-182-*) with HTTP 403 Forbidden: exceeded quota: resourcequota-nbu-swx-ucx, requested: cpu=6500m, used: cpu=118900m, limited: cpu=120. The single retry attempt also failed, after which the log shows only Still waiting to schedule task / All nodes of label 'UCX-OSS_ucx-test-oss_182-*' are offline. There is then one continuous silent gap from 14:02:33 to 15:32:18 (≈90 min, the whole runtime) ending in Cancelling nested steps due to timeout → FlowInterruptedException: Timeout has been exceeded. No test_jenkins.sh output exists at all, confirming the container never started. The sibling leaf job ucx-build-static-oss #144 failed identically at 14:02:19 with the same quota message, so the namespace (120 CPU, 118.9 CPU already consumed by other concurrent builds) was saturated cluster-wide. Aggravating factor from this PR ([REDACTED:Hex High Entropy String]): it adds a sixth leaf job (ucx-test-namespace-oss) to the same nbu-swx-ucx namespace in the dispatcher fan-out, while .ci/pipeline/test_matrix.yaml still sets requests: cpu 6000m equal to its limit for 4 parallel workers (≈26 CPU per PR run), so only ~4 concurrent PR runs fill the quota.

Implicated commit: [REDACTED:Hex High Entropy String] "CI: Add the namespace tests to Jenkins" (Alexey Rivkin) — contributes extra namespace pressure; the quota exhaustion itself was caused by concurrently running builds, not by a UCX source change.

File: .ci/pipeline/test_matrix.yaml:13-14 (requests == limits, cpu: 6000m × 4 workers); related .ci/jenkins/Jenkinsfile.dispatcher:65-85 (6-way parallel fan-out), .ci/pipeline/test_namespace_matrix.yaml:13-15

Suggested fix:

  1. Apply the same under-request pattern the new namespace matrix already uses to the heavy matrices: in .ci/pipeline/test_matrix.yaml (and build_static_matrix.yaml, build_matrix.yaml) keep limits: cpu 6000m but drop requests to ~2000m so several PR runs fit inside the 120-CPU resourcequota-nbu-swx-ucx (quota accounting is on requests).
  2. Ask DevOps to raise the nbu-swx-ucx namespace CPU quota, and check for leaked/orphaned pods from previously aborted dispatchers (the abort/doKill loop in Jenkinsfile.dispatcher:37-50 is best-effort and may leave pods holding quota).
  3. Make the failure fast and obvious instead of a 90-minute silent timeout: add a short pod-provisioning/node acquisition timeout (e.g. timeout(time: 10, unit: 'MINUTES') around the node step) so unschedulable builds fail immediately with the quota error rather than burning the full timeout_minutes: 90.
  4. Re-trigger the build once the namespace has capacity; there is nothing to fix in UCX code.

Related: PR #12426 (this change), PR #12418 "CI: Use the performance-optimized durability for the Jenkins leaf jobs", PR #12168 "CI: Match Azure build matrix in the Jenkins static build job"

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id c1e20997-1941-4933-b257-a23748f37b19 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-build-static-oss · commit 8de9c25b

TL;DR: The two ucx-build-static pods were never created — Kubernetes rejected them with exceeded quota: resourcequota-nbu-swx-ucx, requested: cpu=6500m, used: cpu=118900m, limited: cpu=120 — so both parallel branches sat unschedulable for the full 90-minute pipeline timeout. Fix: lower the CPU request in .ci/pipeline/build_static_matrix.yaml (keep the 6000m limit) the way build_matrix.yaml/test_namespace_matrix.yaml already do, and/or raise the namespace quota now that a 7th leaf job was added.

Full analysis

Summary: UCX-OSS/ucx-build-static-oss #144 aborted after 90 min: both matrix branches (x86_64/ubuntu2004-mofed5.0, x86_64/centos7-ib) could not get a Jenkins agent pod because the nbu-swx-ucx namespace CPU ResourceQuota was exhausted.

Root cause: Pure resource starvation, not a code hang or slow build:

  • At 14:02:19 the kubernetes plugin logged KubernetesClientException ... pods "ucx-build-static-ubuntu2004-mofed50-144-xlfjr-x1jmt" is forbidden: exceeded quota: resourcequota-nbu-swx-ucx, requested: cpu=6500m, used: cpu=118900m, limited: cpu=120 (403 Forbidden), followed by one Retrying....
  • At 14:02:32: Still waiting to schedule task / All nodes of label 'UCX-OSS_ucx-build-static-oss_144-crs85' are offline — then no further output until 15:32:18 (Cancelling nested steps due to timeout, "Failed in branch ..."). The 90-minute silence is the queue waiting for a pod that quota would never allow; build_static.sh never ran a single line.
  • Why quota was full: the namespace quota is 120 CPU (requests). build_static_matrix.yaml:13-14 sets requests == limits == cpu 6000m (6500m with the jnlp sidecar) per pod × 2 dockers, while the other matrices deliberately under-request (build_matrix.yaml:14-15 and test_namespace_matrix.yaml:14-15: "The CPU request is below the limit so that two PR runs fit the namespace quota"). test_matrix.yaml:13-14 (4 workers × 6000m) and coverity_matrix.yaml:13-14 also request at full limit. This PR's commit additionally appends ucx-test-namespace-oss as a 7th parallel leaf job in Jenkinsfile.dispatcher:65-72, increasing simultaneous pod demand per PR — so the high-request static-build pods are the first to be refused.

Implicated commit: [REDACTED:Hex High Entropy String] — "CI: Add the namespace tests to Jenkins", Alexey Rivkin (adds the 7th leaf job to the dispatcher fan-out; it does not itself over-request, but it pushes the already-tight namespace quota over the edge). The pre-existing offender is build_static_matrix.yaml's requests == limits.

File: .ci/pipeline/build_static_matrix.yaml:13-14 (and .ci/jenkins/Jenkinsfile.dispatcher:71)

Suggested fix:

  1. Follow the established convention in build_static_matrix.yaml:
    limits: "{memory: 8Gi, cpu: 6000m}"
    # The request is below the limit so that two PR runs fit the namespace quota
    requests: "{memory: 8Gi, cpu: 2000m}"
    Do the same for test_matrix.yaml:13-14 (4 workers × 6000m = 26 CPU per PR) and coverity_matrix.yaml:13-14.
  2. Bound the pod-provisioning wait so a quota rejection fails fast instead of burning the whole 90-minute timeout_minutes — e.g. wrap the node/podTemplate acquisition in a short timeout (5–10 min) with retry, so the build reports "no capacity" rather than a misleading FlowInterruptedException: Timeout has been exceeded.
  3. Ask DevOps to raise the resourcequota-nbu-swx-ucx CPU limit (currently 120) to accommodate the added ucx-test-namespace-oss job, or stagger the dispatcher fan-out so not all 7 leaf jobs request pods concurrently.

Related: PR #12426 (this change); PR #12168 "CI: Match Azure build matrix in the Jenkins static build job" (touches the same static-build matrix / pod sizing); PR #12418 "CI: Use the performance-optimized durability for the Jenkins leaf jobs".

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 95139f62-79fe-4dd2-b2be-12941025c1a0 in the triage console for the audit trail.

The Azure PR pipeline runs contrib/test_namespace.sh on every PR, and the
Jenkins port has to cover the same tests. The GPU lane of the Azure stage
is not part of this job.

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.

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Review complete — no issues found.

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