Flaky-Repro
Flaky-Repro is an empirical, frequency-based tool designed to diagnose and reproduce flaky tests under varying execution conditions (such as concurrency worker counts, mode configurations, and timing delays).
It is designed to help developers identify the specific runtime factors associated with test flakiness, helping speed up troubleshooting and reduce debugging frustration.
[!WARNING] Safety Warning: Flaky-Repro repeatedly executes target tests under parallel and timing-delayed environments. Only run it against tests and environments where repeated executions are safe and side effects are acceptable.
Why Use Flaky-Repro?
Diagnosing flaky tests is notoriously difficult because they often pass during local sequential runs but fail under high-concurrency CI environments. Flaky-Repro automates the process of executing tests under systematic variations to isolate candidate patterns (such as concurrency levels or timing conditions) and repeats them to confirm and reproduce the failure rate pattern.
Disclaimer: Flaky-Repro is an empirical tool. It does not mathematically prove a root cause; it ranks conditions based on the statistical difference in failure rates.
Installation
You can install Flaky-Repro locally from its built wheel:
pip install flaky_repro
Required dependencies: pytest (>= 7.0.0).
Usage
After installation, invoke the tool directly from your command line.
To run the bundled worker-sensitive validation example:
flaky-repro
To run against your own target test:
flaky-repro <target-test-path>
For example:
flaky-repro tests/test_my_code.py::test_concurrency
MVP Limitations
- Currently optimized for Python environments running
pytest. - Executes tests sequentially during baseline checks, and parallelizes using thread-level concurrency during investigation and reproduction stages.
- Relies on process-level isolation for executing each test case.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flaky_repro-0.1.0.tar.gz.
File metadata
- Download URL: flaky_repro-0.1.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bfaf4e8e2e4e6c101c612e8f085c47281a819f018dfd59caf95474c3ab8ac1b
|
|
| MD5 |
7e230fcbee13a5a129c6667902cfb533
|
|
| BLAKE2b-256 |
a3761998667293871bbd912bf14c35d2fc10e3719f99fbafe02eb4f431146349
|
Provenance
The following attestation bundles were made for flaky_repro-0.1.0.tar.gz:
Publisher:
publish.yml on MrigankKumawat/Flaky-Repro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flaky_repro-0.1.0.tar.gz -
Subject digest:
1bfaf4e8e2e4e6c101c612e8f085c47281a819f018dfd59caf95474c3ab8ac1b - Sigstore transparency entry: 2575176762
- Sigstore integration time:
-
Permalink:
MrigankKumawat/Flaky-Repro@c4ed497022894a811934ab33e15d8798d1ad0573 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/MrigankKumawat
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c4ed497022894a811934ab33e15d8798d1ad0573 -
Trigger Event:
push
-
Statement type:
File details
Details for the file flaky_repro-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flaky_repro-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd2aac6ad6fdcf0c846f772d19dde389caf662cab09c8c7434943813e1aae3c2
|
|
| MD5 |
a4446e139b7dbfd28e1a5d7195cf146e
|
|
| BLAKE2b-256 |
25ef71b1c9e84a844f656c1f6db9d8e56f89f359c598a5f63796ad636f1a2e02
|
Provenance
The following attestation bundles were made for flaky_repro-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on MrigankKumawat/Flaky-Repro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flaky_repro-0.1.0-py3-none-any.whl -
Subject digest:
dd2aac6ad6fdcf0c846f772d19dde389caf662cab09c8c7434943813e1aae3c2 - Sigstore transparency entry: 2575176970
- Sigstore integration time:
-
Permalink:
MrigankKumawat/Flaky-Repro@c4ed497022894a811934ab33e15d8798d1ad0573 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/MrigankKumawat
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c4ed497022894a811934ab33e15d8798d1ad0573 -
Trigger Event:
push
-
Statement type: