Repository navigation
CI: automate release wheel publishing (poller + nightly job reuse) #1912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dpressle
merged 28 commits into
ai-dynamo:main
from
Alexey-Rivkin:ci/release-wheel-pipeline
Sep 6, 2026
Merged
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 cf93697
CI: simplify release wheel folder to release/<ver>/<sha>, min release…
Alexey-Rivkin 73dbf9f
CI: guard per-line trigger in release poller
Alexey-Rivkin 419601f
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin 252709c
CI: add opt-in BUILD_INFINIA flag to nightly wheel build
Alexey-Rivkin 393107b
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin a18ec77
CI: drop speculative infinia flag from nightly wheel build
Alexey-Rivkin 5a83e07
CI: bind spcx plugin repo URL credential in nightly wheel build
Alexey-Rivkin 06b15df
CI: trim nightly plugin comments to the non-obvious rationale
Alexey-Rivkin 8a81aa2
CI: inject spcx repo-URL credential into the Build Wheel step
Alexey-Rivkin 50f8fd3
CI: pin nightly NIXL_SHA to exact 8 hex to match the poller
Alexey-Rivkin b08545b
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin 2a1c0d2
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin 6b80f8b
CI: expose spcx + infinia enable flags, forwarded to release builds
Alexey-Rivkin 9b718e0
Merge remote-tracking branch 'origin/main' into HEAD
Alexey-Rivkin 65c4417
CI: split source checkout into its own nightly stage; poller outcome …
Alexey-Rivkin ce7be39
CI: name triggered wheel builds; bundle both plugins in release wheels
Alexey-Rivkin 4030fe9
CI: rework release poller per review
Alexey-Rivkin 821b628
CI: move the nightly wheel cron to midnight
Alexey-Rivkin 7606c58
Merge remote-tracking branch 'origin/main' into ci/release-wheel-pipe…
Alexey-Rivkin 378dc07
CI: fix CUDA version in the nightly wheel build
Alexey-Rivkin 3437188
CI: wheel jobs mail only on failure, to nixl-ci-alerts
Alexey-Rivkin 01fa80c
CI: bundle spcx and Infinia plugins by default in wheel builds
Alexey-Rivkin 926ec5f
Merge branch 'main' into ci/release-wheel-pipeline
Alexey-Rivkin 30fbe53
CI: adapt the release poller to the new nightly parameters
Alexey-Rivkin e2cbd4d
Merge remote-tracking branch 'origin/main' into ci/release-wheel-pipe…
Alexey-Rivkin e090cc5
CI: TEST ONLY - poller e2e against main as pseudo-release 99.0.0
Alexey-Rivkin 37c88a5
Revert "CI: TEST ONLY - poller e2e against main as pseudo-release 99.…
Alexey-Rivkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | | ||
|
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')) { | ||
|
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' | ||
| } | ||
| } | ||
|
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> | ||
| """ | ||
| ) | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.