SShortSingh.
Back to feed

Why Email Verification Tests Need an Explicit Failure Budget

0
·7 views

Email verification steps in automated tests are frequently underestimated, often turning into lengthy, vague timeout failures when inboxes are slow. Engineers are advised to treat this as a reliability problem by defining an explicit 'failure budget' — fixed values for total wait time, poll interval, and maximum retry attempts. A key source of flakiness is the mixing of three separate clocks: when the app queues the email, when the provider delivers it, and when the test stops polling. Recording a timestamp before triggering the email, and filtering inbox results to only messages newer than that point, prevents stale results from consuming the budget. Logging a structured receipt per test run — including poll count, elapsed time, and matched message IDs — replaces vague 'email is flaky' reports with precise, actionable debugging information.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer builds offline-capable survey widget requiring no backend or dependencies

A developer has released AuraSurvey, a vanilla JavaScript survey widget designed to function without an internet connection. The tool stores user responses in localStorage, allowing surveys to work seamlessly online or offline. It can be embedded into any website or mobile app webview using a single script tag, with no external dependencies required. AuraSurvey also includes built-in chart visualizations, PDF export functionality, and white-label support. The project was motivated by frustration with existing survey tools that fail without connectivity and require server-side infrastructure.

0
ProgrammingDEV Community ·

C# Generic Math Explained: Static Abstractions Beyond Numerical Libraries

Generic Math, introduced in .NET 7 on November 8, 2022, allows C# developers to write generic code that enforces operators, identities, and type-level behavior without relying on reflection or dynamic dispatch. Before this feature, writing even a simple generic summation function was impossible in C# due to the lack of operator constraints on type parameters. The feature is built around interfaces in the System.Numerics namespace, such as IAdditionOperators and IAdditiveIdentity, which define static abstract members that types like Int32 can implement. Beyond arithmetic, the same mechanics apply to parsing, domain-driven design types, database models, tensors, and SIMD operations. Despite its power, Generic Math carries performance and complexity costs when overused, and a developer poll found that most C# programmers remain unfamiliar with the feature and its broader applications.

0
ProgrammingDEV Community ·

Feature Flag Mismanagement Behind Major Outages at Knight Capital, LinkedIn, DoorDash

Feature flags, software toggles used to control code behavior in production, have been linked to several high-profile tech failures when left unmanaged. A 2012 incident at Knight Capital saw a forgotten flag reactivate obsolete trading code, triggering $440 million in losses within 45 minutes and collapsing the firm. A June 2026 GrowthBook report found that 75% of feature flags linger in codebases for up to 49 weeks after their purpose ends, despite developers intending to remove them. DoorDash disclosed in August 2026 that it manages over 60,000 flags across 623 repositories, adding roughly 2,300 new ones monthly, with more than 1,000 already flagged as stale. LinkedIn suffered a full outage in February 2026 after an accidental change switched all feature flags on simultaneously, exposing the compounding risks of unaudited, accumulated toggles.

0
ProgrammingHacker News ·

Hot Coffee Linked to Increased Oesophageal Cancer Risk, Study Suggests

New research suggests that drinking very hot coffee may be associated with a higher risk of developing oesophageal cancer. The findings, reported by The Economist in September 2026, point to heat — rather than coffee itself — as the likely contributing factor. Scientists believe repeated thermal injury to the lining of the oesophagus may trigger cancerous changes over time. The research adds to a growing body of evidence connecting the consumption of scalding hot beverages to oesophageal cancer risk.