Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
93700ea
CI: automate release wheel publishing (poller + nightly job reuse)
Alexey-Rivkin Jul 8, 2026
cf93697
CI: simplify release wheel folder to release/<ver>/<sha>, min release…
Alexey-Rivkin Jul 13, 2026
73dbf9f
CI: guard per-line trigger in release poller
Alexey-Rivkin Jul 13, 2026
419601f
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin Jul 14, 2026
252709c
CI: add opt-in BUILD_INFINIA flag to nightly wheel build
Alexey-Rivkin Jul 15, 2026
393107b
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin Jul 15, 2026
a18ec77
CI: drop speculative infinia flag from nightly wheel build
Alexey-Rivkin Jul 16, 2026
5a83e07
CI: bind spcx plugin repo URL credential in nightly wheel build
Alexey-Rivkin Jul 16, 2026
06b15df
CI: trim nightly plugin comments to the non-obvious rationale
Alexey-Rivkin Jul 16, 2026
8a81aa2
CI: inject spcx repo-URL credential into the Build Wheel step
Alexey-Rivkin Jul 16, 2026
50f8fd3
CI: pin nightly NIXL_SHA to exact 8 hex to match the poller
Alexey-Rivkin Jul 16, 2026
b08545b
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin Jul 16, 2026
2a1c0d2
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin Jul 19, 2026
6b80f8b
CI: expose spcx + infinia enable flags, forwarded to release builds
Alexey-Rivkin Jul 19, 2026
9b718e0
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin Jul 20, 2026
65c4417
CI: split source checkout into its own nightly stage; poller outcome …
Alexey-Rivkin Jul 20, 2026
ce7be39
CI: name triggered wheel builds; bundle both plugins in release wheels
Alexey-Rivkin Jul 23, 2026
4030fe9
CI: rework release poller per review
Alexey-Rivkin Jul 26, 2026
821b628
CI: move the nightly wheel cron to midnight
Alexey-Rivkin Jul 27, 2026
7606c58
Merge remote-tracking branch 'origin/main' into ci/release-wheel-pipe…
Alexey-Rivkin Aug 2, 2026
378dc07
CI: fix CUDA version in the nightly wheel build
Alexey-Rivkin Aug 2, 2026
3437188
CI: wheel jobs mail only on failure, to nixl-ci-alerts
Alexey-Rivkin Aug 2, 2026
01fa80c
CI: bundle spcx and Infinia plugins by default in wheel builds
Alexey-Rivkin Aug 5, 2026
926ec5f
Merge branch 'main' into ci/release-wheel-pipeline
Alexey-Rivkin Sep 1, 2026
30fbe53
CI: adapt the release poller to the new nightly parameters
Alexey-Rivkin Sep 1, 2026
e2cbd4d
Merge remote-tracking branch 'origin/main' into ci/release-wheel-pipe…
Alexey-Rivkin Sep 1, 2026
e090cc5
CI: TEST ONLY - poller e2e against main as pseudo-release 99.0.0
Alexey-Rivkin Sep 2, 2026
37c88a5
Revert "CI: TEST ONLY - poller e2e against main as pseudo-release 99.…
Alexey-Rivkin Sep 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 22 additions & 13 deletions .ci/docs/ci-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ runs on-demand (`workflow_dispatch`, a PR comment, or a cron schedule).
| [Blossom-CI](#blossom-ci-blossom-ciyml) | GitHub Actions | `/build` PR comment, or `workflow_dispatch` | No — manual |
| `nixl-ci-dispatcher` → `non-gpu`, `gpu`, `dl-gpu`, `dl-gpu-ep`, `build-wheel`, `test-sanitizers`, `build-container-pr` | Jenkins (dispatcher-triggered) | Fan-out from Blossom-CI `Job-trigger` | No — only after `/build`, but these 7 are the *only* Jenkins jobs in the PR CI path |
| `nixl-ci-build-container` | Jenkins (standalone) | Nightly cron + manual | No — never runs as part of PR CI |
| `nixl-ci-build-wheel-nightly` | Jenkins (standalone) | Nightly cron + manual | No — never runs as part of PR CI |
| `nixl-ci-build-wheel-nightly` | Jenkins (standalone) | Nightly cron, triggered by `build-wheel-release-poller`, or manual | No — never runs as part of PR CI |
| `nixl-build-wheel-release-poller` | Jenkins (standalone) | 4-hourly cron + manual | No — never runs as part of PR CI |
| `nixl-ci-build-llm-container` | Jenkins (standalone) | Manual only | No — never runs as part of PR CI |
| `nixl-ci-test-llm-container` | Jenkins (standalone) | Manual, or chained from `build-llm-container` via `RUN_TEST` | No — never runs as part of PR CI |
| `nixl-ci-cleanup-artifacts` | Jenkins (standalone) | Daily cron (6 AM) + manual | No — never runs as part of PR CI |
| `nixl-ci-nightly` | Jenkins (standalone) | Nightly cron (`H 0`) + manual | No — orchestrates the nightly UCX-`master` run of the 3 GPU jobs |

> **Note on Jenkins jobs:** `proj-jjb.yaml` defines 14 Jenkins jobs: the
> dispatcher, the 7 jobs it fans out to (the PR CI flow), and 6 standalone jobs
> (`build-container`, `build-wheel-nightly`, `build-llm-container`,
> `test-llm-container`, `cleanup-artifacts`, `nightly`). The standalone ones run only on a
> nightly/daily cron or when someone triggers them manually from the Jenkins UI,
> **Note on Jenkins jobs:** `proj-jjb.yaml` defines 15 Jenkins jobs: the
> dispatcher, the 7 jobs it fans out to (the PR CI flow), and 7 standalone jobs
> (`build-container`, `build-wheel-nightly`, `build-wheel-release-poller`,
> `build-llm-container`, `test-llm-container`, `cleanup-artifacts`, `nightly`). The
> standalone ones run only on their own cron, when someone triggers them manually
> from the Jenkins UI, or when chained from another standalone job,
> and are never invoked by the dispatcher or by a PR event.

## GitHub Actions workflows
Expand Down Expand Up @@ -151,10 +153,11 @@ their own nightly/manual trigger. They split into two groups:
the 7 jobs it fans out to. This is the *only* way any Jenkins job runs
against a PR, and only after a `/build` comment.
- **Standalone (never run against a PR):** `nixl-ci-build-container`,
`nixl-ci-build-wheel-nightly`, `nixl-ci-build-llm-container`,
`nixl-ci-test-llm-container`, `nixl-ci-cleanup-artifacts`, `nixl-ci-nightly` —
each has its own nightly cron and/or manual trigger and is invoked
independently of PRs and of the dispatcher.
`nixl-ci-build-wheel-nightly`, `nixl-build-wheel-release-poller`,
`nixl-ci-build-llm-container`, `nixl-ci-test-llm-container`,
`nixl-ci-cleanup-artifacts`, `nixl-ci-nightly` — each has its own cron, manual
trigger, and/or upstream standalone job, and is invoked independently of PRs
and of the dispatcher.

### `nixl-ci-dispatcher` (dispatcher-triggered)

Expand Down Expand Up @@ -190,9 +193,15 @@ their own nightly/manual trigger. They split into two groups:
- **Automatic on every PR:** No — standalone/nightly + manual only.

### `nixl-ci-build-wheel-nightly` (standalone)
- **Trigger:** Nightly cron (two runs, `CUDA_MAJOR=13` and `CUDA_MAJOR=12`), or manual run. The pipeline and matrix config run from `ci_refspec` (default `main`; pass `refs/pull/<n>/head` to test CI changes end to end before merge); the NIXL source is cloned inside the build from the `NIXL_VERSION` parameter (branch/tag/PR ref/sha), so any ref is buildable without CI files on it.
- **What it does:** Reuses the per-PR wheel build path (`contrib/build-container.sh` + `Dockerfile.manylinux`) and publishes wheels to `sw-nbu-swx-nixl-pypi-local`. With `PUBLISH_DIR` empty (the default, and what the nightly cron uses) wheels land under `verification/g<nixl-sha8>.ucx<ucx-sha8>/` — the long-standing schema the `build-llm-container` verification pipeline consumes; manual release runs can pass `release/<ver>`, which co-locates cu12/cu13 under `release/<ver>/<nixl-sha8>/` (unkeyed to UCX). `CUDA_MAJOR` selects the CUDA line to build: `13` (default) passes no base-image flags to `build-container.sh` and relies on its own defaults; `12` passes the pinned CUDA 12 base image/tag from the matrix env. The UCX spcx and Infinia DDN plugins are always bundled (`--build-ucx-spcx-plugin --build-infinia`, unconditional — not job parameters); the source ref's `contrib/build-container.sh` must carry both flags and pin their versions. The resolved build options (base image, UCX ref/sha, plugin flags, etc.) are written to `build_options.env` via `--build-options-file`; Publish reads it and attaches `UCX_REF`, `UCX_SHA`, `CUDA_VERSION`, and (when built) `UCX_SPCX_PLUGIN_REF`/`INFINIA_LIBS_IMAGE` as Artifactory properties on each uploaded wheel (skipped if the built ref's `build-container.sh` predates `--build-options-file`).
- **Automatic on every PR:** No — standalone nightly + manual only.
- **Trigger:** Nightly cron (two runs, `CUDA_MAJOR=13` and `CUDA_MAJOR=12`), triggered by [`nixl-build-wheel-release-poller`](#nixl-build-wheel-release-poller-standalone) for release publishing, or manual run. The pipeline and matrix config run from `ci_refspec` (default `main`; pass `refs/pull/<n>/head` to test CI changes end to end before merge); the NIXL source is cloned inside the build from the `NIXL_VERSION` parameter (branch/tag/PR ref/sha), so any ref is buildable without CI files on it.
- **What it does:** Reuses the per-PR wheel build path (`contrib/build-container.sh` + `Dockerfile.manylinux`) and publishes wheels to `sw-nbu-swx-nixl-pypi-local`. With `PUBLISH_DIR` empty (the default, and what the nightly cron uses) wheels land under `verification/g<nixl-sha8>.ucx<ucx-sha8>/` — the long-standing schema the `build-llm-container` verification pipeline consumes; the poller and manual release runs pass `release/<ver>`, which co-locates cu12/cu13 under `release/<ver>/<nixl-sha8>/` (unkeyed to UCX). `CUDA_MAJOR` selects the CUDA line to build: `13` (default) passes no base-image flags to `build-container.sh` and relies on its own defaults; `12` passes the pinned CUDA 12 base image/tag from the matrix env. The UCX spcx and Infinia DDN plugins are always bundled (`--build-ucx-spcx-plugin --build-infinia`, unconditional — not job parameters); the source ref's `contrib/build-container.sh` must carry both flags and pin their versions. The resolved build options (base image, UCX ref/sha, plugin flags, etc.) are written to `build_options.env` via `--build-options-file`; Publish reads it and attaches `UCX_REF`, `UCX_SHA`, `CUDA_VERSION`, and (when built) `UCX_SPCX_PLUGIN_REF`/`INFINIA_LIBS_IMAGE` as Artifactory properties on each uploaded wheel (skipped if the built ref's `build-container.sh` predates `--build-options-file`).
- **Automatic on every PR:** No — standalone nightly/poller-triggered + manual only.

### `nixl-build-wheel-release-poller` (standalone)

- **Trigger:** 4-hourly cron (`H H/4 * * *`) or manual run. The pipeline and matrix config (`.ci/jenkins/lib/build-wheel-release-poller-matrix.yaml`) run from `ci_refspec` (default `main`); the poller forwards `ci_refspec` to the builds it triggers, so a pre-merge test run drives the whole chain from one PR ref.
Comment thread
Alexey-Rivkin marked this conversation as resolved.
Resolved
- **What it does:** Builds release wheels for every `release/*` branch with version >= 1.4.0 whose `contrib/build-container.sh` accepts `--build-options-file` (the nightly always passes it, so older refs would fail at option parsing) - new release branches are picked up automatically, with no CI config anywhere. The CUDA variants are the matrix axis (`cuda_major`): each cell runs `.ci/scripts/scan-missing-release-wheels.sh` for its variant and triggers the missing builds. Per release the scan takes the newest 10 first-parent commits past the merge-base with `main`, checks the Artifactory folder `release/<ver>/<nixl-sha8>/` for that variant's wheel presence, and triggers [`nixl-ci-build-wheel-nightly`](#nixl-ci-build-wheel-nightly-standalone) once per missing build, passing the commit sha, `CUDA_MAJOR`, and `PUBLISH_DIR=release/<ver>`. UCX and the bundled plugins are not passed: each release builds against the `UCX_REF` and plugin versions pinned in its own `contrib/build-container.sh`. No marker files: a failed build is retried on later cycles while its commit stays within the newest-10 window, and a partially-uploaded variant looks complete; delete the folder in Artifactory to force a rebuild.
- **Automatic on every PR:** No — standalone cron + manual only, never part of the PR CI path.

