Skip to content

[SPARK-53759][PYTHON] Add SimpleWorkerTests for non-daemon worker path#55223

Open
anblanco wants to merge 1 commit intoapache:masterfrom
anblanco:add-simple-worker-tests
Open

[SPARK-53759][PYTHON] Add SimpleWorkerTests for non-daemon worker path#55223
anblanco wants to merge 1 commit intoapache:masterfrom
anblanco:add-simple-worker-tests

Conversation

@anblanco
Copy link
Copy Markdown

@anblanco anblanco commented Apr 6, 2026

Summary

Adds SimpleWorkerTests that runs the full WorkerTests suite through the non-daemon (simple-worker) path by setting spark.python.use.daemon=false. Windows always uses this path; Linux/macOS use it when spark.python.use.daemon=false.

Includes explicit tests for:

  • DataFrame creation
  • UDF execution
  • Python Data Source reads

These cover the worker paths affected by SPARK-53759, where the simple-worker socket was not explicitly closed before process exit.

Split out from #55201 per reviewer feedback — the fix itself is in #55201, this PR adds the regression test coverage on master.

Test plan

  • SimpleWorkerTests passes locally on WSL (Ubuntu 24.04, Python 3.12.3) — 12/12 tests pass
  • Red/green confirmed: without the fix (unfixed pyspark.zip), tests fail with EOFException; with the fix, all pass

Adds SimpleWorkerTests that runs the full WorkerTests suite through
the non-daemon (simple-worker) path by setting
spark.python.use.daemon=false.

Windows always uses this path. On Linux/macOS it is used when
spark.python.use.daemon=false.

Includes explicit tests for DataFrame creation, UDF execution, and
Python Data Source reads through the simple-worker path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@anblanco anblanco force-pushed the add-simple-worker-tests branch from 1aa617e to 092420f Compare April 7, 2026 05:43
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