<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>VisualCI blog</title>
  <subtitle>Notes from the people building VisualCI.</subtitle>
  <link rel="self" type="application/atom+xml" href="https://visualci.com/blog/feed.xml"/>
  <link rel="alternate" type="text/html" href="https://visualci.com/blog/"/>
  <id>https://visualci.com/blog/</id>
  <updated>2026-12-04T18:18:16+13:00</updated>
  <entry>
    <title>Case study: a WeasyPrint crash that shipped in four releases</title>
    <link rel="alternate" type="text/html" href="https://visualci.com/blog/weasyprint-case-study/"/>
    <id>https://visualci.com/blog/weasyprint-case-study/</id>
    <published>2026-12-04T18:18:16+13:00</published>
    <updated>2026-12-04T18:18:16+13:00</updated>
    <author><name>Nathan Broadbent</name></author>
    <summary>For nine months and four releases, WeasyPrint crashed on documents with positioned content in a running header or footer. We replayed the commit that caused it with VisualCI and 17 realistic business documents, and the build flagged it on that commit. WeasyPrint's own sample documents never showed it.</summary>
    <content type="html">&lt;p&gt;&lt;a href=&quot;https://weasyprint.org&quot;&gt;WeasyPrint&lt;/a&gt; turns HTML and CSS into PDFs. It&amp;#39;s one of the best open source tools for the job, and a lot of Python apps use it for invoices, reports and tickets. We picked it for our first open source case study because PDFs are what VisualCI does best, and because WeasyPrint&amp;#39;s CI already does half the work. On every push and pull request it renders eight sample documents (a book in two styles, an invoice, a letter, a poster, a flyer, a report and a ticket) and keeps them as a build artifact for a day. Nothing compares them with the previous version.&lt;/p&gt;
