Skip to content

Add xdist parallel test task#1415

Merged
THardy98 merged 10 commits intomainfrom
tc/pytest-xdist-parallel-tests
Apr 7, 2026
Merged

Add xdist parallel test task#1415
THardy98 merged 10 commits intomainfrom
tc/pytest-xdist-parallel-tests

Conversation

@tconley1428
Copy link
Copy Markdown
Contributor

@tconley1428 tconley1428 commented Apr 6, 2026

Summary

  • add pytest-xdist and change poe test task to use -n auto --dist=worksteal
  • make the custom pytest success-exit hook skip os._exit(0) when running under xdist
  • switch the main CI test jobs to the parallel task and document the new local command

Validation

  • poe build-develop
  • poe test-parallel tests/test_common.py
  • poe test-parallel tests/test_client.py -k 'test_start_delay or test_query or test_workflow_failed'
  • poe test-parallel tests/testing/test_workflow.py
  • poe test-parallel tests/testing/test_workflow.py --workflow-environment time-skipping
  • poe test-parallel tests/worker/test_workflow.py -k 'hello or multi_param or workflow_info or history_info or signal_and_query or async_utils or simple_activity or simple_local_activity or cancel_activity or simple_child or simple_cancel or cancel_before_run or uncaught_cancel or cancel_child_started or signal_child or cancel_external or signal_external or cancel_multi or cancel_unsent or activity_timeout or with_codec or passthrough_codec or memo_decoding_with_passthrough_codec or custom_runner or continue_as_new'
  • poe test-parallel tests/worker/test_workflow.py -k 'typed_config or local_activity_backoff or patch or patch_memoized or uuid or activity_callable_class or activity_method or wait_condition_timeout or typed_handle or memo or custom_failure_converter or optional_param or manual_result_type or dynamic or update_handlers_happy or update_handlers_unhappy or update_task_fails or update_before_worker_start or update_separate_handle or timeout_support or current_build_id_appropriately_set or as_completed_utility or wait_utility or current_update or sleep or concurrent_sleeps_use_proper_options or in_workflow_util or priorities or previous_run_failure or random_seed_functionality'

Timing

  • serial first workflow slice: 31.83s
  • parallel first workflow slice: 13.09s

@tconley1428 tconley1428 marked this pull request as ready for review April 7, 2026 18:33
@tconley1428 tconley1428 requested a review from a team as a code owner April 7, 2026 18:33
Copy link
Copy Markdown
Contributor

@THardy98 THardy98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet

@THardy98 THardy98 merged commit 3dadf7f into main Apr 7, 2026
30 of 31 checks passed
@THardy98 THardy98 deleted the tc/pytest-xdist-parallel-tests branch April 7, 2026 18:39
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.

2 participants