<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bitbucket-ships-ai-flaky-test-fixes-github-adds-coverage-merge-protection-yxwdjvgeh" -->

---
title: Bitbucket ships AI flaky-test fixes, GitHub adds...
description: Bitbucket launched an open beta that lets an AI agent diagnose a flaky test, write a fix, and open a draft PR — all from a single click. GitHub added coverage...
canonical: https://daily.dev/posts/bitbucket-ships-ai-flaky-test-fixes-github-adds-coverage-merge-protection-yxwdjvgeh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bitbucket ships AI flaky-test fixes, GitHub adds coverage merge protection | daily.dev
og:description: Bitbucket launched an open beta that lets an AI agent diagnose a flaky test, write a fix, and open a draft PR — all from a single click. GitHub added coverage...
og:url: https://daily.dev/posts/bitbucket-ships-ai-flaky-test-fixes-github-adds-coverage-merge-protection-yxwdjvgeh
og:image: https://api.daily.dev/og/posts/YxWDJVgeh.png
og:image:alt: Bitbucket ships AI flaky-test fixes, GitHub adds coverage merge protection
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitbucket ships AI flaky-test fixes, GitHub adds coverage merge protection

**[Testing Digest](https://daily.dev/sources/testing_digest)** · 4 min read · 0 upvotes · 0 comments

## Summary

Bitbucket launched an open beta that lets an AI agent diagnose a flaky test, write a fix, and open a draft PR — all from a single click. GitHub added coverage threshold enforcement as merge protection rules, now in public preview for Enterprise Cloud and Team plans. PHPUnit 13.2 shipped with exact test ID selection and dramatically faster diff generation. The week also had a dense cluster of practitioner writing on email testing in Playwright, AI testing architecture risks, and prompt regression.

## Content

**TLDR:** Bitbucket launched an open beta that lets an AI agent diagnose a flaky test, write a fix, and open a draft PR — all from a single click. GitHub added coverage threshold enforcement as merge protection rules, now in public preview for Enterprise Cloud and Team plans. PHPUnit 13.2 shipped with exact test ID selection and dramatically faster diff generation. The week also had a dense cluster of practitioner writing on email testing in Playwright, AI testing architecture risks, and prompt regression.

---

## Bitbucket open beta: AI agent diagnoses flaky tests and opens a fix PR

Bitbucket's new open beta adds three test-workflow features, but the headline is AI-powered flaky test remediation. Click 'Fix flaky test', and an AI agent diagnoses the root cause, writes a fix, and opens a draft pull request. You can also bring your own agent with custom prompts. Two supporting features round it out: a 'Create Jira work item' action that pre-fills from test metadata, and a 'Remove test' action to declutter stale entries without touching the repo. The pitch is reducing the time from detecting a flaky test to merging a fix from days to minutes — which is a real pain point, not a made-up one. [Read more](https://daily.dev/posts/xX1O26eUV)

## GitHub adds coverage threshold enforcement as PR merge protection

GitHub launched a public preview that lets teams block merges when code coverage drops below a set threshold. You configure it through branch rulesets: set a minimum coverage percentage, cap the allowed drop from the default branch, or both. There's an evaluate mode to assess impact before switching to active enforcement. It's part of GitHub Code Quality, available on Enterprise Cloud and Team plans, and free during the preview period. Worth watching if your team has been enforcing coverage thresholds through fragile CI scripts. [Read more](https://daily.dev/posts/DOQIpXmzb)

## PHPUnit 13.2: exact test ID selection and millisecond-range diffs

PHPUnit 13.2 ships two changes worth knowing about. New test ID flags (--list-test-ids, --run-test-id, --test-id-filter-file) let you select exact tests without regex — useful for CI sharding and re-running specific failures. Diff generation gets a major speed boost from Myers' linear-space algorithm in sebastian/diff v9, dropping large-input diffs from tens of seconds to milliseconds. The release also adds withParameterSetsInPartialOrder() and willReturnStrictMap() to test doubles, and cleans up the confusingly named expectExceptionMessage() API. [Read more](https://daily.dev/posts/aPaRnUw4v)

## ZeroDrop: disposable email inboxes for Playwright and pytest, no Docker required

Several posts this week covered ZeroDrop, a library that provides real disposable email inboxes for testing OTP, magic link, and password reset flows. The key mechanic: each test generates a unique inbox client-side with no network request, OTP codes and magic links are pre-extracted at Cloudflare's edge, and parallel CI runs get isolated inboxes with no collision risk. Coverage spans pytest, Playwright, Supabase Auth, Better Auth, and Clerk patterns — all without API keys, Docker, or shared inboxes. It's a direct replacement for MailHog in CI contexts. [Read more](https://daily.dev/feed-by-ids?id=qXrb8lyr4&id=rxZjUnFgS&id=OElWKvS6Z&id=Sy6UJuKDo&id=Agxdri3kV)

---

## Also notable

- **Blanket: deterministic multithreaded testing for Python:** Larry Hastings released Blanket, a Python library that wraps threading primitives with a Scenario scheduler so you can control thread ordering explicitly — making any race condition 100% reproducible on demand. [Read more](https://daily.dev/posts/7XSKc6M79)
- **Lottie4J frame-by-frame comparison harness hits 95.2% similarity on worst-case file:** Lottie4J built a test harness that diffs each animation frame between a headless Chrome instance running the official dotlottie-wc player and the JavaFX renderer, with the worst-performing file now at 95.2% similarity and most above 98%. [Read more](https://daily.dev/posts/3M5zP43SG)
- **mabl: three years of production AI agent lessons, including five rewrites of the authoring agent:** A mabl engineer documented how rigid Chain-of-Thought prompts backfired when upgrading to Gemini 2.5 — the model reasoned about the CoT structure instead of the problem — and why static test datasets don't scale for probabilistic AI features. [Read more](https://daily.dev/posts/D2wJasjZx)
- **Prompt regression framework: detects 'False Improvement' pattern in under 2 seconds:** A deterministic mock-based regression suite of 40 golden queries caught a prompt version with 67.5% overall accuracy that had silently collapsed negation classification to 66.7% — a failure invisible to aggregate metrics. [Read more](https://daily.dev/posts/niY5Iiaz2)
- **Storybook releases @storybook/tanstack-react with auto-mocked server functions:** The new package provides automatic RouterProvider wrapping, type-safe route/params/query config, and auto-mocked TanStack Start server functions; requires React 18+, Vite 7+, and @tanstack/react-router. [Read more](https://daily.dev/posts/7YVahl7ir)

## Similar posts on daily.dev

- [Fix flaky tests with AI within Bitbucket](https://daily.dev/posts/fix-flaky-tests-with-ai-within-bitbucket-xx1o26euv) · Atlassian · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#github](https://daily.dev/tags/github), [#phpunit](https://daily.dev/tags/phpunit)

[View this post on daily.dev](https://daily.dev/posts/bitbucket-ships-ai-flaky-test-fixes-github-adds-coverage-merge-protection-yxwdjvgeh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/bitbucket-ships-ai-flaky-test-fixes-github-adds-coverage-merge-protection-yxwdjvgeh","headline":"Bitbucket ships AI flaky-test fixes, GitHub adds coverage merge protection","text":"Bitbucket launched an open beta that lets an AI agent diagnose a flaky test, write a fix, and open a draft PR — all from a single click. GitHub added coverage threshold enforcement as merge protection rules, now in public preview for Enterprise Cloud and Team plans. PHPUnit 13.2 shipped with exact test ID selection and dramatically faster diff generation. The week also had a dense cluster of practitioner writing on email testing in Playwright, AI testing architecture risks, and prompt regression.","url":"https://daily.dev/posts/bitbucket-ships-ai-flaky-test-fixes-github-adds-coverage-merge-protection-yxwdjvgeh","datePublished":"2026-07-06T04:19:28.918Z","dateModified":"2026-07-06T04:19:44.151Z","author":{"@type":"Organization","name":"Testing Digest","logo":"https://media.daily.dev/image/upload/s--1rQKIOqD--/f_auto,q_auto/v1773839410/logos/testing_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/testing_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/testing_digest","name":"Testing Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Testing Digest","item":"https://daily.dev/sources/testing_digest"},{"@type":"ListItem","position":3,"name":"Bitbucket ships AI flaky-test fixes, GitHub adds coverage merge protection"}]}
```