&lt;p&gt;So we forked it, added VisualCI, and asked one question: would VisualCI have caught a regression that actually shipped, before it merged?&lt;/p&gt;
&lt;h2 id=&quot;the-bug&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#the-bug&quot;&gt;The bug&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;On 26 November 2025, commit &lt;a href=&quot;https://github.com/Kozea/WeasyPrint/commit/f3d5cba09774ea242c5e45c190e5feeb8e7cb207&quot;&gt;f3d5cba&lt;/a&gt; (&amp;quot;Abort whole grid rendering if no child fits on the page&amp;quot;) changed how WeasyPrint lays out CSS grids. It shipped in v67.0 on 2 December 2025.&lt;/p&gt;
&lt;p&gt;From then on, a document with absolutely positioned content inside a running header or footer (the &lt;code&gt;position: running()&lt;/code&gt; elements that print in the page margins) could crash with &lt;code&gt;AttributeError: &amp;#39;NoneType&amp;#39; object has no attribute &amp;#39;translate&amp;#39;&lt;/code&gt;. In v69.0 the same documents crashed somewhere else, with an &lt;code&gt;IndexError&lt;/code&gt; in &lt;code&gt;add_broken_out_of_flow&lt;/code&gt;, which a user reported in July 2026 (&lt;a href=&quot;https://github.com/Kozea/WeasyPrint/issues/2857&quot;&gt;#2857&lt;/a&gt;). A crash that needs one particular combination of CSS is hard to pin down from a report.&lt;/p&gt;
&lt;p&gt;It was fixed on 9 August 2026 by &lt;a href=&quot;https://github.com/Kozea/WeasyPrint/commit/eb45d5f7d2cb6decdc24c034fb78b2bfa195eff7&quot;&gt;eb45d5f&lt;/a&gt; (&amp;quot;Transform running elements into relatively-positioned boxes&amp;quot;), released in v70.0 on 8 September 2026. In all, four releases (67.0, 68.0, 68.1 and 69.0) and about nine months.&lt;/p&gt;
&lt;h2 id=&quot;what-would-have-caught-it&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-would-have-caught-it&quot;&gt;What would have caught it&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Not WeasyPrint&amp;#39;s samples. We rendered all eight with every release from v66.0 to v70.0. None crashed and none showed the bug, because none of them puts positioned content in a running header.&lt;/p&gt;
&lt;p&gt;Real business documents do. DocSpring&amp;#39;s template library has 17 page designs: an invoice, a certificate, a badge, a receipt, a packing slip, a ticket, a quote, a report, a shipping label, a membership card, a payslip, a transcript, a letter, a timesheet, a gift certificate, an application form and a purchase order. They&amp;#39;re laid out with CSS grid, with running headers and footers and &amp;quot;Page 1 of 3&amp;quot; counters, the way people build documents for print. We exported each as standalone HTML with its fonts and sample data, and rendered each twice: with short data, and with long data that runs over several pages. That&amp;#39;s 34 documents.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;WeasyPrint&lt;/th&gt;
&lt;th&gt;Samples (8)&lt;/th&gt;
&lt;th&gt;DocSpring designs (34)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;66.0&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;67.0&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14 crash&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;68.0&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;crash&lt;/strong&gt; (invoice checked)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;68.1&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14 crash&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;69.0&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14 crash&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;70.0&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;td&gt;all render&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;The 14 are the seven designs with a running header or footer (invoice, quote, payslip, transcript, letter, application and purchase order), each with both data sets.&lt;/p&gt;
&lt;h2 id=&quot;the-replay&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#the-replay&quot;&gt;The replay&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Our fork, &lt;a href=&quot;https://github.com/visualci-com/WeasyPrint&quot;&gt;visualci-com/WeasyPrint&lt;/a&gt;, has a GitHub Actions job that installs WeasyPrint from the commit, renders the 8 samples and the 34 designs, and sends the PDFs to VisualCI. We pushed the commit just before f3d5cba as the baseline, then opened a pull request with f3d5cba on top.&lt;/p&gt;
&lt;p&gt;VisualCI&amp;#39;s build for that pull request, &lt;a href=&quot;https://app.visualci.com/visualci-com/weasyprint/builds/6&quot;&gt;build #6&lt;/a&gt;, compared it with the baseline:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;14 PDFs removed&lt;/strong&gt;: the seven header-and-footer designs, with both data sets.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;14 error snapshots added&lt;/strong&gt;, each naming the document and the &lt;code&gt;AttributeError&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;28 unchanged&lt;/strong&gt;, including all eight of WeasyPrint&amp;#39;s samples.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The pull request&amp;#39;s VisualCI check stayed pending until someone reviewed the build, and the review rejected it, with the reason on each snapshot. Upstream, that&amp;#39;s the commit that merged and went into a release.&lt;/p&gt;
&lt;h2 id=&quot;the-other-half-changes-you-meant-to-make&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#the-other-half-changes-you-meant-to-make&quot;&gt;The other half: changes you meant to make&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Most rendering changes in a layout engine are on purpose, and the reviewer still needs to see them. A small fix can reach a long way.&lt;/p&gt;
&lt;p&gt;On 20 July 2026, &lt;a href=&quot;https://github.com/Kozea/WeasyPrint/commit/148bc049&quot;&gt;148bc04&lt;/a&gt; (&amp;quot;Fix break point value used to break lines&amp;quot;) fixed soft hyphens that went missing at some font sizes. It deletes two lines in &lt;code&gt;text/line_break.py&lt;/code&gt;, and it shipped in v70.0. We replayed it the same way, as a pull request in the fork on top of its parent.&lt;/p&gt;
&lt;p&gt;VisualCI&amp;#39;s build for it, &lt;a href=&quot;https://app.visualci.com/visualci-com/weasyprint/builds/9&quot;&gt;build #9&lt;/a&gt;, changed one of the 42 documents: the classical-style book. With the new line breaks, it reflows from 34 pages to 32. The build lists 26 changed pages and 224 lines that moved from one page to another, each with its text, so the reviewer sees everything a two-line fix touched. We approved it, because it&amp;#39;s the change the commit meant to make. The other 41 were unchanged. (At this July commit the 14 header-and-footer documents still crash, so they were error snapshots on both sides.)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://visualci.com/blog/weasyprint-case-study/linebreak-p23.png&quot; alt=&quot;Page 23 of the classical-style book before and after 148bc04, and the difference in red&quot;&gt;&lt;/p&gt;
&lt;p&gt;The release replay found two more intended changes: v67.0 rebalanced the two-column text in the report sample (&amp;quot;Respect top margins and avoid overlapping footnotes for columns&amp;quot;), and v69.0 drew the book&amp;#39;s SVG title logo differently (&amp;quot;Apply presentational hints to svg tags&amp;quot;).&lt;/p&gt;
&lt;h2 id=&quot;try-it-on-your-documents&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#try-it-on-your-documents&quot;&gt;Try it on your documents&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If your project renders PDFs, it&amp;#39;s one CI step: render your documents to a folder and upload it. See &lt;a href=&quot;https://visualci.com/docs/pdfs/&quot;&gt;PDFs&lt;/a&gt; and &lt;a href=&quot;https://visualci.com/docs/ci/github-actions/&quot;&gt;GitHub Actions&lt;/a&gt;. The 17 DocSpring designs used here are free to use under the MIT licence: get them from &lt;a href=&quot;https://github.com/DocSpring/docspring-html-designs&quot;&gt;DocSpring/docspring-html-designs&lt;/a&gt;, or in our fork at &lt;a href=&quot;https://github.com/visualci-com/WeasyPrint/tree/visualci-setup/visualci/docspring-designs&quot;&gt;visualci/docspring-designs&lt;/a&gt;.&lt;/p&gt;
&lt;!-- Sources: fork https://github.com/visualci-com/WeasyPrint (PR #1, branches replay/f3d5cba-base and replay/f3d5cba;
     PR #2 for 148bc04); VisualCI builds #3 (baseline) and #6, #8 (baseline) and #9; release dates from
     https://github.com/Kozea/WeasyPrint/releases; bisect: git bisect run over upstream commits rendering 01-invoice. --&gt;</content>
  </entry>
  <entry>
    <title>A Laravel Rust starter kit for a production SaaS</title>
    <link rel="alternate" type="text/html" href="https://visualci.com/blog/laravel-rust-starter-kit/"/>
    <id>https://visualci.com/blog/laravel-rust-starter-kit/</id>
    <published>2026-12-04T03:49:04+13:00</published>
    <updated>2026-12-04T03:49:04+13:00</updated>
    <author><name>Nathan Broadbent</name></author>
    <summary>VisualCI is open source, and its server is a Laravel Rust app that runs in production. Clone it, delete the visual testing, and you start with sign-in, organizations, invitations, credit billing on Stripe, transactional email, an MCP server with OAuth, background jobs with heartbeats, and the tests and CI around them.</summary>
    <content type="html">&lt;p&gt;VisualCI is built in public. The whole product is in one repository, &lt;a href=&quot;https://github.com/DocSpring/visualci&quot;&gt;github.com/DocSpring/visualci&lt;/a&gt;, under the Apache-2.0 licence: the server, the web app, the CLI, the renderers, the docs and this blog. What runs in production is what&amp;#39;s in the repo.&lt;/p&gt;