### `nixl-ci-build-llm-container` (standalone)
- **Trigger:** Manual only (no cron, no webhook).
Expand Down
144 changes: 144 additions & 0 deletions .ci/jenkins/lib/build-wheel-release-poller-matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# Release wheel poller. Runs every 4 hours on main; compares release-branch
# commits against the wheels already published in Artifactory
# (sw-nbu-swx-nixl-pypi-local) and triggers nixl-ci-build-wheel-nightly for
# every release-branch commit x CUDA variant whose wheels are still missing.
#
# How it works:
# - CUDA variants are the matrix axis (cuda_major): each cell scans and triggers
# one variant. The scan itself is .ci/scripts/scan-missing-release-wheels.sh.
# - Which releases build: every release/* branch with version >= MIN_RELEASE
# whose build-container.sh accepts --build-options-file (the nightly always
# passes it) - picked up automatically, new release branches need no change.
# - Which UCX and plugins: whatever the release's own build-container.sh pins;
# the poller passes neither, so each release ships what it was built to ship.
# - Which commits: newest MAX_COMMITS first-parent commits past the fork from main.
# - Folder: release/<ver>/<nixl_sha8> - the nightly job's
# publish layout. A variant counts as published when a nixl_cuNN wheel is
# present in the folder; there are no marker files.
# - Consequences: a failing build retries every cycle until it succeeds or the
# commit falls out of the MAX_COMMITS window; a partial upload of a variant
# looks complete - delete the folder in Artifactory to force a rebuild.

---
job: nixl-build-wheel-release-poller

timeout_minutes: 30

registry_host: artifactory.nvidia.com

credentials:
- credentialsId: 'svc-nixl-new-artifactory-token'
usernameVariable: 'ARTIFACTORY_USER'
passwordVariable: 'ARTIFACTORY_TOKEN'

kubernetes:
cloud: il-ipp-blossom-prod
namespace: nbu-swx-nixl
imagePullSecrets: "['artifactory-pull-secret']"
limits: '{memory: 2Gi, cpu: 2000m}'
requests: '{memory: 2Gi, cpu: 2000m}'

runs_on_dockers:
- { name: "poller", url: "quay.io/podman/stable:v5.7.1", arch: "x86_64" }

# One cell per CUDA variant: CUDA_MAJOR selects the base image of the triggered
# build (13 = build-container.sh defaults, 12 = the nightly's pinned CUDA 12
# image) and names the variant (cuNN).
matrix:
axes:
cuda_major:
- "12"
- "13"

env:
# Releases older than this are not built. Anything newer is picked up automatically.
MIN_RELEASE: "1.4.0"
# Newest N commits to check per release branch.
MAX_COMMITS: "10"
NIXL_REPO_URL: "https://github.com/ai-dynamo/nixl.git"
# Artifactory storage API root of the SWX NIXL pypi repo (folder listing).
STORAGE_API_URL: "https://artifactory.nvidia.com/artifactory/api/storage/sw-nbu-swx-nixl-pypi-local"
MAIL_FROM: "jenkins@nvidia.com"

steps:
- name: Discover Missing Wheels
credentialsId: 'svc-nixl-new-artifactory-token'
parallel: false
run: |
Comment thread
Alexey-Rivkin marked this conversation as resolved.
Resolved
# Scan this cell's CUDA variant; writes triggers.txt for the next step.
.ci/scripts/scan-missing-release-wheels.sh

- name: Trigger Release Builds
shell: action
module: groovy
parallel: false
run: |
def triggers = fileExists('triggers.txt') ? readFile('triggers.txt').trim() : ''
if (triggers) {
// Forward our CI ref so a pre-merge test poller run drives builds
// with the same pipeline + config revision.
def ciRefspec = params.ci_refspec ?: 'main'
def spawned = []
def failed = []
for (line in triggers.split('\n')) {
Comment thread
Alexey-Rivkin marked this conversation as resolved.
Resolved
// line: <nixl_sha> <ver> <cuda_major>
def parts = line.trim().split(/\s+/)
def cu = "cu${parts[2]}"
// Per-line guard: one bad trigger must not drop the remaining
// lines; the next poll retries anything missed.
try {
build(job: 'nixl-ci-build-wheel-nightly',
parameters: [
string(name: 'NIXL_VERSION', value: parts[0]),
string(name: 'CUDA_MAJOR', value: parts[2]),
string(name: 'PUBLISH_DIR', value: "release/${parts[1]}"),
string(name: 'ci_refspec', value: ciRefspec),
],
wait: false,
propagate: false)
spawned << "release/${parts[1]}/${parts[0].take(8)} ${cu} (NIXL_VERSION=${parts[0]} CUDA_MAJOR=${parts[2]})"
} catch (err) {
failed << "${line}: ${err}"
currentBuild.result = 'UNSTABLE'
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
// Outcome report. build(wait:false) yields no per-run URL, so link the
// nightly job; each spawned build back-links here as "upstream
// #${BUILD_NUMBER}", and its per-build downstream link is on this
// build's page in the classic UI (Blue Ocean hides the widget).
def report = ["", "===== poller spawned ${spawned.size()} build(s) -> ${env.JENKINS_URL}job/nixl-ci-build-wheel-nightly/ ====="]
report += spawned.collect { " + ${it}" }
if (failed) {
report << "----- ${failed.size()} failed to trigger (retried next cycle) -----"
report += failed.collect { " ! ${it}" }
}
echo report.join('\n')
} else {
echo 'No missing wheels - nothing to trigger.'
}

taskName: '${name}_cu_${cuda_major}'

# Mail the unattended poller only when it fails, mirroring the nightly.
pipeline_stop:
shell: action
module: groovy
containerSelector: "{name: 'poller'}"
run: |
def jobStatus = currentBuild.result ?: 'SUCCESS'
if (jobStatus != 'SUCCESS' && params.MAIL_TO) {
def userName = currentBuild.rawBuild.getCause(hudson.model.Cause.UserIdCause)?.userName ?: 'schedule'
mail(
from: env.MAIL_FROM,
to: params.MAIL_TO,
subject: "Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' - ${jobStatus}",
mimeType: 'text/html',
body: """
<p>Started by: <b>${userName}</b></p>
<p>Status: <span style="color: red;"><b>${jobStatus}</b></span></p>
<p>Job: <a href='${env.JOB_URL}'>${env.JOB_NAME}</a></p>
<p>Build: <a href='${env.BUILD_URL}'>#${env.BUILD_NUMBER}</a></p>
<p>Console Output: <a href='${env.BUILD_URL}console'>Full Log</a></p>
"""
)
}
Loading
Loading