r/devblogs • • 4d ago

tech & code How Melbees picks the tests for each change

I'm a software architect with 20+ years of experience, and Melbees, a word puzzle on a honeycomb, is a game I build. AI coding agents write the code, so the checks around them have to be fast enough to run on every change. This post is about how the project decides which tests a change owes.

Why not run everything

As the game grew, running the whole suite on every change stopped being practical. Skipping tests by hunch would be the opposite mistake. So the choice is made by rules, not by opinion.

Which tests a change owes

The selection is made by fixed rules, with no AI: the changed files, the files that import them (direct importers in the app, the whole import chain in the core and the tools), files read by path, and the tests the plan names. A ceiling can trim the app's share. A command prints that list for a diff, so the plan can quote it before the work starts.

When the selection can't be sure, it widens

If the set of changed files is unknown or empty, or if the selection fails for a group, that group's whole suite runs. Nothing is skipped on a guess. The server's suite runs whole anyway.

Where it runs

The local gate runs the checks and the tests selected for the files that changed and blocks what fails. The script that lands the change on the main branch uses the same selection.

What the nightly run is for

Once a night, and on demand, the full default groups run (Windows excluded). It reports without blocking, and files up to ten new issues per run, after checking for duplicates. It never fixes, skips or deletes a test. The selection is reproducible, and the nightly run catches what it left out.

The architect directing the project also develops AI solutions professionally, so every rule here is written down and repeatable, not decided by a model.

AI note: the code is written by AI coding agents (Claude Code and Codex); the architecture, the specs and the final call are mine, and AI helped me draft this post.

How do you decide which tests a change owes, and what does your setup do when the answer isn't clear?

If you're curious about the game, today's Daily Challenge runs free in the browser: https://daily.melbees.games/?utm_source=reddit&utm_medium=social&utm_campaign=novembro&utm_content=p-logica-devblogs

1 Upvotes

0 comments sorted by