Repository navigation
Conversation
Adds .runlab/pr-review, a lab for the runlab author pack (https://runlabs.io/author-pack). From a checkout of kagent, trylab pr <number> opens a microVM with kind, the toolchain and a warm build cache, checks the pull request out, builds it, installs it, shows its diff and opens the kagent UI. The pull request runs in the microVM, away from the reviewer's machine, and the VM is discarded afterwards. Nothing outside .runlab/ changes: no code, no CI, no dependencies. .runlab/README.md says what it needs (Linux with KVM, gh, OPENAI_API_KEY and a read-only GH_TOKEN) and how to refresh the snapshot. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Eitan Suez <eitan.suez@gmail.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
.runlab/pr-review/, a lab for the runlab author pack (v1.3.0). From a checkout of kagent,trylab pr <number>opens a microVM with kind, the toolchain and a warm build cache, checks the pull request out, builds it, installs it, and shows its diff. The pull request is drawn as a card with its changed files, and a click on a file shows that file's diff.Why. Reviewing a pull request means building and running someone else's code, most of all from a fork. In the microVM that code runs away from your machine, and the VM is discarded afterwards. The first run builds the snapshot (about 40 GB, about 15 minutes, once). After that, trying a pull request takes a checkout,
make buildandmake kagent-cli-install.What it needs. Linux with KVM and the author pack,
ghlogged in,OPENAI_API_KEY, and a fine-grainedGH_TOKENthat can only read public repositories..runlab/README.mdhas the details and how to refresh the snapshot.What it changes in kagent. Nothing outside
.runlab/: no code, no CI, no dependencies. Six files, 322 lines. I tried it on #3564.Opening as a draft to get your feedback first. Happy to change anything, or to keep it out of the tree if you'd rather not carry it.