Skip to content

journeys (sc-9027): browser tests of production's setup on .test hosts, with a GitHub stub - #126

Merged
ndbroadbent merged 3 commits into
mainfrom
journeys
Dec 3, 2026
Merged

ndbroadbent merged 3 commits into
mainfrom
journeys

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

A browser test of VisualCI the way production serves it, written after the sign-in bugs of 3 Dec 2026. Each journey is one of those bugs and fails on it. sc-9027.

The setup (scripts/journeys/run.sh)

  • Four hosts on .test names behind Caddy with TLS: visualci.test is the built site, and app., api. and mcp.visualci.test are the app. The real cookies, SESSION_DRIVER, CACHE_STORE and QUEUE_CONNECTION are database, the same environment as talira-ai/infra's config.yaml. The only difference is APP_ENV=testing.
  • A GitHub stub (scripts/journeys/github-stub.mjs) in place of github.com: OAuth, /user, /user/emails and installations. There's no dev-login: people sign in through "GitHub".
    • The app reads GitHub's addresses from GITHUB_URL, which is the framework's own setting. Its API is {GITHUB_URL}/api/v3 on anything but github.com.
    • Outside local and testing, the app refuses to boot when GITHUB_URL isn't github.com.
  • Hosts as meta tags: the frontend no longer has a list of *.visualci.com names.
    • The server writes <meta name="visualci-{site,app,api,mcp}-url"> into the app's page (app_shell::with_hosts).
    • The site build writes the same tags into every prerendered page (scripts/hosts.mjs).
    • lib/hosts.ts reads them. With no tags (a dev server, a self-hosted install on one host), one origin serves everything.
  • Sign-ups: production refuses to boot unless VISUALCI_WAITLIST is set to true or false. Production's config already sets it to 'true'.

The journeys (scripts/screenshots/journeys.mjs)

Journey The bug it catches
sign-in-from-the-site the cookie-name bounce (#114); sign-in landing on /api/ui/me
open-app-stays-in-the-app the app's / sending signed-in people back to the site
sign-out-lands-on-the-site sign-out showing the landing page at app.visualci.com (#122)
sign-in-returns-to-the-page a signed-out app page that spins, and sign-in that doesn't return to it (#120)
mcp-on-its-own-host MCP's Host 403; an OAuth challenge with no metadata (#123)
waitlist-keeps-new-people-out with VISUALCI_WAITLIST=true, someone new lands on the waitlist page and isn't signed in

Every step is screenshotted. CI's journeys job uploads them as their own build (--name journeys, check "VisualCI: journeys"), so the visual job's build is untouched.

State

On the build box, five of six pass on this branch. sign-in-returns-to-the-page fails until #120 merges. Without #120, the page's own API call gets the sign-in redirect's HTML and the page shows "Couldn't reach the server". The journeys job is red until then, and it isn't a required check yet: it becomes one once it's stable.

This branch also has #123's MCP challenge change. It goes away on the rebase after #123 merges.

Still to come in later PRs: the onboarding journey (after #116), and a test that a slow GitHub response holds no database lock (the stub with a delay, plus a pg_locks check while it waits).

Checks

  • cargo fmt --check and clippy -D warnings are clean.
  • tests/hosts.rs (including production_doesnt_boot_without_saying_whether_sign_ups_are_open), sign_in and forge_reports pass, plus mcp except its three blob tests, which need S3 (CI has it).
  • The frontend build passes, and so does site.mjs.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #72 · 333 unchanged · no changes

This PR vs base: 9 changed since #39, across 4 builds

docspring/visualci · journeys · build #73 · 12 added · approved by visualci features agent for Nathan Broadbent

The journeys' first baselines (#126): six sign-in, sign-out, MCP and waitlist journeys on the .test hosts. The site's gallery figure shows its description because production is refused.

This PR vs base: nothing, across 4 builds

Snapshot Before After
journeys/open-app-stays-in-the-app/01-site (added) –
journeys/open-app-stays-in-the-app/02-site-signed-in (added) –
journeys/open-app-stays-in-the-app/03-app (added) –
journeys/sign-in-from-the-site/01-site (added) –
journeys/sign-in-from-the-site/02-dashboard (added) –
journeys/sign-in-returns-to-the-page/01-signed-out-page (added) –
journeys/sign-in-returns-to-the-page/02-back-on-the-page (added) –
journeys/sign-in-returns-to-the-page/03-site (added) –
and 4 more in the build

Updated as builds change. Agents can review with VisualCI's MCP tools.

…our .test hosts behind Caddy with TLS, database sessions and cache, a GitHub stub (GITHUB_URL, refused outside local and testing); hosts as server-written meta tags; production needs VISUALCI_WAITLIST set
@ndbroadbent
ndbroadbent merged commit f2bae09 into main Dec 3, 2026
24 of 25 checks passed
@ndbroadbent
ndbroadbent deleted the journeys branch December 3, 2026 10:11
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.

1 participant