An Android test repair gave us a reason to look more carefully at a green build. The change was confined to the instrumentation test source set. It added migration registration in database test setup and marked one test that the change author described as timing-sensitive to be ignored. The pull request listed successful checks and explicitly left device execution unverified. That distinction matters when the question is whether the repaired tests work on a device. A build result can be useful even while that question remains open.

Consider what the test setup asks of the database. A fixture that starts from clean state can create a database directly at the version the test expects. A fixture that opens data from an earlier version may need the relevant migrations registered before it can reach the assertion the author cares about. Those are possible starting conditions, and the same test source can behave differently under them. Here the change registered migrations in the test setup. That tells us what configuration the tests now request. The pull request did not establish how the revised fixtures behaved with clean or existing data on a device, or that any production migration was repaired.

Compilation would still be a meaningful first check. It can tell us whether the test source and the migration registration compile together. A compiled test can still encounter a database state that its setup does not handle when it opens the database at runtime. To make a claim about upgrade behavior, a later run would need an explicit starting version and an assertion about the state after opening or upgrading the database. A run from clean state would answer a different question. These are examples of how to design a follow-up. They are not measurements from this change.

The ignored test illustrates another limit. The author described it as sensitive to device timing, and the change put a reason on the ignore annotation. That annotation removes the test's assertion from the evidence a later run can supply while the ignore is in effect. A green result for the remaining tests would leave the timing question open. If the team wanted to make a performance claim, it would need measurements taken under specified conditions and a threshold that makes sense for those conditions. We did not independently verify any substitute performance coverage.

The local and hosted records answer different questions too. The pull request author reported successful local Android test compilation, JVM unit tests, and static checks. We did not independently rerun those tasks. Separately, the hosted validation job passed for the pull request head associated with that run. That is an observed result for the named job. It does not show that the instrumentation suite ran on a device. It also does not independently confirm the locally reported instrumentation compilation.

If I were turning this change into a device verification receipt, I would record the revision and the test selection first. Then I would record the Android environment, the database state supplied to the fixture, and whether the run was meant to exercise a clean start or an upgrade. For a migration claim I would want to know which version the database started at and what the assertion checked afterwards. For suite coverage I would record which tests ran and which were ignored, so someone reading the receipt could understand what a passing count includes. A timing claim would need its own observations and would remain separate from a functional pass.

That leaves three useful pieces of evidence with different scopes. The diff shows that the test setup changed. The author report records local build and JVM checks, and the hosted result records a pass for a named validation job. An instrumentation run would add evidence of runtime behavior for the device and starting state actually tested. Keeping those records distinct helps a reviewer decide what can be said now and what still needs a run. In this case we can describe the fixture changes and the passing hosted job. The post-change device result remains unverified.

← All engineering articles