Urgent.News

What's breaking now, across thousands of outlets.

Tech

A Safer Mailbox Lease for CI Automation

Email tests become unreliable when every pipeline treats the inbox as a permanent shared resource. One job creates an account, another job reads the same messages, and a retry arrives after the test has already finished. The failure looks random, but the underlying problem is ownership. A useful mental model is a mailbox lease. A CI run temporarily owns an isolated disposable address, records why…

CI email tests can become unreliable when multiple jobs share the same inbox. A mailbox lease model provides a solution by temporarily assigning a disposable address to each CI run, recording its lifecycle, and returning it when the run ends. This makes email automation more predictable and easier to reason about. The lease model offers four key pieces of information: ownership (run ID and worker ID), purpose (test suite, branch, or scenario name), validity (expiry time), and outcome (created, used, released, expired).

Implementing a mailbox lease involves creating a storage record with consistent fields, including an explicit state such as leased, consumed, released, or expired. A unique address per parallel worker is recommended, and events like verification requests should be tracked separately. A run manifest containing the run ID, suite name, address reference, lease state, timestamps, and events should be created and shared with CI jobs.

When a test fails, a compact bundle should be saved containing the run manifest, expected event type, timestamps, selected message ID, poll count, and failure category. To avoid privacy concerns, the address reference should not be exposed in logs, and raw message bodies should not be uploaded by default. Cleanup should be handled by a cleanup path, either releasing or expiring the lease, and any cleanup failures should be reported separately to maintain clear error handling.

Sharing a lease within a scenario is appropriate when the test flow intentionally includes multiple steps, while unrelated tests and parallel workers should use separate leases. A lease is more than just a timeout, as it includes ownership, state transitions, event IDs, and cleanup.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

CVE-2026-89076 and the Reporting Endpoint Problem in File Transfer Platforms

CVE-2026-89076 and the Reporting Endpoint Problem in File Transfer Platforms Reporting modules are built to answer questions and accumulate query surface while doing it.

  • MOVEit Transfer Custom Reports module affected by CVE-2026-89076 SQL injection flaw.
  • Patches in versions 2025.1.6 and 2026.0.4 implement parameterized queries to mitigate risk.

Amid Tax Reforms, 20 Blue-chip Firms Remit N3.04trn to NRS, Others

Kayode Tokede The major overhaul of Nigeria’s tax system by the federal government has started to yield fruits as just 20 firms listed on the Nigerian Exchange Limited (NGX) paid a

  • 20 blue-chip firms remitted N3.04 trillion in income tax in H1 2026.
  • 79.5% increase from N1.69 trillion paid in the same period last year.
  • New 4% development levy introduced on assessable profits for eligible companies.

Beyond Price Action: Quantifying Macro Narratives and 'Quantum Threats' for Algorithmic Risk Control

Beyond Price Action: Quantifying Macro Narratives and 'Quantum Threats' for Algorithmic Risk Control Tags: algotrading , crypto , ai , buildinpublic It is 1:00 AM on a quiet Sunday.

  • Quantum threat from Shor's algorithm targets early elliptic curve signatures
  • Traditional models rely on lagging, structured data only
  • Narrative Suppression Factor quantifies and suppresses macro narratives

The swap said 0.000502 WSOL. The wallet got 0.000494 SOL.

After a swap, most people open an explorer to answer three questions: did it work, what did I get, what did it cost. Explorer pages are organised around different questions: which instructions ran…

  • Jupiter swap of DICE for SOL resulted in wallet gaining 0.000494183 SOL
  • Transaction incurred three fees totaling approximately $0.0015
  • Pool fee was 0.000006361 SOL (1.25%)

A DEV comment streak can lose an old qualifying week

I expected a streak counter to remember which weeks had qualified. Reading Forem's Community Wellness code showed me a different design: it rebuilds the active streak from the comment and reaction…

  • Community Wellness streak can be lost if old qualifying week fails criteria
  • Streak rebuilt from comment and reaction data at each calculation
  • Single reaction loss can break streak and shorten consecutive qualifying weeks

More from Monday 19 October →