Repository navigation
journeys (sc-9027): browser tests of production's setup on .test hosts, with a GitHub stub - #126
Merged
Merged
Conversation
VisualCIdocspring/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
This PR vs base: nothing, across 4 builds
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
… its description every run
This was referenced Dec 3, 2026
Merged
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.
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)SESSION_DRIVER,CACHE_STOREandQUEUE_CONNECTIONaredatabase, the same environment as talira-ai/infra's config.yaml. The only difference isAPP_ENV=testing.scripts/journeys/github-stub.mjs) in place of github.com: OAuth,/user,/user/emailsand installations. There's no dev-login: people sign in through "GitHub".GITHUB_URL, which is the framework's own setting. Its API is{GITHUB_URL}/api/v3on anything but github.com.GITHUB_URLisn't github.com.*.visualci.comnames.<meta name="visualci-{site,app,api,mcp}-url">into the app's page (app_shell::with_hosts).scripts/hosts.mjs).lib/hosts.tsreads them. With no tags (a dev server, a self-hosted install on one host), one origin serves everything.VISUALCI_WAITLISTis set to true or false. Production's config already sets it to'true'.The journeys (
scripts/screenshots/journeys.mjs)/api/ui/me/sending signed-in people back to the siteVISUALCI_WAITLIST=true, someone new lands on the waitlist page and isn't signed inEvery step is screenshotted. CI's
journeysjob 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
journeysjob 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_lockscheck while it waits).Checks
cargo fmt --checkandclippy -D warningsare clean.tests/hosts.rs(includingproduction_doesnt_boot_without_saying_whether_sign_ups_are_open),sign_inandforge_reportspass, plusmcpexcept its three blob tests, which need S3 (CI has it).site.mjs.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.