Testing in production: running a shop without a test system
The shop takes orders every day and has no test system, so every change is tested in production. These are the rules we use so changes can still go live.
Working without a test system is acceptable for a limited time if the changes are restricted to shape and layout, every ticket touches one page, releases follow a fixed rhythm and acceptance happens on the live shop right after the change. It is not enough when prices, checks or order logic have to change. In this mandate those changes wait for the new shop.
The situation
The shop has no test system. Every change goes straight to the live shop, and a single external developer makes all of them. A new shop is being built to replace the old one, so a test system for the old shop was not an option.
I work in this mandate as the product owner for a few days a month. The old shop still had to get better while the new one was being built. So the question was not whether working without a test system is good practice. The question was which changes we can still make safely, and how I accept a ticket when the only place to test is the live shop.
What must not change
At the end of September we agreed on the rules for the old shop in one of our regular meetings. No risky changes to the logic. Tickets for the developer cover only shape and layout. The work goes in waves, with design first. Changes go live page by page, and there is never a mixed state of old and new. Urgent problems go by direct message.
We also wrote a not-to-do list. It records what nobody touches in the old shop. For the first wave this meant that shapes, structure and texts may change. Options, prices, checks and rules stay as they are.
Everything that needs a change in the logic waits for the new shop.
How a ticket keeps a change small
The tickets are written so that a change cannot reach further than intended.
- One ticket touches one page.
- The styles in the ticket apply only to that page.
- The markup, the scripts and the global stylesheet are not changed.
Where I could, I tried a change before it became a ticket. One snippet for the checkout I first ran in the developer tools of my browser, on the live checkout. That only changes what I see on my own screen. When it did what it should, I handed it to the developer.
When a change goes live
There is a fixed release rule in this mandate. It was introduced after an earlier incident in the live shop.
- 1In the morningReleases happen in the morning, from Monday to Thursday.
- 2In stagesA change is rolled out in stages.
- 3The team knowsThe team is told before a release goes out.
- 4MonitoringThe shop is watched after the release.
- 5A way backA release can be rolled back.
Changes go live page by page. Every page that goes live also serves as a test with real customers.
Acceptance on the live shop
There is no other place to test, so I accept a ticket on the live shop, right after the change.
On one day in November three tickets went into review shortly before noon. Less than twenty minutes later I tested them on the live shop with an automated browser test in eight viewport widths. The findings went back to the developer as one comment per ticket.
On the same day I ran an end-to-end test through the shop, 20 runs in total. It found that the shop accepted orders for product combinations that cannot be built. A layout ticket does not fix that. It belongs to the checks, and the checks are on the list of things we do not touch in the old shop.
These rules limit the risk of a change. They do not make changes to prices, checks or order logic safe.
Where this stops working
Some teams skip a staging system on purpose and test in production, with feature flags and a gradual rollout. That assumes an engineering team that has both, plus monitoring. An old shop with one developer does not have that, so the safety has to come from what is allowed to change.
The usual advice is to build a test system first. That was not available here, because the old shop is being replaced.
I have no figures on how often a live change had to be rolled back, or on errors before and after the rules. So I cannot say how much safer the shop became.
The safety has to come from what is allowed to change.
What I would do differently
- Agree on the not-to-do list before writing tickets. I had already written tickets for logic changes, and they had to move to a later wave.
I work as a product owner for companies that build digital products and online shops, for some months or for some days a month. The entries in this diary come from that work.
More entries in the diaryFractional Product Owner
A senior product owner in your team for 4, 6 or 8 days a month.