Blog · What the tests missed

Removing the app deleted its key

Every build said version 1.0.0, so an update forced a removal and took the stored key with it.

In this seriesShow all 4 partsHide the list
  1. 01Every test passed. I'd never used my real voice
  2. 02It ran at 200 frames on my PC and 15 on a tester's
  3. 03Removing the app deleted its key
  4. 04Test and real data shared one ID

I built a small plugin for my e-ink tablet: circle something on the page, ask a question, and the answer appears in the note. It needs a key to reach the AI service. On November 5, installing an update wiped that key.

The right move, on the wrong day

Earlier that night, I'd moved the key somewhere safer. It had been sitting in a shared folder on the tablet, and it went into the plugin's own private folder. Good move. But a plugin's private folder goes away when the plugin does.

The update wouldn't go on over the old version. It wanted the old one removed first. So I removed it, and the key went with it. My AI coding assistant re-sent the key and we moved on, but the question stayed: why did an update need a removal at all?

Every build said 1.0.0

The build read its version number from a settings file nobody had been updating. I'd been installing 1.0.1, 1.0.2, and 1.0.3 by name. Inside, each one called itself 1.0.0.

The number now goes up with every build, so an update can install over the old version instead of replacing it.

Why the tests didn't see it

The tests checked what the plugin does once it's installed. None of them looked at what an update reports about itself, or at what's still there afterward. And an update is the moment when everything a person has set up is at risk.

What I'd test next time

The update, not only the fresh install. Install the old version, set it up the way a real person would, update it, and check what's still there: keys, settings, and saved work. And when I move a secret somewhere safer, I'll ask what could now delete it.

Have something in mind?

Tell me what you're trying to do. I reply within two business days.

Get in touch