&lt;p&gt;The server &lt;a href=&quot;https://visualci.com/blog/laravel-rust-rewrite/&quot;&gt;moved to Laravel Rust&lt;/a&gt; this week. That makes the repo a working example of a full SaaS on Laravel Rust, with the parts every SaaS needs and nobody wants to build twice: accounts, organizations, billing, email, an API and an MCP server. You can use it as a starter kit. Clone it, have your coding agent delete the visual testing, and build your own product on what&amp;#39;s left.&lt;/p&gt;
&lt;h2 id=&quot;what-laravel-rust-gives-you&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-laravel-rust-gives-you&quot;&gt;What Laravel Rust gives you&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The framework covers what you&amp;#39;d expect from Laravel. VisualCI uses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;routing with &lt;code&gt;web&lt;/code&gt; and &lt;code&gt;api&lt;/code&gt; groups, middleware, CSRF protection, encrypted cookies and trusted proxies&lt;/li&gt;
&lt;li&gt;&lt;code&gt;#[model]&lt;/code&gt; models, query builders, transactions and migrations&lt;/li&gt;
&lt;li&gt;typed config sections read from environment variables&lt;/li&gt;
&lt;li&gt;session auth, and social sign-in with a GitHub driver (we added GitLab)&lt;/li&gt;
&lt;li&gt;queued jobs, the scheduler (&lt;code&gt;on_one_runner&lt;/code&gt;, &lt;code&gt;without_overlapping&lt;/code&gt;), events and listeners, and console commands&lt;/li&gt;
&lt;li&gt;request validation, an HTTP client with fakes, and &lt;code&gt;#[laravel::test]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;sessions, cache and the queue in Postgres, so one database is all the state there is&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One image runs &lt;code&gt;serve&lt;/code&gt;, &lt;code&gt;queue:work&lt;/code&gt;, &lt;code&gt;schedule:work&lt;/code&gt; and &lt;code&gt;migrate&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;what-the-repo-adds&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-the-repo-adds&quot;&gt;What the repo adds&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The rest of this post is what we built on top. Paths are in the repo, so you or your agent can read the code behind each line.&lt;/p&gt;
&lt;h3 id=&quot;sign-in-and-accounts&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#sign-in-and-accounts&quot;&gt;Sign-in and accounts&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub and GitLab sign-in&lt;/strong&gt; (&lt;code&gt;app/src/auth/sign_in.rs&lt;/code&gt;). It links identities to one user and matches accounts by verified email.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Safe return-to links.&lt;/strong&gt; After sign-in we only send people back to a page on our own site: no &lt;code&gt;//&lt;/code&gt; or &lt;code&gt;\&lt;/code&gt; tricks, no control characters, and never to an API, auth or MCP URL. One of the reviews found an open redirect here before launch, and the fix is in.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A waitlist.&lt;/strong&gt; One setting turns sign-ups off and puts new people on a &lt;code&gt;waitlist&lt;/code&gt; table with a page that says so. Production won&amp;#39;t start unless the setting is given explicitly, so a missing value can&amp;#39;t open sign-ups by accident.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sign-in for a CLI&lt;/strong&gt; (&lt;code&gt;app/src/auth/device.rs&lt;/code&gt;). The device-code flow: the CLI shows a code, you approve it in the browser on a page built to resist phishing, and you get an email saying a CLI signed in. Requests are limited per address, and a daily job clears old codes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;API tokens&lt;/strong&gt; (&lt;code&gt;app/src/auth/tokens.rs&lt;/code&gt;). Personal tokens and tokens scoped to one project, stored hashed, with a prefix you can recognise in logs and a &amp;quot;last used&amp;quot; time. One extractor, &lt;code&gt;Principal&lt;/code&gt;, accepts a session, an OAuth token or a bearer token.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Account settings.&lt;/strong&gt; Notification preferences, a billing email, the OAuth apps you&amp;#39;ve connected (with revoke) and a &amp;quot;how did you hear about us&amp;quot; question.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Staff pages.&lt;/strong&gt; A &lt;code&gt;staff&lt;/code&gt; flag on users opens pages for sign-ups, the email outbox (retry or dismiss a failed send) and feedback.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;organizations&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#organizations&quot;&gt;Organizations&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Organizations and roles&lt;/strong&gt; (&lt;code&gt;app/src/auth/orgs.rs&lt;/code&gt;). Every new user gets a personal organization. Members have one of three roles: read, member or admin.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Invitations&lt;/strong&gt; (&lt;code&gt;app/src/auth/invitations.rs&lt;/code&gt;). Invite by email address or GitHub login. The invitee accepts or declines in the app, sends are capped per day, and an organization can&amp;#39;t lose its last admin.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A setup checklist&lt;/strong&gt; (&lt;code&gt;app/src/auth/setup.rs&lt;/code&gt;) whose steps tick themselves off from what has actually happened, not from clicks. The steps are ours; the mechanism is yours to reuse.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;billing-with-credits-and-stripe&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#billing-with-credits-and-stripe&quot;&gt;Billing with credits and Stripe&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Plans&lt;/strong&gt; (&lt;code&gt;app/src/billing/mod.rs&lt;/code&gt;): Free, a paid Team plan, and an unlimited plan for your own organizations. Each plan includes credits every month.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Credit packs and auto-reload.&lt;/strong&gt; Paid plans can buy packs of credits, or reload them automatically when they run low, capped at 50 reloads a month.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A credit ledger&lt;/strong&gt; (&lt;code&gt;app/src/domain/credits.rs&lt;/code&gt;): a balance on each organization and a row in &lt;code&gt;credit_transactions&lt;/code&gt; for every change.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stripe&lt;/strong&gt; (&lt;code&gt;app/src/billing/&lt;/code&gt;): Checkout, the customer portal, payment methods and invoices. The webhook handler is idempotent, handles events arriving out of order, and checks live mode, and production refuses to start with test keys.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Running out.&lt;/strong&gt; When credits run out, auto-reload tries first. If that fails, the work stops with a clear &lt;code&gt;OUT_OF_CREDITS&lt;/code&gt; error and admins get an email, at most once a month.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;VisualCI charges credits per snapshot. Those rates are set in a few places that call the ledger, so swapping in your own unit (per API call, per document, per seat-month) means changing those call sites, not the billing code.&lt;/p&gt;
&lt;h3 id=&quot;transactional-email&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#transactional-email&quot;&gt;Transactional email&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A typed list of emails&lt;/strong&gt; (&lt;code&gt;app/src/notify/&lt;/code&gt;). Welcome, invited, added to or removed from an organization, CLI signed in, token created, credits low, credits ran out, credits bought, plan changed and more, each a variant of one enum.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;An outbox table.&lt;/strong&gt; Every email is written to the database first, with a dedupe key, so the same email can&amp;#39;t go to the same person twice. A job sends it through Postmark, tries five times, and then shows the failure on the staff page.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;an-mcp-server-with-oauth&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#an-mcp-server-with-oauth&quot;&gt;An MCP server with OAuth&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The MCP server&lt;/strong&gt; (&lt;code&gt;app/src/mcp/&lt;/code&gt;) uses rmcp over Streamable HTTP, stateless, at &lt;code&gt;/mcp&lt;/code&gt; on its own host. Tools are plain functions with &lt;code&gt;#[tool]&lt;/code&gt;, and helpers turn their arguments into JSON Schema. A few tools are general (who am I, organizations, tokens, sending feedback, reading the docs as skills); the rest are ours.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;OAuth 2.1 for MCP clients&lt;/strong&gt;, through our &lt;a href=&quot;https://crates.io/crates/oauth-provider-laravel&quot;&gt;oauth-provider-laravel&lt;/a&gt; package: PKCE, dynamic client registration and token revocation. The issuer is the MCP host and the consent page is on the app host, where people are signed in, and the server checks at startup that the two agree.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;the-api-and-the-hosts&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#the-api-and-the-hosts&quot;&gt;The API and the hosts&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Separate hosts&lt;/strong&gt; (&lt;code&gt;app/src/http/hosts.rs&lt;/code&gt;) for the marketing site, the app, the API and MCP. Each serves only its own paths.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Security headers&lt;/strong&gt; (&lt;code&gt;app/src/http/security.rs&lt;/code&gt;): a Content-Security-Policy built at startup from hashes of the page&amp;#39;s inline scripts, plus nosniff and no framing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Errors&lt;/strong&gt; in one JSON shape, &lt;code&gt;{&amp;quot;error&amp;quot;, &amp;quot;description&amp;quot;}&lt;/code&gt;. When the database is too busy to take a request, the API answers 503 with &lt;code&gt;Retry-After&lt;/code&gt; straight away, rather than leaving the request to time out.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A status endpoint&lt;/strong&gt; (&lt;code&gt;app/src/http/status.rs&lt;/code&gt;) that reports the deployed commit and how much background work is waiting, for an uptime checker to read.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;background-work-and-live-updates&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#background-work-and-live-updates&quot;&gt;Background work and live updates&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Heartbeats&lt;/strong&gt; (&lt;code&gt;app/src/heartbeat.rs&lt;/code&gt;). Every scheduled job pushes a heartbeat to an uptime checker when it finishes, so a job that stops running raises an alert. The repo&amp;#39;s rules for coding agents require a heartbeat for every background process.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A demo reset&lt;/strong&gt; that rebuilds a public demo every night through the real code paths.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Live updates between replicas&lt;/strong&gt; (&lt;code&gt;app/src/live.rs&lt;/code&gt;) without WebSockets: Postgres &lt;code&gt;LISTEN&lt;/code&gt;/&lt;code&gt;NOTIFY&lt;/code&gt; reaches every replica, and a notification only says &amp;quot;look again&amp;quot;, so it never carries data a subscriber mightn&amp;#39;t be allowed to see. Each process checks its own listener every minute and restarts it when it has gone quiet. This transport is on main; the server-sent event streams that carry it to the browser and the CLI come next.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;storage&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#storage&quot;&gt;Storage&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;S3-compatible storage&lt;/strong&gt; (&lt;code&gt;app/src/storage/blobs.rs&lt;/code&gt;), content-addressed by SHA-256, with presigned upload and download links so large files skip the server. It works with S3, R2, MinIO and RustFS.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;tests&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#tests&quot;&gt;Tests&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A database per test&lt;/strong&gt; (&lt;code&gt;app/src/testing.rs&lt;/code&gt;), each test inside a transaction that&amp;#39;s rolled back.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Golden JSON tests&lt;/strong&gt; (&lt;code&gt;app/tests/golden/&lt;/code&gt;) for every API and MCP answer, with one variable to rewrite them after a change you meant to make.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Browser screenshots&lt;/strong&gt; of the site and the app, reviewed in VisualCI on every pull request, and browser journeys (sign in, open the app, sign out, MCP) on a copy of production: four hosts behind Caddy with TLS, database sessions and a GitHub stand-in.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;docs-blog-and-site&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#docs-blog-and-site&quot;&gt;Docs, blog and site&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Docs that double as agent skills.&lt;/strong&gt; Pages with &lt;code&gt;skill:&lt;/code&gt; front matter are turned into skills for coding agents, and the MCP server can hand them out.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;llms.txt and llms-full.txt&lt;/strong&gt;, generated and checked on every build.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;This blog&lt;/strong&gt;, from Markdown files, with an Atom feed.&lt;/li&gt;
&lt;li&gt;The marketing site and docs are static files on a Cloudflare Worker.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;ci-and-deploys&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#ci-and-deploys&quot;&gt;CI and deploys&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub Actions&lt;/strong&gt; for lint, tests, the screenshot build, the browser journeys, the images and the deploy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The deploy&lt;/strong&gt; commits each new image digest to an infrastructure repository that ArgoCD applies.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/strong&gt;, the rules our coding agents work by: every change through a pull request, a merge lock so agents don&amp;#39;t keep sending each other&amp;#39;s pull requests back through CI, tests that never skip quietly, and a health check for everything that runs in the background.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;what-it-doesn-39-t-have-yet&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-it-doesn-39-t-have-yet&quot;&gt;What it doesn&amp;#39;t have yet&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To save you looking: there&amp;#39;s no email-and-password or magic-link sign-in (GitHub and GitLab only), no way to delete an account, and no general rate limiting, only limits on the features that need them. The database schema is one initial migration, so you&amp;#39;ll prune it by hand.&lt;/p&gt;
&lt;h2 id=&quot;deleting-our-parts&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#deleting-our-parts&quot;&gt;Deleting our parts&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Most of what&amp;#39;s VisualCI-specific is easy to find: the snapshot, build and diff code in &lt;code&gt;app/src/domain/&lt;/code&gt;, the forge code in &lt;code&gt;app/src/forge/&lt;/code&gt;, the jobs, most of the MCP tools, the renderers and the CLI in &lt;code&gt;crates/&lt;/code&gt;, and the client libraries in &lt;code&gt;clients/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Two places need more care. Organization memberships are kept in step with repository permissions on GitHub and GitLab, so sign-in has to keep the identity linking and lose the repository sync. Project tokens and the credit ledger assume a &amp;quot;project&amp;quot;, which you&amp;#39;ll rename to whatever your product&amp;#39;s main resource is.&lt;/p&gt;
&lt;p&gt;This is the kind of work coding agents are good at. A prompt to start from:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Clone github.com/DocSpring/visualci. Read AGENTS.md and docs/design.md. Keep the Laravel Rust app in &lt;code&gt;app/&lt;/code&gt; and the React app in &lt;code&gt;frontend/&lt;/code&gt;, and delete everything specific to visual testing: snapshots, builds, diffs, baselines, renderers, forge sync, the CLI and the client libraries. Keep sign-in, organizations, invitations, tokens, billing, email, the MCP server and OAuth, live updates, heartbeats, host routing and the test setup. Rename &amp;quot;project&amp;quot; to &amp;quot;workspace&amp;quot;. Prune the initial migration to match. Keep the tests passing as you go, and keep the Apache-2.0 licence notice.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Then build your product on what&amp;#39;s left. If you do, &lt;a href=&quot;mailto:support@visualci.com&quot;&gt;tell us&lt;/a&gt; what you made.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>How we rewrote VisualCI in Laravel Rust</title>
    <link rel="alternate" type="text/html" href="https://visualci.com/blog/laravel-rust-rewrite/"/>
    <id>https://visualci.com/blog/laravel-rust-rewrite/</id>
    <published>2026-12-03T21:51:22+13:00</published>
    <updated>2026-12-03T21:51:22+13:00</updated>
    <author><name>Nathan Broadbent</name></author>
    <summary>VisualCI's server moved from Loco to Laravel Rust two days after Laravel Rust's first beta. How the port went, what fought us (Postgres arrays, composite keys, MCP and the request context), what the reviews and a screenshot run caught, and the fixes we sent upstream.</summary>
    <content type="html">&lt;p&gt;VisualCI&amp;#39;s server now runs on &lt;a href=&quot;https://laravel.com/rust&quot;&gt;Laravel Rust&lt;/a&gt;. Taylor Otwell announced its first beta on 1 December 2026. We decided to move VisualCI to it the next day, and production switched over on 3 December (New Zealand time). Until then, VisualCI ran on &lt;a href=&quot;https://loco.rs&quot;&gt;Loco&lt;/a&gt; and SeaORM.&lt;/p&gt;
