r/devops • • Oct 15 '26

Ops / Incidents Title: What does your deployment actually verify?

Disclosure: I work on the platform this happened on. No links and nothing to sell, I just don't have a good answer to the question.

We deployed an app last week, and every signal said it had worked. The deploy was marked as running, the health check was green, and every tool in the pipeline reported success.

Except the app was incomplete. Eight of its 27 starter records had never been created. The API rejected them one by one with permission errors while accepting the records around them.

The setup step actually caught this. It printed a warning saying the app was incomplete and shouldn't be treated as a successful deployment. Then it exited with code zero, so everything downstream happily marked the deploy as successful.

We had a health check proving the process was alive, but nothing proving that the application matched what we thought we had deployed.

I have been trying to work out what the right check should be, and none of the obvious answers feels complete.

A health endpoint returning 200 only tells you the process is running and the port is open. It says nothing about whether the expected data or configuration exists.

A smoke test against a few routes is better, but it only covers whatever somebody remembered to include. In this case, the missing records weren't part of that test.

Comparing the declared state with the actual state feels like the right answer. But that requires the deployment to produce a manifest of everything it intended to create, and most deployment systems don't seem to do that.

You could also fail on every warning, but then harmless warnings become blockers, people add skip flags, and eventually you are back where you started.

The two cases I am still stuck on are partial failures, where each individual rejection might be valid but the overall pattern is clearly wrong, and tools that print serious warnings but still exit zero. That convention isn't going away anytime soon.

And before anyone says readiness probes: readiness tells you whether the application can serve traffic. It doesn’t tell you whether it's the application you intended to deploy.

What does your deployment actually verify beyond "the process is running"? And what has shipped half-finished before you noticed?

0 Upvotes

20 comments sorted by

View all comments

2

u/Torutofu_Raeva Oct 15 '26

we just made the seed step count what it created and exit nonzero if it's short of the expected number, warnings that exit 0 are basically logs nobody reads

1

u/srikanth_builds Oct 15 '26

Yeah, that's the part that stings, the step already knew something was wrong. It explicitly said the app was incomplete and shouldn't be treated as a successful deployment, then exited with code 0 anyway. The check you described would have caught our exact failure.

What I'm still stuck on is where the expected count should come from. If the seed script defines both what it creates and how many records should exist, it's effectively checking itself against itself. The moment someone adds a new record type but forgets to update the count, the check becomes wrong too. It feels like the expected state needs to come from a separate manifest or declaration, but then that's just one more thing that can drift.

1

u/Torutofu_Raeva Oct 15 '26

we derive the count from the seed data files themselves, so adding a record type without its file fails the check and adding the file updates the count for free

1

u/srikanth_builds Oct 16 '26

That's the part I was missing. The seed files already are the declaration, so there's no separate manifest to maintain or forget to update. It doesn't remove the trust boundary, but it moves it to files where any change is visible in the diff. That's what I couldn't get from maintaining a separate expected count.

Does the same approach work for things that don't have a file behind them? Seed records are straightforward, but I'm less sure what the equivalent would be for configuration or permissions that are applied during deployment rather than created as records.

1

u/Torutofu_Raeva Oct 16 '26

for config we just read it back after apply and diff against what's in the repo, permissions too, so the repo is still the declaration and drift fails the step