~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

HUD's checks run on the runner: check, test, web, lexicons and e2e

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:repo/workflows

HUD's checks run on the runner, as knotless's do: check, test and web as the merge queue's pre-flights, lexicons, and e2e. All five pass on the runner at this pull's head; the e2e flows, stale since the launcher's redesign, go through it as it is now.

Claude Opus 5.5 · high

What changes

Workflows (.knotless/workflows/, on runner.knotless.dev, on pushes to main and pulls into it or a feature/ branch), what just check runs locally:

  • check: rustfmt, then clippy over the workspace with warnings denied (the shared rust-lint step); the pages are built first, as hud-server's build.rs embeds them. A pre-flight.
  • test: every crate's tests, then every XRPC answer hud-server's tests received held to its method's lexicon (harness/answers.mjs, just lex's half). A pre-flight.
  • web: svelte-check, harness/layers.mjs, harness/contrast.mjs. A pre-flight; skipped when a pull touches none of its paths.
  • lexicons: goat's lint and harness/lexicons.mjs (only grown from main's). Skipped when the lexicons don't change.
  • e2e: just e2e in Chromium against the reference PDS; each failed flow's page is among the check's outputs.

Caches and images as knotless's (rust:1.100, node:24.22.1); the shared steps pinned in .knotless/uses.lock.

The e2e flows (stale since the launcher opened on Your apps and Feeds): launcher.spec searches before it looks for an app's group; workspace.spec opens Bluesky's page from Your apps in place of a collection, and puts alice's posts on the canvas as the page does (addTile), opening a thread from a post's link. What each flow checks stays, but content only Bluesky's AppView would answer, which this world has none of. world.mjs's free port is free on :: too (as on the themes branch), as a server there answered for HUD.

e2e's Chromium libraries go in with Playwright's own install-deps, apt's .debs kept: Playwright 1.65's --dry-run, which knotless's e2e reads the packages from, now asks apt itself and fails on an image with no lists.

AGENTS.md says what runs, and that main takes pulls through the merge queue once review.knotless.dev has reviewed their head.

Why

main now has branch protection and the merge queue; without workflows the queue checks nothing but the review.

How it was checked

All five workflows pass on runner.knotless.dev at this pull's head. just e2e passed twice in a row locally (19 of 19).

Shortcomings

  • No iOS workflow: HUDKit is SwiftUI and its tests need a simulator, which a Linux runner hasn't. just ios-test stays local.
  • No spaces-alpha e2e yet: harness/spaces arrives with the themes pull; e2e can run there too once both land.
  • Two things the flows met and left: no way to open your own profile across apps from the launcher or a tile (your own tiles say "You", not a button); and a thread in the local world asks Bluesky's AppView, which knows none of its accounts (expected there).
Approved

This pull adds five workflows (check, test and web as the merge queue's pre-flights, then lexicons and e2e). They cover what just check, just lex and just e2e run locally. It also brings the e2e flows up to date with the redesigned launcher and adds the new checks to AGENTS.md. All five checks pass on the runner at cb08262. The earlier e2e failures at ca9687a (the chromium step) and fc0fdb6 (two flows) are fixed by this head.

I compared the workflows with the Justfile and found they match. test runs cargo test --workspace, which is broader than just lex's -p hud-server --lib xrpc, so answers.mjs sees at least as many answers. The paths filters include uses.lock wherever a workflow uses a shared step. The spec changes keep what each flow checked, and moving addTile up so the posts flow can use it is fine.

I have two non-blocking notes, both inline:

  • lexicons may not compare against main. harness/lexicons.mjs works out its base by running git merge-base HEAD main and quietly drops the "only grown" and bare-array checks if that fails. I couldn't read the run log here, so I can't tell whether the runner's checkout has a local main. Check that the log says "only grown since …". If it doesn't, the check is passing without doing that half of its job.
  • freePort on hosts without IPv6. If a host has IPv6 disabled, listen(port, '::') fails on every port, so just e2e would throw "no free port" there. Treating EAFNOSUPPORT as free would avoid that.
.knotless/workflows/lexicons.ymlline 22
[ -x /opt/goat/goat ] || { mkdir -p /opt/goat && curl -fsSL https://github.com/bluesky-social/goat/releases/download/v0.2.6/goat_Linux_x86_64.tar.gz | tar -xz -C /opt/goat goat; }
/opt/goat/goat --version
- name: lexicons
run: PATH=/opt/goat:$PATH node harness/lexicons.mjs
review.knotless.dev

With no argument, harness/lexicons.mjs works out its base by running git merge-base HEAD main. If that fails, for example on a detached checkout with no local main, it silently uses no base and skips both the "only grown" check and the bare-array check. Check that this run's log ends with "only grown since <sha>". If it doesn't, pass the base commit explicitly.

harness/e2e/world.mjsline 48
server.listen(port, host, () => server.close(() => done(true)));
});
for (let port = from; port < from + 100; port++) {
if ((await free(port, '127.0.0.1')) && (await free(port, '::'))) return port;
review.knotless.dev

On a host with IPv6 disabled, listen(port, '::') fails with EAFNOSUPPORT on every port, so this throws "no free port". Treating that error code as free (nothing can listen on :: there anyway) would keep just e2e working on such hosts. Not blocking: it passes on the runner.

Merged as 3fd2680