Repository navigation
Send the installed Gateway a chat request, run a prompt, and check the update - #221
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
The install cells of `installers.yml` end once each installed program serves a page, so a release whose installed Gateway cannot answer a chat request passes every cell. The plan adds a chat request and a prompt run to the cells that install the Gateway, and a check, run by a person after a release, that an earlier Workshop updates itself to the new one. Plan: /vibe/2026-11-24-1-installer-chat-and-update-checks.md Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every cell that installs the Gateway gets a step 7. `chat.mjs` adds CheapSeek, a test server that answers chat requests by rule, to the running Gateway through the routes its Settings page saves with, and requires text in the reply to one chat request. For the selection `all`, `run-prompt.mjs` then launches `hello.md` over Workshop's agents socket and requires that the run ends with text. `hello.md` is a copy of the smallest prompt the Harness repository ships. Step 7 runs after steps 1 to 6, so those steps read the config that the Gateway's first start wrote, as before. A cell that installs the Gateway fails at its start when `CHEAPSEEK_BASE_URL` is empty or `node` is missing from `PATH`. The test job of `installers.yml` installs Node 22, checks CheapSeek out at the commit of its release v1.1.0, and starts it with its own action. A CheapSeek release holds executables for three of the five platforms, so the cells on macOS Intel and Linux ARM64 build it first. Plan: /vibe/2026-11-24-1-installer-chat-and-update-checks.md Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
rogers-andrew
force-pushed
the
qa-plan-tests
branch
from
November 24, 2026 20:25
5d1a63a to
31f3795
Compare
rogers-andrew
marked this pull request as ready for review
November 24, 2026 21:37
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
gregjkal
requested changes
Nov 25, 2026
gregjkal
left a comment
Contributor
There was a problem hiding this comment.
Just one change request.
A person runs `update.mjs` on Linux after a release. It starts the AppImage of an earlier release through `tauri-driver`, in a home folder, on a display, and on a session bus of its own. It requires three things: the window offers the new version, a click on "Download Update" turns the AppImage into the file that the release's `SHA256SUMS` lists, and the updated Workshop, started again by the check, runs `hello.md` to an end with text. The check starts the updated Workshop itself and keeps the earlier Workshop's Gateway running. Its first runs found two faults in Workshop, filed as issues 36 and 37 of cppalliance/runvil-workshop: on Ubuntu 26.04 Workshop's own restart after an update fails, and the update from the 0.3.0 AppImage removes the Gateway file that Workshop starts. The processes of the check run in sessions of their own, so the check stops them itself before every exit: a pass, a failed requirement, an unexpected error, SIGINT, and SIGTERM. While the updater swaps the AppImage the file can be missing for a moment, and the check reads that as "not yet updated". Plan: /vibe/2026-11-24-1-installer-chat-and-update-checks.md Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
rogers-andrew
force-pushed
the
qa-plan-tests
branch
from
November 25, 2026 15:57
b8909e8 to
ae187cc
Compare
On Linux x64, both cells and the update check pass against release 0.3.1, the update check in every one of 25 runs, and each of 11 failure cases fails with a line of its own. In the pull request's two runs of `installers.yml`, the chat request and the prompt run pass on all five systems. The plan also records the two failures on the way: the CheapSeek build, which Cargo refused inside this repository's checkout, and one cell on macOS ARM, where an older step timed out before the new step ran and a rerun passed. The cells for a Gateway that is installed alone have run on Linux x64 only. The plan records the fault that Greg Kal's review found in `update.mjs`, which could exit and leave its processes running, and the two runs that show the correction. Plan: /vibe/2026-11-24-1-installer-chat-and-update-checks.md Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
rogers-andrew
force-pushed
the
qa-plan-tests
branch
from
November 25, 2026 16:54
ae187cc to
57c9c48
Compare
rogers-andrew
temporarily deployed
to
github-pages
November 25, 2026 19:12 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
This pull request adds three checks to the installer checks in
.github/installers/. It changes the two cell scripts there and the test job ofinstallers.yml, and it adds three scripts, one prompt file, and a plan. The installers and the Rust crates stay as they are.CI runs two of the checks, inside the install cells. A cell is one job of the test matrix in
installers.yml: it installs a selection of components on a fresh machine and checks the result. The selections areall(Workshop and the Gateway),workshop, andgateway. Before this change a cell ended once each installed program served a page. The Gateway's first start writes a config with speech models only, so every cell passed with a Gateway that could not answer a chat request. The third check is a command that a person runs after a release.What each check requires
chat.mjsrun-prompt.mjsupdate.mjsThe installed Gateway answers a chat request. The chat model is CheapSeek, a test server that speaks the OpenAI chat API and computes each reply from fixed rules.
chat.mjsreads the running Gateway's port and key from~/.runvil/run/gateway.json, the file a Gateway writes when it starts. It adds CheapSeek to the Gateway's config withGETandPUT /admin/configandPOST /admin/config-apply, the routes the Gateway's Settings page saves with. It then sends one chat request and requires text in the reply.Workshop runs a prompt through that Gateway. The cell copies
hello.mdinto~/.runvil/agents, the folder Workshop reads prompts from.hello.mdis a copy of the smallest prompt inprompts/ofcppalliance/runvil-harness: its run sends one request to the model and returns the reply.run-prompt.mjslaunches it over/agents/ws, the WebSocket that Workshop's own page launches prompts over, and requires a reply with text and then the end of the run.An earlier Workshop updates itself.
update.mjs <appimage> <version>starts the AppImage of an earlier release throughtauri-driver, Tauri's WebDriver server, which lets a script read and click the window. It requires three things. The window shows "Runvil<version>is available". The update overwrites the AppImage file in place: after a click on "Download Update", that file has the SHA-256 that theSHA256SUMSof releasev<version>lists for the release's AppImage. The updated Workshop, started again by the check, runshello.mdto an end with text. Workshop runs in a home folder that the check makes, on a display of its own (xvfb-run) and a session bus of its own (dbus-run-session), so its window stays off the screen of the person who runs the check. CheapSeek is the chat model here too: the check writes it into the Gateway config of that home folder, which the Gateway that Workshop starts reads.All three scripts use the
fetchandWebSocketthat Node 22 has built in, so a cell needs only Node and a running CheapSeek for them.cell.shandcell.ps1call the samechat.mjsandrun-prompt.mjs.Both cell checks run as a new step 7, after the existing steps
Steps 1 to 6 of
cell.shandcell.ps1keep every check they make, and still read the config that the Gateway's first start wrote. A cell that installs the Gateway now fails before it installs anything whenCHEAPSEEK_BASE_URLis empty ornodeis missing fromPATH.The test job of
installers.ymlgains four steps for those cells. It installs Node 22. It checks CheapSeek out at the commit of its releasev1.1.0. On macOS Intel and Linux ARM64 it builds CheapSeek from that checkout, because a CheapSeek release holds executables for Linux x64, macOS ARM, and Windows x64 only. The last step starts CheapSeek with the action in CheapSeek's repository. Where the job built CheapSeek, the action starts the executable that the job built, and elsewhere it downloads the release's executable. It setsCHEAPSEEK_BASE_URLfor the cell.The update check reads a published release, so it runs after the release
Workshop reads updates from an address that is compiled into it, the
workshop-latestrelease of this repository. The check can therefore only read a release that is already published. A job that ran it at the end of a release run would be new code in the release workflow whose first real run is the next release, so a fault in the job would first show in the middle of a release. I left it out ofinstallers.yml. The command:It needs
tauri-driver,WebKitWebDriver,xvfb-run, anddbus-run-session.tauri-driverworks on Linux and Windows, which leaves macOS out. On Windows the update runs the Windows installer, so the check needs other steps there, and I left them for a later change. On Linux, Workshop updates itself only when it runs from an AppImage, so the check takes an AppImage.Both cell checks pass on all five systems in CI
On my machine, Ubuntu 26.04, I ran everything against the files of release 0.3.1, with CheapSeek 1.1.0:
cell.shforallpassed in 63 seconds, and forgatewayin 42 seconds. The Gateway applies a config change once the speech download of its first start, 608 MB, has finished.chat.mjswaits for that atPOST /admin/config-apply, for a time that depends on the connection: 43 seconds in the one run where I timed it, a run with both parts installed. Each request ofchat.mjstherefore has a limit of 10 minutes.update.mjsfrom the 0.3.0 AppImage to 0.3.1 passed 25 runs of 25, in 11.3 to 21.6 seconds a run.chat.mjsprintedPOST http://127.0.0.1:45899/v1/chat/completions answered 404, required 200, where port 45899 is the Gateway's. WithCHEAPSEEK_BASE_URLempty,cell.shprintedthe selection 'gateway' installs the Gateway, so CHEAPSEEK_BASE_URL must hold the base URL of a running CheapSeek; it is empty.In CI, this pull request's runs of
installers.ymlrun the cells forallandworkshopon the five systems. A cell forallruns both cell checks, and both have passed on all five systems:allon macOS ARM failed at step 4, one of the existing steps. Workshop gives a Gateway that it starts 30 seconds to answer its health probe, and that Gateway's log shows that it finished loading its speech runtime 37.6 seconds after it started. A rerun of that one job passed.The cells for
gatewayrun only in a dispatched run and in a release run. The chat request to a Gateway that was installed alone has therefore run on Linux x64 only, on my machine.Changes since review was requested:
update.mjsnow stops its processes before every exitGreg Kal's review found that
update.mjscould exit and leavetauri-driver, the display, Workshop, and the Gateway running. Tauri's updater moves the old AppImage away before it writes the new one, so the read that computes the SHA-256 could find the path empty, and that error ended the script before it stopped anything. Ctrl-C had the same effect, because those processes run in sessions of their own.The read now counts as "not yet updated" while the file cannot be read. The script stops its processes on an unexpected error, on SIGINT, and on SIGTERM. I sent SIGINT to one run and SIGTERM to another, each 6 seconds after its start: 7 processes of the check were running before the signal, and all 7 had stopped after it. The other files of the pull request are as they were.
The update check found two faults in Workshop
The plan holds the design, the rejected alternatives, and every failure case
The plan is
vibe/2026-11-24-1-installer-chat-and-update-checks.md.🤖 Generated with Claude Code