Skip to content

Send the installed Gateway a chat request, run a prompt, and check the update - #221

Merged
rogers-andrew merged 4 commits into
cppalliance:masterfrom
rogers-andrew:qa-plan-tests
Nov 25, 2026
Merged

rogers-andrew merged 4 commits into
cppalliance:masterfrom
rogers-andrew:qa-plan-tests

Conversation

@rogers-andrew

@rogers-andrew rogers-andrew commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This pull request adds three checks to the installer checks in .github/installers/. It changes the two cell scripts there and the test job of installers.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 are all (Workshop and the Gateway), workshop, and gateway. 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

Check Where it runs
chat.mjs Cells that install the Gateway
run-prompt.mjs Cells that install Workshop and the Gateway
update.mjs By hand, on Linux

The 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.mjs reads 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 with GET and PUT /admin/config and POST /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.md into ~/.runvil/agents, the folder Workshop reads prompts from. hello.md is a copy of the smallest prompt in prompts/ of cppalliance/runvil-harness: its run sends one request to the model and returns the reply. run-prompt.mjs launches 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 through tauri-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 the SHA256SUMS of release v<version> lists for the release's AppImage. The updated Workshop, started again by the check, runs hello.md to 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 fetch and WebSocket that Node 22 has built in, so a cell needs only Node and a running CheapSeek for them. cell.sh and cell.ps1 call the same chat.mjs and run-prompt.mjs.

Both cell checks run as a new step 7, after the existing steps

Steps 1 to 6 of cell.sh and cell.ps1 keep 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 when CHEAPSEEK_BASE_URL is empty or node is missing from PATH.

The test job of installers.yml gains four steps for those cells. It installs Node 22. It checks CheapSeek out at the commit of its release v1.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 sets CHEAPSEEK_BASE_URL for 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-latest release 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 of installers.yml. The command:

cheapseek --port 8190 &
CHEAPSEEK_BASE_URL=http://127.0.0.1:8190/v1 \
    node .github/installers/update.mjs Runvil_0.3.0_amd64.AppImage 0.3.1

It needs tauri-driver, WebKitWebDriver, xvfb-run, and dbus-run-session. tauri-driver works 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.sh for all passed in 63 seconds, and for gateway in 42 seconds. The Gateway applies a config change once the speech download of its first start, 608 MB, has finished. chat.mjs waits for that at POST /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 of chat.mjs therefore has a limit of 10 minutes.
  • update.mjs from the 0.3.0 AppImage to 0.3.1 passed 25 runs of 25, in 11.3 to 21.6 seconds a run.
  • I ran 11 failure cases, which the plan lists, and each one failed with a message of its own. Two examples: given a CheapSeek address that answers 404, chat.mjs printed POST http://127.0.0.1:45899/v1/chat/completions answered 404, required 200, where port 45899 is the Gateway's. With CHEAPSEEK_BASE_URL empty, cell.sh printed the 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.yml run the cells for all and workshop on the five systems. A cell for all runs both cell checks, and both have passed on all five systems:

  • The first run passed them on Linux x64, macOS ARM, and Windows x64. On macOS Intel and Linux ARM64 the job stopped at the CheapSeek build: the CheapSeek checkout was inside this repository's checkout, and Cargo took it for a member of this workspace. The build now runs on a copy in the runner's temporary folder.
  • The second run passed them on Linux x64, Windows x64, macOS Intel, and Linux ARM64. The CheapSeek build took 7 minutes 53 seconds on macOS Intel and 2 minutes 29 seconds on Linux ARM64.
  • In the second run, the cell for all on 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 third run, on the final commit, passed both checks on all five systems.

The cells for gateway run 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.mjs now stops its processes before every exit

Greg Kal's review found that update.mjs could exit and leave tauri-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

  • On Ubuntu 26.04, Workshop exits after an update and its own restart fails (runvil-workshop#36). This is why the check starts the updated Workshop.
  • The 0.3.0 AppImage holds the Gateway and the 0.3.1 AppImage holds Workshop only, so the update removes the Gateway program that Workshop starts (runvil-workshop#37). The Gateway process that the earlier Workshop started keeps running, and the check leaves it running so that the updated Workshop can attach to it.

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

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4acea7dd-b070-4816-b347-de0937ba3a86
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

rogers-andrew and others added 2 commits November 24, 2026 12:24
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
rogers-andrew marked this pull request as ready for review November 24, 2026 21:37
Copilot AI balanced review requested due to automatic review settings November 24, 2026 21:37

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 gregjkal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one change request.

Comment thread .github/installers/update.mjs Resolved
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>
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>

@gregjkal gregjkal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rogers-andrew
rogers-andrew merged commit 57c9c48 into cppalliance:master Nov 25, 2026
27 checks passed
@rogers-andrew
rogers-andrew deleted the qa-plan-tests branch November 25, 2026 20:00

This branch was previously deployed

1 inactive deployment
github-pages — 57c9c48c Deployed Nov 25, 2026 by rogers-andrew via deploy #212
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.

3 participants