flaky-detector-cli
A tiny, zero-dependency command-line tool that uploads a JUnit XML test
report to a flaky-detector
project — the same thing the project's GitHub Actions snippet does with
curl, packaged as a real command.
pip install flaky-detector-cli
Usage
pytest --junitxml=report.xml
flaky-detector submit report.xml
By default it reads two environment variables — the same two names your flaky-detector project's CI snippet already uses:
FLAKY_DETECTOR_URL— your backend's base URLFLAKY_DETECTOR_TOKEN— the project's upload token
Everything else is auto-detected. In GitHub Actions, it reads GITHUB_SHA,
GITHUB_REF_NAME, GITHUB_RUN_ID, and GITHUB_RUN_ATTEMPT automatically.
Running locally, it falls back to your current git checkout for the
commit and branch. You can override any of it explicitly:
flaky-detector submit report.xml \
--url https://your-backend.example.com \
--token YOUR_TOKEN \
--commit abc1234 \
--branch main \
--run-id 42 \
--run-attempt 1
Why not curl?
curl works fine and is what the project's own onboarding flow suggests
first. This exists for people who'd rather not hand-build a multipart
curl command in CI YAML, and for local use: run your suite, then
flaky-detector submit report.xml to see the result on your dashboard
without touching CI at all.
Exit codes
0— uploaded successfully1— the server rejected the upload (bad token, malformed report, etc.); stderr has the reason2— a required argument is missing (no URL/token, and none could be auto-detected)
Development
git clone https://github.com/YOURNAME/flaky-detector
cd flaky-detector/cli
pip install -e .
No dependencies to install for either running or developing this tool — only the Python standard library.
Release files for flaky-detector-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flaky_detector_cli-0.1.0.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flaky_detector_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / flaky_detector_cli-0.1.0.tar.gz
| Download URL | flaky_detector_cli-0.1.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e864963038c6a50e4f6eb82e48e97daae8391e1e26045754968ad85d109f8e3
|
|
BLAKE2b-256 checksum How to use checksums |
e521975ebf376a84f328dc635e97395846b176b3c5c30007479cef7d372fc513
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / flaky_detector_cli-0.1.0-py3-none-any.whl
| Download URL | flaky_detector_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f942fb5c8c4915b9a909acbe4dbe4f1003a4774e9140470d2d74c5ad6c6a9507
|
|
BLAKE2b-256 checksum How to use checksums |
34c69dfebccba6c7c05226ea68928d8b3a1bb0bc6b4b1636c68df0accf0a54e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|