deflake-test
Skill1.4k starsChanged 3 months agoMITView on GitHub
Reproduce, diagnose, fix, and stress-verify a suspected flaky unit, integration, or Maestro E2E test. Use when asked to repeat one focused test until it fails or establish a consecutive-pass threshold, not for ordinary one-off failures or broad suite validation.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about stripe/stripe-react-native
- tipsi/tipsi-stripe“PSA: Stripe's official React Native library is now live 🙌”GitHub · May 12, 2021 · 19 reactions
- flutter-stripe/flutter_stripe“Localization: Allow overriding system locale”GitHub · Nov 14, 2024 · 5 reactions
- stripe/stripe-android“[BUG] CardBrandView change to Composable causes app crashes”GitHub · Jun 13, 2024 · 5 reactions
- naoufal/react-native-payments“👉 Stripe React Native Official SDK 👉”GitHub · Oct 21, 2021 · 5 reactions
- stripe/stripe-android“[BUG] 3DS confirmation screen closed if app is put in background and reopen from app icon”GitHub · Jun 15, 2023 · 4 reactions
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub and Hacker News (10 times).
On GitHub · 9
- May 12, 2021PSA: Stripe's official React Native library is now live 🙌 — tipsi/tipsi-stripe19 reactions
- Nov 14, 2024Localization: Allow overriding system locale — flutter-stripe/flutter_stripe5 reactions
- Jun 13, 2024[BUG] CardBrandView change to Composable causes app crashes — stripe/stripe-android5 reactions · 14 comments
- Oct 21, 2021👉 Stripe React Native Official SDK 👉 — naoufal/react-native-payments5 reactions · 4 comments
- Jun 15, 2023[BUG] 3DS confirmation screen closed if app is put in background and reopen from app icon — stripe/stripe-android4 reactions · 6 comments
4 more on GitHub
- Dec 23, 2022SDK 47 installs incompatible version of Stripe using managed workflow on Android — expo/expo3 reactions · 2 comments
- Dec 22, 2022Android build fails due to jitpack server is down — expo/expo3 reactions · 14 comments
- Mar 18, 2025[docs] redirectSystemPath return null not documented — expo/expo2 reactions · 8 comments
- Sep 9, 2024[BUG] Preferred network for co-branded cards not working — stripe/stripe-android2 reactions · 5 comments
On Hacker News · 1
- May 11, 2021Stripe-react-native: React Native library for Stripe1 point
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-native-featureSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the iteration count requested by the user.
- Very specific: line 13
Run the test sequentially up to the configured count, stopping at the first genuine test failure.
- Distinctive: line 15
If the first clean run reaches the configured count without failure, stop immediately.
- Distinctive: line 16
When a failure occurs, inspect the most specific evidence available: failed-step timing, screenshots, view hierarchy, application and …
- Distinctive: line 18
Run focused unit, compilation, and static checks required by the affected code and repository instructions.
- Distinctive: line 25
Before counting Android iterations, verify emulator storage, network access to the configured demo backend, and that the expected APK …
- Distinctive: line 27
Use platform-conditional flows for platform-specific selectors rather than mutually exclusive optional actions.
- Distinctive: line 28
Wait for a stable screen identity or readiness signal, not content that can vary with saved payment methods, account state, or layout.
- Distinctive: line 29
Do not hide startup crashes with an in-flow relaunch unless evidence shows the launch failure is unrelated infrastructure and existing …
- Distinctive: line 30
If a native flow returns control to JavaScript, check whether work that immediately presents UI ran before the React host activity …
- Distinctive: line 31
Keep test hardening separate from product fixes when they address independent failure modes.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deflake a test
Use the iteration count requested by the user. Otherwise default to 20. When using the bundled runner, override the count with --iterations/-n or DEFLAKE_ITERATIONS.
Workflow
- Find the narrowest command that runs exactly the requested test. Read repository instructions and test documentation first. Prepare required devices, apps, services, fixtures, and dependencies without broadening into a repository-wide suite.
- Run the test sequentially up to the configured count, stopping at the first genuine test failure. Preserve separate output and debug artifacts for every iteration. Use
scripts/repeat-until-failure.shfor ordinary commands. - Count only valid executions of the intended test. Parser or runner incompatibilities, missing builds or services, disconnected devices, exhausted emulator storage, stale system overlays, and another process replacing the app are harness failures. Repair or isolate the environment, then restart the initial count. Do not change product code or weaken the test to accommodate a broken harness.
- If the first clean run reaches the configured count without failure, stop immediately. Make no code changes and report that the issue could not be reproduced.
- When a failure occurs, inspect the most specific evidence available: failed-step timing, screenshots, view hierarchy, application and native logs, process lifecycle, network/backend state, and differences between iterations. Identify the first causal event rather than only the final missing element.
- Apply the smallest root-cause fix. Prefer lifecycle or state synchronization and stable readiness conditions over sleeps, retries, or relaxed assertions. A fixed delay is a last resort and must be justified by a bounded external transition.
- Run focused unit, compilation, and static checks required by the affected code and repository instructions. Then start a fresh run and require the configured number of consecutive passes. Any genuine failure resets the consecutive-pass count and requires further investigation.
- Report the failing iteration, root cause, fix, focused validation, and final consecutive-pass result. Follow the repository's existing commit and pull-request workflow; this skill grants no additional permission to mutate external systems.
Maestro E2E guidance for this repository
- Build and install the example app first, then run one flow with
maestro test -e APP_ID=com.stripe.react.native <flow>and an explicit device ID when multiple devices are connected. - Confirm the installed Maestro version supports the flow syntax. Treat a parse error as a runner mismatch, not a test reproduction.
- Before counting Android iterations, verify emulator storage, network access to the configured demo backend, and that the expected APK remains installed. Concurrent worktrees use the same application ID and can replace each other's builds.
- Give each iteration its own
--debug-outputdirectory. On failure, inspect its screenshot, hierarchy, Maestro log, device logcat, and application process exit reason. - Use platform-conditional flows for platform-specific selectors rather than mutually exclusive optional actions.
- Wait for a stable screen identity or readiness signal, not content that can vary with saved payment methods, account state, or layout.
- Do not hide startup crashes with an in-flow relaunch unless evidence shows the launch failure is unrelated infrastructure and existing suite-level retries are insufficient.
- If a native flow returns control to JavaScript, check whether work that immediately presents UI ran before the React host activity reattached. Waiting for a later assertion cannot recover an alert or event that was already dropped.
- Keep test hardening separate from product fixes when they address independent failure modes; remove redundant workarounds after the underlying race is fixed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

