SIGN IN SIGN UP

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

0 0 0 Python

Add `pytest-random-order` for reproducible test randomization (#43483)

* Add pytest-random-order for reproducible test randomization

Uses bucket=module to randomize tests within files, compatible with --dist=loadfile.
CI uses CIRCLE_BUILD_NUM as seed for reproducibility across parallel containers.
Local runs use random seed to catch order dependencies over time.
Enables debugging by reproducing exact test order from failed CI builds.

* ran make fix-repo

* install pytest-random-order in CircleCI alongside the patched pytest

* Trigger Build

* @ydshieh reviews

* @ydshieh review on pyproject
T
Tarek Ziade committed
9495ae2880d53dcb8e91cad5f618787c0cfc1c96
Parent: c4b4196
Committed by GitHub <[email protected]> on 1/26/2026, 3:58:24 PM