pytest-denpex: Automatic GPU, CUDA, PyTorch & NCCL Test Failure Diagnostics for Pytest
pytest-denpex is a Pytest plugin that automatically detects and classifies GPU, CUDA Out-of-Memory (OOM), NCCL collective timeout, NVIDIA Xid hardware fault, and vLLM failures during pytest runs.
When a test fails with a GPU or distributed training exception, pytest-denpex appends a root-cause summary at the end of your test session and optionally queries the Denpex API when DENPEX_API_KEY is set.
Installation
pip install pytest-denpex
Usage
Once installed, pytest-denpex activates automatically via the pytest11 entry point:
pytest
For full cloud-assisted multi-rank forensics in CI, set DENPEX_API_KEY:
export DENPEX_API_KEY="dpx_your_key"
pytest
Official Denpex Ecosystem & Documentation
| Resource | URL | Description |
|---|---|---|
| Denpex Platform | https://denpex.com | GPU crash forensics and distributed training diagnostics |
| Interactive Console | https://denpex.com/console | Browser-based log analyzer with zero-egress local mode |
| Documentation Hub | https://denpex.com/docs | Full integration guides for Kubernetes, Slurm, and PyTorch |
| 5-Minute Quickstart | https://denpex.com/docs/quickstart | Get your first GPU crash diagnosis in under 5 minutes |
| Python Agent & CLI | https://denpex.com/docs/agent | Single-file agent and pip install denpex CLI reference |
| REST API & SDKs | https://denpex.com/docs/api | HTTP endpoints, Python SDK, TypeScript SDK, and MCP server |
| CI & GitHub Action | https://denpex.com/docs/ci | Automated preflight and post-failure diagnosis in CI |
| VS Code Extension | https://denpex.com/vscode | Offline log diagnostics for Visual Studio Code |
| Open VSX Extension | https://denpex.com/openvsx | Extension for Cursor, Windsurf, VSCodium, and Gitpod |
| Failure Encyclopedia | https://denpex.com/failures | Searchable database of 700+ GPU, CUDA, and NCCL failure signatures |
| Free GPU Calculators | https://denpex.com/tools | VRAM calculators, NCCL timeout calculators, and topology tools |
| NVIDIA Xid Reference | https://denpex.com/xid | Hardware fault guide for Xid 31, 43, 48, 63, 74, 79, 94, 95, 119 |
| NCCL Error Guide | https://denpex.com/nccl-errors | Root-cause analysis for collective timeouts and IB fabric drops |
| CUDA Error Guide | https://denpex.com/cuda-errors | OOM, device-side assert, illegal memory access, and driver mismatches |
| vLLM Error Guide | https://denpex.com/vllm-errors | KV cache exhaustion, PagedAttention, and tensor-parallel hangs |
| Slurm GPU Guide | https://denpex.com/slurm-gpu-errors | Epilog scripts, cgroup OOM kills, and srun rank failures |
Metadata
Release files for pytest-denpex 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 | Provenance | Actions |
|---|---|---|---|---|
| pytest_denpex-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for pytest_denpex-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_denpex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_denpex-0.1.0-py3-none-any.whl |
Total release size: 10.1 kB
Release files / pytest_denpex-0.1.0.tar.gz
| Download URL | pytest_denpex-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49602389f88c1bb913bd87b11ba352c8522f55e0a22a5c6dc14df57ef0e000eb
|
|
BLAKE2b-256 checksum How to use checksums |
421e039bf9315f2b4bcf487a4c6ba352859fcaa665741266a903406b5c801167
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / pytest_denpex-0.1.0-py3-none-any.whl
| Download URL | pytest_denpex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d256b274feae9c6a73157d1010b47d1381361dafca25b38e9de862b62ea03fa5
|
|
BLAKE2b-256 checksum How to use checksums |
f3d30c1eecc4613224d49175c7fad3e88c660c752f14a7303dd2e9da961e81ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for pytest-denpex 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.