aglinxinyuan opened a new pull request, #9675: URL: https://github.com/apache/texera/pull/9675
### What changes were proposed in this PR? The three specs that check the translator's verification harness repeated their fixtures in every case. Each spec now shares them: - `PyOpExecHarnessSpec` builds its test operators from one parameterized Python descriptor in place of seven single-purpose classes. Shared helpers write the input port, run the operator and read the output column. - `HarnessSpec` builds rows with `rowOf` and `twoColRows`. `runStandalone` writes the input, runs `StandaloneRunner` in a `standalone` work directory and returns the output lines. `blobKind` now uses that directory too, as the other cases already did. - `ComparatorSpec` writes typed JSONL with `writeTyped` and checks results with `assertEqualOk` and `assertMismatch`. `runPythonScript` starts Python, and four helpers write and check the Plotly cases. Every test keeps its name, its position, its inputs and its expected values. Only test code changes. ### Any related issues, documentation, discussions? Closes #9674. ### How was this PR tested? - `sbt "WorkflowCompilingService/test"`, with `UDF_PYTHON_PATH` pointing at Python 3.12 and amber's Python bindings generated as `bin/python-proto-gen.sh` does: 152 tests across 11 suites pass on main and on this branch. The two runs have the same names in the same order, compared case by case from the JUnit XML reports. - Mutation check, run the same way on main and on this branch. Three mutations go in together: `PyOpExecHarness` drives every operator as a source, `StandaloneRunner` leaves a holed boolean column as float64 and a plain binary cell as base64 text, and `Comparator` inverts `orderSensitive`. The same 12 of the 50 tests in the three specs fail on both (7 in `PyOpExecHarnessSpec`, 3 in `ComparatorSpec`, 2 in `HarnessSpec`), and every other test passes. - `sbt "WorkflowCompilingService/scalafmtCheck" "WorkflowCompilingService/Test/scalafmtCheck" "WorkflowCompilingService/scalafix --check" "WorkflowCompilingService/Test/scalafix --check"` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity (Gemini) and Claude Code (Claude Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
