Skip to content

kernel: move kernel-update's steps to bot.py, with tests - #71

Merged
fcuny merged 2 commits into
mainfrom
wt/kernel-bot-update
Oct 25, 2026
Merged

fcuny merged 2 commits into
mainfrom
wt/kernel-bot-update

Conversation

@fcuny

@fcuny fcuny commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Moves the kernel-update workflow's check and PR steps from inline bash to kernel/bot.py update-check and update-pr. It's stdlib only and runs with the runner's python3. It behaves the same, with versions compared as tuples instead of sort -V, and gh's JSON parsed in Python.

kernel/bot_test.py tests the version decisions, the PR body and its truncation, and which PRs get closed; a new kernel-bot workflow runs it. bot*.py and kernel/test/ no longer trigger the kernel workflow. The kernel-update workflow runs bot.py from the branch it runs on, with a second, sparse checkout.

update-check was run locally for the daily case (skips: already on 7.3), 7.3 by hand (fails), 7.2.9 by hand (goes ahead), and a bad version (fails). update-pr first runs for real with the next release.

🤖 Generated with Claude Code

@fcuny
fcuny added this pull request to stack #73 October 25, 2026 18:53
@fcuny fcuny changed the title kernel: move the kernel-update workflow's steps to bot.py, with tests kernel: move kernel-update's steps to bot.py, with tests Oct 25, 2026
@fcuny
fcuny force-pushed the wt/kernel-bot-update branch from 98fd571 to 5459851 Compare October 25, 2026 19:47
@fcuny
fcuny force-pushed the wt/kernel-bot-update branch from 5459851 to f4d5e48 Compare October 25, 2026 19:50
@fcuny
fcuny force-pushed the wt/kernel-bot-update branch 2 times, most recently from 70dd121 to 7b415a1 Compare October 25, 2026 19:55
Base automatically changed from wt/kernel-test to main October 25, 2026 19:57
@fcuny
fcuny force-pushed the wt/kernel-bot-update branch from 7b415a1 to 012d424 Compare October 25, 2026 19:57
@fcuny
fcuny marked this pull request as ready for review October 25, 2026 19:57
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fcuny
fcuny force-pushed the wt/kernel-bot-update branch from 012d424 to b0da667 Compare October 25, 2026 19:58
The kernel-update workflow runs bot.py from the branch it runs on, on
main's checkout; bot.py acts on the checkout it runs from. bot.py and
kernel/test/ no longer trigger the kernel workflow: a new kernel-bot
workflow runs the tests. The PR body goes in a file, kernel.org's
answer is checked and retried, and the series comes from series.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fcuny
fcuny merged commit 90b2119 into main Oct 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant