feat: report kernel bot upload results#1033
Open
drbh wants to merge 1 commit into
Open
Conversation
… a community kernel
sayakpaul
approved these changes
Jul 18, 2026
Comment on lines
+2
to
+6
| # Input: | ||
| # [--base <comment-body>] <kernel> <repo-prefix> <upload-json-or-path>... | ||
| # | ||
| # Output: | ||
| # A Hub upload section, or <comment-body> with that section updated. |
Member
There was a problem hiding this comment.
(nit): Possible to include an actual representative example?
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 implements two release upload features that build on recent
kernel-builderchanges.first, it uses the
--create-prflag added in huggingface/kernels#694 when a kernel uploads to a Hub repo outsidekernels-community. this lets CI upload kernels likeMiniMaxAI/msaandsgl-project/sgl-flash-attn3by opening Hub PRs instead of assuming we can push directly.second, it uses the upload json output added in huggingface/kernels#716 so each build can write its upload result, the workflow can aggregate the results after the matrix completes, and the kernel bot can update its existing comment with the Hub repo / Hub PR links.
the main plumbing is:
build.toml, using--create-prfor external repos and--repo-idfor community reposkernel-builder upload --output-jsonresults as short lived workflow artifactsreport-statusmsaandsgl-flash-attn3added script usage
this script checks if the build should be a PR or not and creates the args needed to be passed to the upload command
outputs
and this script reads the json output and structures it into text that is appended to the kernel bot's last comment
uv run .github/scripts/format_hub_upload_comment.py msa kernels-community '{"pull_requests":[{"url":"https://hf.co/kernels/MiniMaxAI/msa/discussions/1"}]}'outputs
also ran the dispatch/pr bot tests, yaml parsing, py_compile, and diff whitespace checks.
TLDR; this PR improves uploads to respect creating PR's and better reporting on the results