4 min read

Assume it doesn’t work: how we bug bash a feature built by four teams

Four parts of our new access control were done. We had the roles API, permission checks behind every endpoint and new screens with the migration flow. We also had a new sync for customers whose groups come from their identity provider. Each part had tests. None of them had ever run together.

Assume a project like that doesn’t work. That’s not because anyone did bad work. Nobody has looked at the seams yet. So we planned a series of bug bashes. The format ended up mattering as much as the bashing itself.

What didn’t work

Our first try was a half-hour slot where two time zones overlapped. That was too short for anything but a demo. A two-hour UI walkthrough was better, though still nowhere near exhaustive. Testing everything at once meant we tested nothing deeply.

A small hourglass labelled 30 min next to a large grid of feature blocks labelled everything at once

What did

Make the silent failures loud

The best trick came up while we planned the permission bash.

The new permission checks were supposed to read from a new system. During the transition, they used the old database as a fallback. A fallback is great for safety and terrible for testing. If a new check quietly falls back to the old data, everything still looks fine.

So we planned to delete the old permissions on the test environment. Any check still leaning on them would fail with a “permission denied” instead of quietly succeeding. That made a silent problem loud.

Two more rules came out of the same thinking:

A fallback is great for safety and terrible for testing.

What the full bash found

By the full integration session, about 35 pull requests had merged since the day before. We seeded test environments with a realistic organization. We invited test users with plus-addressed emails. Opening their invite links in private windows let us act as them. We kept testing free-for-all instead of splitting it by area. The seams are exactly where nobody’s area is.

A large solid group with many user heads, and a robot service account outside it with a dashed line reaching in

Some of what came out of it:

Not everything was a bug. One “missing access” turned out to be a user who was never added to the right group. That’s still a useful finding. If the testers get it wrong, customers will too.

If you want to try it

A person walks toward a checkpoint block labelled bash on a solid ground line, while a dashed grey detour skips over it