Repository navigation
kernel: add test/pr.py, to test a PR's kernel - #70
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fcuny
marked this pull request as ready for review
October 25, 2026 19:50
gh runs from the checkout, so it acts on c2vm's repository wherever the script runs from. A boot that times out is stopped with SIGTERM and reported. The boot check needs the probe to finish, dmesg is checked by level, and only the probe's lines are parsed. The report says when the tree is dirty, make e2e's output shows as it runs, the image comes from e2e_test.go, and setup errors exit with 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds
kernel/test/pr.py <PR>, a uv script with no dependencies:kernelartifact from the kernel workflow's run for the PR's head; it fails if there's no run, or it's still running or failed;uname -r,/proc/sys, the CPUs, DHCP and a fetch over HTTPS, the overlay root,virtio_rng, a-vmount, and dmesg;make e2ewith it (e2e: boot C2VM_E2E_KERNEL, if set #69);--no-commentonly prints).The kernel README and the bot's PR description point to it, instead of to booting the artifact by hand.
Tested on #66: everything passed. On #67, which has no kernel run, it says so.
🤖 Generated with Claude Code