Home / Companies / Sentry / Blog / Post Details
Content Deep Dive

How we run our Python tests in hundreds of environments really fast

Blog post from Sentry

Post Details
Company
Date Published
Author
Anton Pirker
Word Count
1,178
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

We run our Python tests in hundreds of environments really fast by using a combination of tools such as pytest, Flake8, black, mypy, Tox, GitHub Actions, and scripting to optimize the test suite's performance. We initially ran the tests sequentially, which took 40 minutes, but then implemented changes that allowed us to run the tests in parallel, reducing the time to around 10 minutes. These improvements were achieved by splitting up the test suite into smaller frameworks, using Tox's `--parallel` command, and creating separate GitHub Actions workflows for each framework. Additionally, we removed unused tools from our workflow and started logging slow tests to identify areas for further optimization.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.