Skip to content

extend WorkflowCompilerSpec to cover the Python code-generation error path #7647

Description

@eugenegujing

Task Summary

common/workflow-compiler/src/main/scala/org/apache/texera/common/compiler/WorkflowCompiler.scala checks every Python-based physical operator's generated code for the #EXCEPTION DURING CODE GENERATION: marker that PythonOperatorDescriptor embeds when an operator's generatePythonCode throws. When the marker is found, the compiler either appends a RuntimeException("Operator is not configured properly: ...") to the caller's error list or throws it immediately when no error list is provided.

WorkflowCompilerSpec (15 tests) never exercises this branch on the consumer side; the only test of the marker is the producer-side PythonOperatorDescriptorSpec, which asserts that the marker is written but not that the compiler reacts to it. Both the error-list and the throwing branches are unasserted.

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions