Revamp release pipeline#850
Merged
Merged
Conversation
82c8a9c to
b40d9db
Compare
sayakpaul
approved these changes
May 15, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR revamps the build pipeline in a couple ways:
workflows (build.yaml, build-mac.yaml, build-windows.yaml) controlled by a mode
input (pr / release)
triggers, bot commands, and local CLI
and call dispatch.py
instead of dispatching everything and skipping at runtime
parsing
merge-and-upload / release remain the production path
block list (all absorbed into the above)
Main change explained
dispatch.pyis now called in CI on both new PR's and when a PR is merged, or by the comment bot. It will read the kernel's build toml and then trigger the correctbuild-*.yamlworkflows. For example, if a kernel is only supported on osx, it will only call thebuild-mac.yamlworkflow.additionally the
build-*.yamlworkflows now always expect to be trigged manually, and expect certain input arguments. one of those arguments ismodewhich is either "pr" or "release", this way we can reuse the same workflow for both testing a PR, or when its merged to main and needs a release.ways to trigger the
dispatch.pyworkflows it triggers
note you can also see what arguments a workflow would trigger with via the cli like
Skipping Windows build for flash-attn4 (not in WINDOWS_KERNELS allowlist) [dry-run] build.yaml: { "ref": "main", "inputs": { "kernel_name": "flash-attn4", "dispatch_key": "flash-attn4-build.yaml-2d9dee4ce329", "mode": "release", "backends": "cuda", "repo_prefix": "kernels-community" } } Dispatched (1): - build.yaml (key: flash-attn4-build.yaml-2d9dee4ce329) Skipped (2): - build-mac.yaml - build-windows.yamlor
[dry-run] build-windows.yaml: { "ref": "main", "inputs": { "kernel_name": "relu", "dispatch_key": "relu-build-windows.yaml-b4b19432c7db", "mode": "release", "backends": "cuda,xpu", "repo_prefix": "kernels-community" } } [dry-run] build.yaml: { "ref": "main", "inputs": { "kernel_name": "relu", "dispatch_key": "relu-build.yaml-c8e094345cdc", "mode": "release", "backends": "cpu,cuda,rocm,xpu", "repo_prefix": "kernels-community" } } [dry-run] build-mac.yaml: { "ref": "main", "inputs": { "kernel_name": "relu", "dispatch_key": "relu-build-mac.yaml-28e8dcfac8e7", "mode": "release", "backends": "metal", "repo_prefix": "kernels-community" } } Dispatched (3): - build-windows.yaml (key: relu-build-windows.yaml-b4b19432c7db) - build.yaml (key: relu-build.yaml-c8e094345cdc) - build-mac.yaml (key: relu-build-mac.yaml-28e8dcfac8e7)Lastly this change also updates the kernel-bot to use
dispatch.pytoo, and adds a new "build-and-stage" command. This command can be used on a PR to build the contents of that PR and then push the build output tokernels-staging/kernel-nameie just add a comment like the following to a PR (in this case one with changes to relu)