Green Is Not Published
The version was tagged. Two builds had run. Both were green. The next environment picked up the new version within minutes.
The package didn't exist.
Nobody failed¶
Nothing had crashed. The publishing job was never run. A condition in front of it was false, so the job was skipped, and a skipped job leaves the run green.
The pipeline wasn't lying. We had asked it whether anything went wrong. Nothing had.*
* Nothing had gone right, either.
The cluster said it first. It went looking for the package, didn't find it, and refused to pretend. The fix was live about half an hour after the wrong pin.
The guard that wasn't¶
The condition compared a true-or-false value with the word "true". Those aren't the same thing. The comparison is allowed, it runs, and the answer is always no.
It wasn't one repository. The same guard sat in several, and it had a pedigree: one of our own audit checks recommended it. The check that was supposed to keep us safe had handed out the bug.
Then we wrote a new check to catch it. The first version passed every repository we own.
It couldn't fire.
A second witness¶
Fixing the comparison was one line. That isn't the lesson.
The lesson is who you ask. A job can tell you it finished. It can't tell you it was needed. Only the place the package was supposed to land can tell you it landed.
So ask there. Was a release declared? Is the thing in the registry? If the answers disagree, stop, however green the rest is.
Monday¶
Find your most trusted green light. Ask what it looks like when the job behind it doesn't run.
If it looks the same, it isn't a light. It's paint.
The mechanics are in The Boolean That Lied and Boolean Inputs.
