Building technical confidence to release xStatic

How one contributor's issue and pull request pushed me to rebuild xStatic's tests, CI, and release pipeline for agents across Umbraco 17, 18, and 19.

  • 5 min read
  • Day 2 of 24

One issue is all it takes

xStatic is my free, open-source static site generator for Umbraco. After 5 years, you start to wonder if upgrading, testing, and releasing new versions is worth the effort. Dua Lipa once sang "One kiss is all it takes"; well, for me, I just needed an issue.

In mid-November, Heather raised a GitHub issue and a PR porting one of her earlier pull requests to xStatic's version 17 branch, adding a setting to exclude chosen document types from generation. The fact that someone was still using the product enough to contribute their improvements to the rest of the community was all the motivation I needed to push on and release the latest versions.

More importantly, if someone is putting their time into improving xStatic, I need to be sure it is tested. Manually doing thorough QA across three different versions is very time-consuming though, so it was time to make some improvements.

Don't start now: fixing the process before diving into the release

Resisting the urge to jump straight into a release, and building a process that works for contributors and agents alike.

I had actually started an Umbraco 18 branch back on 2 October, and then left it sitting for over six weeks. Until November, every release followed the same manual routine on my own machine: write the change, click through the backoffice to check it, and tag a release. With Umbraco now running a long-term support release (17) alongside newer majors (18 and 19), every fix lands three times, and manually checking all three was the main reason I kept putting releases off.

When Heather's PR landed, it would have been easy to dive headfirst into merging it and pushing out the overdue builds. Instead, I stepped back to think about the process itself. If you build a testing and release process solid enough to take contributions from other people safely, it does double duty: it is the exact same foundation that makes agent-first development much more effective too. When the tests and CI are the safety net instead of my memory, coding agents can do the heavy lifting across all three versions without me worrying about what they might break.

  1. v17.2.0 (17 Nov)

    13

    Playwright tests only; zero C# or front-end unit tests.

  2. v18.0.0 (23 Nov)

    388

    278 C#, 74 Vitest, and 36 Playwright tests six days later.

  3. v18.2.0 (27 Nov)

    546

    362 C#, 141 Vitest, and 43 Playwright tests across the repo.

New rules: tests, checks, and release gates

If agents are going to maintain three majors, the safety net has to live in the repo, not in my head.

  • Tests on every layer

    xUnit C# unit tests, NUnit integration tests against SQLite, Vitest for the backoffice UI, and Playwright against a real Umbraco instance spun up in GitHub Actions.

  • Gated PRs and security

    Branch protection on master and lts/17 gates pull requests on linting, builds, and unit tests, with CodeQL scanning every PR and OpenSSF Scorecard rating the repo's security posture.

  • One release pipeline

    Seven old per-package publish workflows became one release.yml that runs the test and Playwright suites, packs all nine packages under one version, and pushes to NuGet via Trusted Publishing.

Clear boundaries for agents#

Writing unit tests is cheap now that an agent does it, and the same goes for GitHub workflows. The repo now carries an AGENTS.md that sets out the build commands, definition of done, and a strict one-way branch flow: changes land on master (Umbraco 18) first, fixes get cherry-picked down to lts/17, and master merges up into feature/19.

Agents prepare branches, release notes, and checks, and every PR publishes preview packages to GitHub Packages so I can try them in a real site if needed. Tagging a release and pushing to NuGet stays my decision alone:

RELEASING.md
markdown
Releases are the maintainer's decision. Agents prepare branches, notes and checks, but never create tags or
releases, or push to NuGet.

All 9 packages (`xStatic`, `xStatic.Core`, `xStatic.Client`, `xStatic.Netlify`, `xStatic.Git`, `xStatic.Ftp`,
`xStatic.Cloudflare`, `xStatic.AI`, `xStatic.RemoteOperations`) are released together with one version, taken from the tag.

Training season: finding what didn't work and making it better

Every bug the tests caught, and every snag an agent hit, became a fix and a permanent rule.

Fixing bugs that had been hiding in plain sight#

As soon as the agents started writing real tests against the deployers and generators, bugs fell out that manual testing had missed for ages. Running the FTP deployer against a real FTP server caught that it was reporting success even when files had not been uploaded, and was failing to update files that already existed on the server. Fixing both and keeping real-server FTP tests in the suite means they stay fixed.

Unit tests on the core package found two more quiet ones: DoNotDeletePaths was not actually being read from appsettings, and pages that failed to download were being stored as empty files instead of reported as errors.

It also works the other way round when a bug is reported, as with issue #146. I can now add full unit and end-to-end tests to reproduce the error before touching the implementation, checking that what was reported actually gets fixed and will not regress.

Turning agent snags into repo rules#

It was not just xStatic that got better; the instructions for the agents did too. Running npm run generate in the backoffice client deletes and rewrites the API client folder in a layout the existing code cannot import, breaking the build. Rather than hoping the next session remembers, that rule now sits in AGENTS.md under "Do not edit" alongside the exact test commands and branch rules.

Levitating: gliding through changes across three majors

With the automation in place, shipping feels lighter for me and for anyone contributing.

What a change looks like now#

There is no formal ticket process as such. I normally start with a grilling session with a model to scope the change, where it asks me questions until we agree on what is being built. Then I set it off, with other agents checking the work as it goes, and finish with a lighter-touch code review and a quick manual check before releasing. I use Claude Opus 5.5 and Gemini 4 Neon for this, and for this kind of work they are pretty much interchangeable.

That flow is how xStatic 17.3.0, 18.0.0, and 19.0.0-beta all shipped on 23 November, and how 17.5.0, 18.1.0, 18.2.0, and later 19 betas followed without drama. Before, I was fearful that I was going to be breaking things and only finding out from somebody else. Now I can keep pushing out changes with confidence, and anyone opening a pull request gets the same CI feedback without needing to know where the bodies are buried.

All it takes is a small amount of interest to make a big change, so thank you, Heather.

If you use an open-source product, take inspiration from people like Heather and raise that issue or pull request, no matter how small. You aren't just fixing one problem; you're giving the maintainer the motivation to keep the project going, and you could be the catalyst for a much bigger change.

Install xStatic on NuGetSee the code on GitHub