Skip to content

perf: speed up make tests with xdist and deterministic waits#2563

Merged
seratch merged 1 commit intomainfrom
perf/test-suite-efficiency
Mar 1, 2026
Merged

perf: speed up make tests with xdist and deterministic waits#2563
seratch merged 1 commit intomainfrom
perf/test-suite-efficiency

Conversation

@seratch
Copy link
Member

@seratch seratch commented Mar 1, 2026

This pull request improves test execution efficiency by replacing real-time waits in several slow tests with deterministic synchronization, moving shard-safe tests onto pytest-xdist, and isolating Redis/Dapr-sensitive files onto a serial lane that still runs automatically as part of make tests. Across three measured warm-cache runs after one warm-up run on the same machine, make tests averaged 53.59 seconds before these changes and 14.34 seconds after them, reducing wall-clock time by 39.25 seconds (73.2%) and delivering about a 3.7x speedup.

The change also trims unnecessary tracing fixture startup work in tests/conftest.py, keeps overall test breadth intact, and updates CI so coverage is collected on a single Python version while the rest of the matrix uses the faster test path. Behaviorally, make coverage remains unchanged, tests marked serial still run by default.

@seratch seratch added this to the 0.10.x milestone Mar 1, 2026
@seratch seratch merged commit 02bf923 into main Mar 1, 2026
9 checks passed
@seratch seratch deleted the perf/test-suite-efficiency branch March 1, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant