Fixing a Bug with Formal Methods and Property-Based Testing

goteleport.com15 min read

The Teleport engineering team demonstrates how they used formal methods with the P language to model and fix a concurrency bug where cache health metrics became stuck after restarts. To prevent regressions, they implemented property-based testing in Go using Rapid, mirroring their P specification. The author argues that combining formal modeling and property-based testing allows developers to catch complex distributed systems bugs at design time. Open article →