将PyPI的测试套件速度提升81%
blog.trailofbits.com | 博客 | #supply-chain | #open-source | #pypi | #python | #testing | #pytest | #engineering-practice
摘要
Trail of Bits 分享优化 PyPI 后端 Warehouse 测试套件的经验:借助 pytest-xdist 并行执行、Python 3.12 sys.monitoring 覆盖率插桩、优化测试发现与削减冗余导入,将运行时间从 163 秒降至 30 秒,测试数还从 3900 增至 4700。
- 发布时间
- 收录时间
Skip to content