● mike@hackanooga ~/posta work in progress. just like the rest of us.
← WRITING

Getting to the next error is not a delivery plan

Series: The Last Mile of Platform Engineering

I spend a lot of time helping vendors get their applications running on our platform. One of the most frustrating parts of that work is getting to the next error. We investigate a failure, work out what needs to change, and try again. Sometimes that means waiting for a revised package. Sometimes I can make the change myself. Either way, the next attempt tells us what was hiding behind the problem we just fixed.

Each fix moves us forward, but it can be surprisingly difficult to answer a reasonable question: how much work is left?

Everything deployed successfully

Here is a real example of how this happens. We deploy a vendor’s package, everything in the chart comes up, and the pods report healthy. Based on the deployment itself, things look good.

A few days later, one of the vendor’s developers exercises more of the application and reports that an endpoint is throwing errors. We investigate and find that one service is trying to reach another through a hardcoded service name. The required service has no deployment manifest in the Helm chart, so it was never created.

We add the missing service and update the environment variables so the application can reach it. Now the request gets further, and we discover that the newly reachable service also depends on blob storage or a queue that hasn’t been wired up properly. We couldn’t see that failure earlier because the request never reached the code that used the dependency.

The first problem concealed the second. Fixing the connection gave us access to the next failure, along with another round of investigation and changes.

There may be more dependencies behind that one. At this point, we have evidence that we are making progress, but a limited understanding of how much remains.

The delay is part of the problem

A missing manifest is a packaging defect. An unwired dependency needs to be configured or integrated. Those are concrete problems we can work on. What makes the process expensive is how long it takes to discover each one.

In this example, several days passed between the deployment and someone exercising the failing endpoint. The deployment had looked successful during that time. Once the failure surfaced, we had to recover the context, trace the request, identify the missing component, and work through the next change. If a vendor revision is required, that adds another handoff before we can learn anything else.

Even a small technical fix can carry a long calendar delay. Repeat that cycle across several dependencies and the delivery estimate keeps moving, because the remaining requirements are being discovered through support requests.

This is why shortening the feedback loop matters so much. The same failure found during initial validation is easier to act on while the people, configuration, and deployment context are still available.

A healthy pod answers a limited question

Health checks are useful evidence about the conditions they actually check. Depending on how the application implements them, they may establish that a process is running, that it can accept traffic, or that selected dependencies are reachable. We need to understand that scope before using them as evidence of application readiness.

In this case, the healthy pods did not establish that the endpoint worked or that all the components required by its workflow had been packaged. Kubernetes could start the resources we supplied. It had no basis for telling us that the application needed something the chart never created.

That distinction needs to be visible in how we report progress. “The package deployed and its health checks passed” is a useful result. “The application works on the platform” requires evidence from the workflows we have agreed to support.

Ship a way to exercise the application

I think we should be pushing vendors to include end-to-end tests with their application packages. The vendor understands which services participate in a workflow and what successful behavior looks like. That knowledge needs to become something the receiving team can run, rather than something we wait for a developer to demonstrate later.

For the example above, a test that called the affected endpoint and checked the expected result could have exposed the missing service during initial validation. After that was corrected, the same test could have reached the storage or queue failure immediately. We might still have needed several attempts to complete the integration, but those attempts could have happened in a much tighter loop.

A useful starting point is a small set of tests for important workflows. Each test should explain what it exercises, which dependencies and permissions it requires, how to run it in the target environment, and how to recognize success. It also needs to account for test data and cleanup so the receiving team can repeat it without guessing what state the previous run left behind.

The tests need to exercise the deployed application against the dependencies that matter to the integration. A test that replaces the queue with a mock may help validate application logic, but it leaves the actual queue connection untested. Similarly, a test runner that assumes access to the vendor’s development environment may introduce another integration problem before it can answer the original question.

A passing test establishes the behavior it covers under the conditions in which it ran. We should keep that scope explicit and expand coverage as we learn where integrations fail.

Give each deployment a question

There will still be situations where deploying is the fastest way to learn something. We may need to establish whether a client consumes the supplied trust configuration, whether a worker can access an uploaded asset, or whether a request completes through the intended authentication path.

You don’t need to settle every detail before deploying anything. A small deployment may be the best way to answer a question, provided you know which question it is meant to answer. Otherwise, each failed rollout becomes the mechanism for discovering the next requirement, and the delivery plan keeps changing underneath you.

Before an exploratory deployment, name the question and the evidence that would answer it. Afterward, record what the result established and what remains unknown. This gives the next attempt a purpose and helps separate a useful investigation from a broad claim of readiness.

Repeatable workflow tests make that approach easier. They let us return to the same question after a change, check the result, and keep the feedback close to the work that produced it.

Make the next failure cheaper to find

There is a shared responsibility here. Vendors need to provide a complete package, make dependencies explicit, and supply a practical way to validate important behavior. Platform teams need to make their supported interfaces and constraints clear and provide a way to run that validation in the target environment. The useful outcome is a test both sides can use to investigate the same behavior.

Every failure we discover is also an opportunity to improve that process. Once the missing service and its dependencies are understood, the package and its validation should carry that knowledge forward. The next deployment should exercise the path that previously required a developer to discover the problem days later.

I expect integration work to uncover problems. What I want to reduce is the time between introducing a problem, finding it, and getting enough evidence to fix it. Getting to the next error will sometimes be part of the work. It shouldn’t take another support request to find out where it is.

■ Thanks for reading.

Continue the conversation on LinkedIn ↗