Artificial Intelligence
Reducing whitaker.design's CI Usage by 34%
An audit of the portfolio's validation pipeline, the problems it uncovered, and the results of targeted reliability and performance improvements.
I've been spending a lot of time developing my portfolio lately. New case studies, photography collections, Notes articles, and refinements to the site itself. Much of that work happens through Claude Code, with a development process I've been building around my own AI operating model.
As the site grew, something started getting in the way. Every change I publish goes through CI, short for continuous integration: automated checks that run on GitHub before anything goes live. A small content change could take 15 minutes or more to get through them, and occasionally a test for an unrelated part of the site would fail. I'd be publishing an article, and suddenly we were investigating a Photography test.
The site wasn't broken. The development process was becoming unnecessarily expensive and unpredictable, so I decided to examine the system behind the work.
Finding the actual problems
I started with an audit of the repository, test suite, and CI history, aiming for more reliable, efficient validation without compromising coverage, accessibility, or visual quality.
The history gave us a baseline. Only 66% of runs passed on their first attempt. A typical run took about 15.7 minutes and used approximately 48 billed GitHub Actions minutes across parallel jobs.
The original CI baseline
- 66%First-attempt pass rate
- 15.7 minMedian elapsed validation
- 48 minTypical billed Actions minutes per run
On mobile, some Photography rows didn't reserve their height until their images loaded, so the page shifted and tests failed intermittently. Other tests interacted with elements before animations, loading, or focus handling had settled. An embedded case-study frame briefly collapsed while it rendered. Another test failed because the image viewer was waiting behind a queue of photographs being processed on a slow CI machine.
These weren't all the same problem. Some exposed genuine application behavior worth correcting. Others were tests making unreliable timing assumptions. That distinction mattered.
Fixing the causes
I worked through the findings with Claude Code, reproducing failures against unchanged code, reading browser traces, and repeating tests under constrained conditions.
We made a series of focused corrections:
- Reserved Photography row dimensions before images load.
- Updated tests to wait for observable UI readiness.
- Prevented embedded frames from collapsing during rendering.
- Corrected responsive instructions and accessible naming.
- Made a gallery test wait for the image viewer to finish returning focus.
- Added cancellation of superseded PR validation runs.
The largest performance improvement came from image processing. The browser tests run in three parallel groups, called shards, and each started with an empty cache of optimized images, so unchanged photographs were reprocessed every run.
We introduced a cache, a saved copy of that work, keyed to the media and relevant configuration, with a separate entry for each shard. When an image changes, the cache is invalidated; otherwise, later runs reuse the work.
Performance improvements without additional infrastructure
- No additional hosted services
- No new caching dependency
- Separate caches for each CI shard
- Source-image changes invalidate cached images
- Original image quality preserved
- Superseded PR runs are cancelled
The results
Comparing a run with an empty cache to one with a restored cache, validation dropped from 19 minutes to 12 and billed GitHub Actions usage from 53 minutes to 35, a 34% reduction.
Cold versus warm CI performance
- Elapsed validationCold run: 19Warm run: 12(minutes)37% faster
- Billed Actions usageCold run: 53Warm run: 35(minutes)34% reduction
Against the earlier baseline, that's approximately 27% less billed time per warm run. A run that follows a change to the media or the relevant configuration starts cold again, at roughly the cost it had before.
The combined changes passed their first GitHub validation attempt, and production passed the targeted checks. Those are meaningful results, but the warm-cache comparison is a small sample, and one or two clean runs don't establish long-term reliability. I'll keep tracking first-attempt success as ordinary development resumes.
What comes next
This work is part of a larger effort to make my development process more intentional.
I'm continuing to mature MWD AIOM, the human-governed AI-assisted workflow I use to coordinate planning, implementation, and validation.
I'm also developing MWDS, a multi-brand design system that will eventually provide shared tokens and components for whitaker.design and Chicago Mountain Runners, with its own questions about reuse, design-to-code consistency, and maintenance costs.
The goal isn't to make a personal portfolio operate like an enterprise application. It's to apply the right amount of engineering discipline to the problems actually in front of me.
There's a practical connection to how I've approached design systems throughout my career. I want the tools, components, and processes behind the experience to be as considered as the experience itself.
Sometimes that means designing something new. Sometimes it means stopping to understand why the work has become harder than it needs to be.