Skip to content

Task SDK: Fix nondumpable supervisor tests for Python 3.14#63597

Merged
potiuk merged 1 commit intoapache:mainfrom
Dev-iL:2603/314_pickle
Mar 14, 2026
Merged

Task SDK: Fix nondumpable supervisor tests for Python 3.14#63597
potiuk merged 1 commit intoapache:mainfrom
Dev-iL:2603/314_pickle

Conversation

@Dev-iL
Copy link
Collaborator

@Dev-iL Dev-iL commented Mar 14, 2026

Python 3.14 changes the default multiprocessing start method on POSIX to a pickling-based mode, which breaks these Task SDK supervisor tests because they spawn processes from local test functions.

This change makes the two Linux nondumpable-process tests explicitly use the fork multiprocessing context, which matches the behavior the tests are verifying and avoids the Python 3.14 pickling failure.

Tests:

  • breeze run pytest task-sdk/tests/task_sdk/execution_time/test_supervisor.py::test_nondumpable_blocks_sibling_proc_read task-sdk/tests/task_sdk/execution_time/ test_supervisor.py::test_nondumpable_blocks_child_memory_read -xvs

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Codex GPT-5.4 following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@Dev-iL Dev-iL mentioned this pull request Mar 14, 2026
6 tasks
@Dev-iL Dev-iL requested a review from potiuk March 14, 2026 18:18
@potiuk potiuk merged commit 5502cbf into apache:main Mar 14, 2026
105 checks passed
@Dev-iL Dev-iL deleted the 2603/314_pickle branch March 15, 2026 00:33
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.

2 participants