The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
e6e621796b3e99add765bc82510aa363aebf8c05 / Xinyuan Lin <[email protected]>
test(workflow-operator): share fixtures across UDF specs (#9415)

### What changes were proposed in this PR?

The six UDF descriptor specs (Java, R, R source, Python, dual-input
Python and Python source) repeated the same setup and assertions. A new
test trait, `UdfDescriptorSpecSupport`, holds them once: physical-op
construction, operator-info checks, polymorphic JSON round trips,
worker-count rejection, schema fixtures, port descriptions and
UI-parameter builders. This removes 182 net lines.

Each spec keeps its own language, executor code, port and value
expectations. Every existing case keeps its name, order and outcome,
including the Python default-code template cases and the Java
UI-parameter round trip.

### Any related issues, documentation, discussions?

Closes #9414.

### How was this PR tested?

With JDK 17:

```sh
sbt "WorkflowOperator/testOnly 
org.apache.texera.amber.operator.udf.java.JavaUDFOpDescSpec 
org.apache.texera.amber.operator.udf.python.DualInputPortsPythonUDFOpDescV2Spec 
org.apache.texera.amber.operator.udf.python.PythonUDFOpDescV2Spec 
org.apache.texera.amber.operator.udf.python.source.PythonUDFSourceOpDescV2Spec 
org.apache.texera.amber.operator.udf.r.RUDFOpDescSpec 
org.apache.texera.amber.operator.udf.r.RUDFSourceOpDescSpec"
sbt "WorkflowOperator/Test/scalafmtCheck" "WorkflowOperator/Test/scalafix 
--check"
```

The six suites run 78 cases, all passing, the same count as on main.
Formatting and lint checks pass.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Antigravity (Gemini), Claude Opus 5.5

Report URL: https://github.com/apache/texera/actions/runs/43721161947

With regards,
GitHub Actions via GitBox

Reply via email to