&lt;h2 id=&quot;why-laravel-rust-stood-out&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#why-laravel-rust-stood-out&quot;&gt;Why Laravel Rust stood out&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;When I saw DHH rewrite Campfire in Rust, I started to get excited. &lt;a href=&quot;https://github.com/basecamp/once-campfire-rust&quot;&gt;Campfire in Rust&lt;/a&gt; is backwards compatible with the existing Rails app&amp;#39;s database and sessions. So I started to think about what a Rust rewrite of DocSpring might look like, and I was even tempted to start porting some of Campfire&amp;#39;s crates and modules to see how big the job would be.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve also already started rewriting DocSpring&amp;#39;s PDF engine in Rust, to get away from Prawn and some other unmaintained Ruby libraries we were using, and to fix a whole host of bugs to do with layout and formatting, especially in editable form fields.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the background to why the Laravel Rust announcement stood out to me so much. We had also already chosen &lt;a href=&quot;https://loco.rs&quot;&gt;Loco&lt;/a&gt; for our software search engine, &lt;a href=&quot;https://talira.ai&quot;&gt;Talira&lt;/a&gt;, so I already had some history with Rust for web development. When I saw the list of features Laravel Rust was offering, I was very impressed, and I knew I had to try it out for VisualCI.&lt;/p&gt;
&lt;p&gt;I probably won&amp;#39;t rewrite the search engine in Laravel Rust, because it&amp;#39;s already very far along and working well with Loco. But we&amp;#39;ll see.&lt;/p&gt;
&lt;h2 id=&quot;starting-again-before-launch&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#starting-again-before-launch&quot;&gt;Starting again before launch&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;VisualCI hadn&amp;#39;t launched yet, so a rewrite was cheap: nobody had a setup we had to keep working, and we could start again with a fresh database. All of the code is open source, in &lt;a href=&quot;https://github.com/DocSpring/visualci&quot;&gt;DocSpring/visualci&lt;/a&gt;, so you can read the new server in &lt;code&gt;app/&lt;/code&gt; and compare it with the old one in the git history.&lt;/p&gt;
&lt;h2 id=&quot;how-the-port-went&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#how-the-port-went&quot;&gt;How the port went&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We decided on 2 December, after the launch, and built a throwaway spike that night to decide go or no-go (below). It passed, so the port started straight away.&lt;/p&gt;
&lt;p&gt;Two coding-agent sessions did the porting, each on its own pull requests. Over about 24 hours they merged 41 pull requests into &lt;code&gt;app/&lt;/code&gt;, and 52 into main in all. Every pull request was reviewed independently before it merged. The new server is about 34,000 lines of Rust in &lt;code&gt;app/&lt;/code&gt;, counting its source, tests and migrations, with 42 test files.&lt;/p&gt;
&lt;h2 id=&quot;what-we-kept&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-we-kept&quot;&gt;What we kept&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Most of VisualCI isn&amp;#39;t the web server. The fingerprints, the image and text diffing, baseline matching, the CLI and the renderers that draw PDF pages are plain Rust crates (&lt;code&gt;visualci-core&lt;/code&gt;, &lt;code&gt;snapshot-diff&lt;/code&gt;, &lt;code&gt;visualci-cli&lt;/code&gt;, &lt;code&gt;visualci-renderer&lt;/code&gt;). None of them depended on Loco or SeaORM, so they moved over without changes. The framework is only the shell around them: routes, models, queues and commands.&lt;/p&gt;
&lt;p&gt;The old server had about 26,600 lines of Rust, 44 migrations and 33 model files. The models and the tests took most of the time, as we expected, since they were most of the code.&lt;/p&gt;
&lt;h2 id=&quot;checks-before-porting&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#checks-before-porting&quot;&gt;Checks before porting&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Before porting anything, we built a throwaway app with two checks. If either failed, we&amp;#39;d stay on Loco.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;An MCP server under Laravel Rust. VisualCI&amp;#39;s coding-agent interface is an MCP server built on &lt;a href=&quot;https://github.com/modelcontextprotocol/rust-sdk&quot;&gt;rmcp&lt;/a&gt;, signed in with OAuth. The spike mounted rmcp&amp;#39;s Streamable HTTP service at &lt;code&gt;/mcp&lt;/code&gt;, behind the OAuth guard from our own &lt;a href=&quot;https://crates.io/crates/oauth-provider-laravel&quot;&gt;oauth-provider-laravel&lt;/a&gt; crate. A client registered, signed in, got a token and called the tools.&lt;/li&gt;
&lt;li&gt;The data layer: migrations for a slice of the new schema, a model for each table, a model over a view, and a query that reads unchanged snapshots from an earlier build.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Both passed, along with a queued job and a stream of server-sent events. Laravel Rust&amp;#39;s bundled docs answered every question we had during the spike.&lt;/p&gt;
&lt;p&gt;The spike also gave us a first look at build times: on our build machine, a clean release build of the spike, which was only a slice of the app, took 77 seconds, against 125 seconds for the whole Loco server.&lt;/p&gt;
&lt;p&gt;The finished server builds in about the same time as the old one. In CI&amp;#39;s image job, with the shared compile cache warm, the dependencies took 28 seconds and the app crate 1 minute 58 seconds, about 2 minutes 26 seconds in all. The Loco server&amp;#39;s release build step in the same job took 2 minutes 18 seconds. The binary is bigger: 59.2 MB stripped, against 41.8 MB for Loco, though the new server also does more than the old one did.&lt;/p&gt;
&lt;h2 id=&quot;the-old-server-39-s-answers-were-the-contract&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#the-old-server-39-s-answers-were-the-contract&quot;&gt;The old server&amp;#39;s answers were the contract&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Every MCP tool and REST endpoint had to answer exactly as before, because the CLI, the GitHub Action and coding agents already call them. The old server&amp;#39;s tests recorded the JSON it returned for each request. The new server&amp;#39;s tests replay the same requests and check all 150 recorded answers, field by field.&lt;/p&gt;
&lt;p&gt;That made the port mostly mechanical. When an answer changed, the test showed which field and how, and we fixed the new code rather than the recording.&lt;/p&gt;
&lt;h2 id=&quot;what-fought-the-framework&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-fought-the-framework&quot;&gt;What fought the framework&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id=&quot;postgres-arrays&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#postgres-arrays&quot;&gt;Postgres arrays&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;A CI build stores its parent commits, and finding the nearest earlier build means a query like &lt;code&gt;commit_sha = ANY($1)&lt;/code&gt;. Laravel Rust 0.1.4 couldn&amp;#39;t read a &lt;code&gt;text[]&lt;/code&gt; column into a &lt;code&gt;Vec&amp;lt;String&amp;gt;&lt;/code&gt;, and a bound &lt;code&gt;Vec&lt;/code&gt; wasn&amp;#39;t sent as an array, so Postgres answered &amp;quot;op ANY/ALL (array) requires array on right side&amp;quot;.&lt;/p&gt;
&lt;p&gt;For now, the parent commits are a &lt;code&gt;jsonb&lt;/code&gt; column, and the lookup spreads the list into &lt;code&gt;IN (...)&lt;/code&gt; with one parameter per commit. We sent &lt;a href=&quot;https://github.com/laravel/rust-framework/pull/527&quot;&gt;laravel/rust-framework#527&lt;/a&gt;, which adds &lt;code&gt;db::Array&amp;lt;T&amp;gt;&lt;/code&gt;: it binds as a native Postgres array and reads one back, in raw SQL and as a model column.&lt;/p&gt;
&lt;h3 id=&quot;composite-primary-keys&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#composite-primary-keys&quot;&gt;Composite primary keys&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The new storage design records each unchanged group of snapshots once per build, in a &lt;code&gt;build_groups&lt;/code&gt; table keyed by build and group. Laravel Rust models can&amp;#39;t have a composite primary key yet (&lt;a href=&quot;https://github.com/laravel/rust-framework/issues/499&quot;&gt;#499&lt;/a&gt;). We put the model&amp;#39;s key on &lt;code&gt;build_id&lt;/code&gt; and only ever query the table, never find or update a row by its key.&lt;/p&gt;
&lt;h3 id=&quot;mcp-tools-and-the-request-context&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#mcp-tools-and-the-request-context&quot;&gt;MCP tools and the request context&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Laravel Rust keeps the current app, database connection and config in a task-local context. rmcp runs each tool call on a task of its own, so inside a tool, a query, a model or &lt;code&gt;config()&lt;/code&gt; panicked: the context wasn&amp;#39;t there.&lt;/p&gt;
&lt;p&gt;Our handler puts the request&amp;#39;s context into the request it forwards to rmcp, and each tool runs its database work inside that context. It&amp;#39;s one helper, but every tool has to remember to use it. The fix belongs in the framework, so we sent &lt;a href=&quot;https://github.com/laravel/rust-framework/pull/520&quot;&gt;laravel/rust-framework#520&lt;/a&gt;, which adds &lt;code&gt;routing::service&lt;/code&gt;: a route served by any Tower service, called inside the request&amp;#39;s context.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-rust&quot;&gt;route.middleware(Authenticate).group(|route| {
    route.any(&amp;quot;/mcp&amp;quot;, service(mcp::server()));
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Both pull requests are still open. Until they merge, VisualCI uses the workarounds above.&lt;/p&gt;
&lt;h3 id=&quot;live-updates-without-laravel-cloud&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#live-updates-without-laravel-cloud&quot;&gt;Live updates without Laravel Cloud&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The review page and the CLI&amp;#39;s &lt;code&gt;--wait&lt;/code&gt; follow a build as it&amp;#39;s processed. Laravel Rust&amp;#39;s bundled WebSocket server, Reverb, runs in a single process and is meant for local development. In production its docs point to managed Reverb on Laravel Cloud. VisualCI runs on our own Kubernetes cluster, so live updates will use the framework&amp;#39;s server-sent events, with Postgres &lt;code&gt;LISTEN&lt;/code&gt;/&lt;code&gt;NOTIFY&lt;/code&gt; to reach every replica. They didn&amp;#39;t make the cutover, and they&amp;#39;re next.&lt;/p&gt;
&lt;h2 id=&quot;what-the-tests-didn-39-t-catch&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-the-tests-didn-39-t-catch&quot;&gt;What the tests didn&amp;#39;t catch&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The independent reviews caught real problems before anything went live: an open redirect after sign-in, repositories matched by their URL rather than their id, and the same email sent twice.&lt;/p&gt;
&lt;p&gt;We also pointed VisualCI&amp;#39;s own Playwright screenshot suite at the new app and reviewed the screenshots in VisualCI against the old server&amp;#39;s baselines. That run found two things the unit tests had missed. The web app&amp;#39;s JSON endpoints were missing entirely. And signing in failed with the database session driver, because a &lt;code&gt;bigint&lt;/code&gt; column was holding a UUID. The unit tests used the memory session driver, so they never touched that column.&lt;/p&gt;
&lt;h2 id=&quot;before-the-switch&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#before-the-switch&quot;&gt;Before the switch&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Just before the cutover, we squashed every migration into one initial schema, and checked it byte for byte against the old schema with &lt;code&gt;pg_dump&lt;/code&gt;. We hadn&amp;#39;t launched, so we kept no backwards compatibility: the production database was wiped and started fresh.&lt;/p&gt;
&lt;p&gt;Two agents merging into one repository, with GitHub requiring each branch to be up to date with main, kept sending each other&amp;#39;s green pull requests back through CI. We added a merge lock: an agent holds it from its final rebase until its merge, so only one pull request at a time goes through that last CI run.&lt;/p&gt;
&lt;h2 id=&quot;what-broke-on-the-day&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-broke-on-the-day&quot;&gt;What broke on the day&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The bugs left at the end of a rewrite tend to be small ones, where the new code meets the old setup. These are the ones we hit on cutover day:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Signing in sent you back to the homepage. The app looked for its session cookie by the old server&amp;#39;s name, and Laravel Rust names it differently.&lt;/li&gt;
&lt;li&gt;Signing out showed the marketing homepage inside the app, for the same reason.&lt;/li&gt;
&lt;li&gt;Signing in could land you on a raw JSON response, because the framework had remembered an API call as the page to return you to.&lt;/li&gt;
&lt;li&gt;The MCP server refused every request. A guard in the MCP library accepted only the app&amp;#39;s own hostname, not the MCP host.&lt;/li&gt;
&lt;li&gt;GitHub sign-in, Stripe and email were unset at first. The deploy config named the secrets&amp;#39; keys wrongly, and marking them optional hid the mistake.&lt;/li&gt;
&lt;li&gt;Sign-ups were open for a short time, because the old waitlist setting wasn&amp;#39;t carried into the new config. No one got in.&lt;/li&gt;
&lt;li&gt;Processing stalled and uploads timed out: processing held a database lock on stored files while it did slow work.&lt;/li&gt;
&lt;li&gt;A deploy step still pointed at the old server&amp;#39;s image name.&lt;/li&gt;
&lt;li&gt;Two behaviours we had copied faithfully from the old server turned out wrong in the new setup: the first build on any branch was approved automatically, and approvals on one branch could leak to others.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each piece had passed its own tests, but the tests ran in a simpler setup than production: one host instead of four, sessions in memory, a fake GitHub sign-in. The parity run&amp;#39;s two finds before the switch had the same cause.&lt;/p&gt;
&lt;p&gt;So we&amp;#39;re adding an end-to-end journey suite to CI that runs on a production-like setup, with all four hosts, database sessions and a GitHub stand-in. It walks through signing in, opening the app, signing out, MCP and onboarding, and every step&amp;#39;s screenshot is reviewed in VisualCI. Each bug above is written first as a journey that fails without its fix.&lt;/p&gt;
&lt;h2 id=&quot;what-we-published&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-we-published&quot;&gt;What we published&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://crates.io/crates/oauth-provider-laravel&quot;&gt;oauth-provider-laravel&lt;/a&gt; is an OAuth 2.1 server for MCP clients, as a Laravel Rust package, with PKCE, dynamic client registration, client ID metadata documents and token revocation. Version 0.1.1 added &lt;code&gt;OAUTH_AUTHORIZATION_ENDPOINT&lt;/code&gt;, because VisualCI&amp;#39;s issuer is the MCP host while its consent page is on the web app&amp;#39;s host, where people are signed in.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/DocSpring/snapshot-testing-laravel-rs&quot;&gt;snapshot-testing-laravel&lt;/a&gt; takes browser screenshots and HTML, JSON and text snapshots in &lt;code&gt;#[laravel::test]&lt;/code&gt;, with optional review in VisualCI.&lt;/li&gt;
&lt;li&gt;We sent two pull requests to the framework: &lt;code&gt;routing::service&lt;/code&gt; (&lt;a href=&quot;https://github.com/laravel/rust-framework/pull/520&quot;&gt;#520&lt;/a&gt;) and &lt;code&gt;db::Array&lt;/code&gt; for Postgres arrays (&lt;a href=&quot;https://github.com/laravel/rust-framework/pull/527&quot;&gt;#527&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;what-worked-without-fuss&quot;&gt;&lt;a class=&quot;docs-anchor&quot; href=&quot;#what-worked-without-fuss&quot;&gt;What worked without fuss&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In the spike, these worked the first time: raw-SQL migrations for a view, partial indexes and lz4 compression, a model over that view, JSON columns, jobs that hold models, the database queue with &lt;code&gt;queue:work&lt;/code&gt;, and server-sent events.&lt;/p&gt;
&lt;p&gt;If you build on Laravel Rust and want visual or snapshot tests for your app, that&amp;#39;s what VisualCI does. Sign-ups are still closed while we finish the new onboarding, so signing in now puts you on the waitlist. Once they open, public open source projects get 1,000,000 credits a month free, and the &lt;a href=&quot;https://visualci.com/docs/quick-start/&quot;&gt;quick start&lt;/a&gt; shows the setup.&lt;/p&gt;
</content>
  </entry>
</feed>
