Skip to content

perf(ci): speed up functional tests with parallel execution - #159

Merged
AbirAbbas merged 1 commit into
mainfrom
perf/functional-tests-speedup
Feb 2, 2026
Merged

perf(ci): speed up functional tests with parallel execution#159
AbirAbbas merged 1 commit into
mainfrom
perf/functional-tests-speedup

Conversation

@AbirAbbas

Copy link
Copy Markdown
Contributor

Summary

  • Add pytest-xdist for parallel test execution (-n auto)
  • Reduce health check timing from 120s max to 30s max wait
  • Control plane typically starts in ~10-15s, so 30s provides sufficient headroom

Why these changes are safe

  1. No cache involvement - These optimizations don't touch Docker layer caching, so there's no risk of mysterious cache-related failures

  2. Clear failure modes:

    • If health check times out → clear error message: "Control plane failed to become ready"
    • If tests have parallelism issues → tests fail with clear names, easy to identify
  3. Test logic unchanged - Same tests, same assertions, just run in parallel

Expected savings

Optimization Time Saved
Parallel test execution ~20-30s
Faster health check ~15-30s
Total ~30-60s

Risk assessment

Change Risk Mitigation
pytest-xdist Low - possible race conditions Tests run in isolated containers with fresh state
Health check timing None Clear timeout error if exceeded

Test plan

  • CI functional tests pass for both local and postgres modes
  • Verify parallel execution in CI logs (look for [gw0], [gw1], etc.)
  • Compare CI timing before/after

🤖 Generated with Claude Code

…r health checks

- Add pytest-xdist for parallel test execution (-n auto)
- Reduce health check timing from 60*2s=120s to 30*1s=30s max wait
- Control plane typically starts in ~10-15s, so 30s is sufficient headroom

These are safe, non-cache-related optimizations that should reduce
functional test CI time by ~30-60 seconds without changing test logic.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@AbirAbbas
AbirAbbas merged commit 02191e1 into main Feb 2, 2026
14 checks passed
@AbirAbbas
AbirAbbas deleted the perf/functional-tests-speedup branch February 2, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant