In Part 7: What Reading the Code Could Never Find, Nnamdi Felix Ibe reviews how defects surfaced while building a demonstration service that translates HL7 v2 messages into FHIR R4. The project uses synthetic data, and its lookup dependency is stubbed by default. The examples show how to check whether an alert survives the trip from a failed request to a recipient's inbox.
Trace the failure through the running service
A synchronous test exercised the circuit breaker, but the patient lookup ran asynchronously. Ibe reports that the decorator counted the returned coroutine as a success. The failure occurred later when the coroutine was awaited, and the breaker stayed closed. A test designed around the service's real call path would check the breaker state after the awaited request fails.
The failure drill also exposed a storage issue. The service ran under a non-root user, but the dead-letter volume was owned by root. Writes failed with a permission error. A drill for this case can check that the pipeline still accepts new messages and that the rejected message actually appears in dead-letter storage. Those observations answer different questions about the same incident.
Verify the signal and its delivery
Starting the service and inspecting its metrics revealed that a gauge referenced by an alert was absent. The tagged repository records three distinct conditions for this part of the demo: a failed scrape, a missing scrape target, and an absent breaker metric. Each points to a different place to start investigating.
The inbox provides a separate observation. Ibe received repeated emails from an idle demo and received no recovery email. Alertmanager's email receiver defaults to leaving resolved notifications disabled. A rehearsal can capture both the first firing notification and a recovery notification where the latter is expected. Keep the delivery check alongside the rule test so an operator can tell which behavior each result establishes. Repository notes at the part-7 tag · Alertmanager configuration.