ci: per-app vanilla-vs-Pilot A/B report on publish PRs#33
Draft
Alexgodoroja wants to merge 1 commit into
Draft
Conversation
Adds .github/workflows/ab-report.yml: when a PR touches submissions/<id>/, it
extracts the app's bundle, runs the adapter in socket mode (no daemon — it
stages artifacts from the R2 registry on startup), runs the equivalent commands
vanilla vs Pilot via cmd/ipc-call, and posts an HTML A/B report (artifact +
upserted PR comment with a summary table).
- scripts/ab_report.py: add --mode {pilotctl,socket}; socket mode drives the
adapter over cmd/ipc-call. Load the command set from
submissions/<id>/ab-commands.json (else a version+help default). Pure stdlib.
- submissions/io.pilot.smolvm/ab-commands.json: CI-safe set (version + top-level
and subcommand --help) — proves the adapter forwards the whole smolvm command
tree (machine/pack/serve/config) without booting a VM.
- docs/CI-AB-REPORT.md: workflow, the no-KVM limitation, per-app command sets.
Validated locally: socket mode against the running smolvm adapter produced a
valid 6-pair report, all exit-matched, ~8-21ms adapter overhead; YAML + JSON +
PR-comment regex checked.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Red on |
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.
Runs the vanilla-vs-Pilot A/B report automatically when a publish PR touches
submissions/<id>/, and posts an HTML report (artifact + PR comment).What it does
submissions/<id>/path (orworkflow_dispatchinput).cmd/ipc-call.scripts/ab_report.py --mode socketwith the per-app command set, uploadsab-report.html, and upserts a PR comment with the summary table.scripts/ab_report.pygains--mode {pilotctl,socket}and loads the command set fromsubmissions/<id>/ab-commands.json(else a version+help default). Pure stdlib.--mode pilotctl. The submission must include a linux/amd64 artifact (or target a matching runner). Seedocs/CI-AB-REPORT.md.Validated locally: socket mode against the running smolvm adapter → valid 6-pair report, all exit-matched, ~8-21ms overhead (no daemon hop). YAML/JSON/comment-regex checked.
Stacks on #32. Draft until #32 lands.
🤖 Generated with Claude Code