Skip to content

feat: prefer reading the build toml from current ref#982

Merged
drbh merged 1 commit into
kernel-bot-refactorfrom
read-build-from-ref
Jul 21, 2026
Merged

feat: prefer reading the build toml from current ref#982
drbh merged 1 commit into
kernel-bot-refactorfrom
read-build-from-ref

Conversation

@drbh

@drbh drbh commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

this PR updates the kernel bot to prefer reading the build toml from the PR ref its on

pending the refactor PR #983

should address #935

@drbh drbh added area: github-actions GitHub Actions workflows and action versions area: repo-automation Repository scripts, bots, freshness checks, and generated automation area: tests Tests, validation code, and benchmark harnesses size: M Diff <= 250 lines type: feature New functionality / capability feature New functionality / capability and removed area: github-actions GitHub Actions workflows and action versions area: repo-automation Repository scripts, bots, freshness checks, and generated automation area: tests Tests, validation code, and benchmark harnesses size: M Diff <= 250 lines type: feature New functionality / capability labels Jun 30, 2026
@sayakpaul

Copy link
Copy Markdown
Member

Cc: @drbh possible to revive this one?

@drbh
drbh marked this pull request as ready for review July 17, 2026 17:12


# Metadata read from a git ref (PR branch) instead of the working tree.
class MetadataRefTest(unittest.TestCase):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there should also be a test to ensure that the dispatcher is able to select the right workflows? For example, #1031 shouldn't have picked the building on Mac workflow?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea good point - test_metadata_ref_routes_metal_less_kernel_without_mac_build should cover this case, it reads a cuda only kernel from the ref and asserts it only routes to build.yaml (no build-mac.yaml)

thats what happened in #1031, build.toml didn't exist on the base ref yet so read_backends returned None and we fell back to dispatching every build, mac included. reading the toml from the PR ref is the fix

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Let's ship it and fix any bugs that might surface later.

@drbh
drbh merged commit ff05519 into kernel-bot-refactor Jul 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality / capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants