kunwp1 commented on code in PR #9675:
URL: https://github.com/apache/texera/pull/9675#discussion_r4683497255
##########
workflow-compiling-service/src/test/scala/org/apache/texera/amber/translator/verify/ComparatorSpec.scala:
##########
@@ -428,42 +381,40 @@ class ComparatorSpec extends AnyFlatSpec with Matchers {
(dir.resolve("actual.jsonl"), dir.resolve("expected.jsonl"),
dir.resolve("probe.jsonl"))
}
+ private def runPythonScript(script: Path, args: String*): (Int, String) = {
+ val python =
sys.env.get("UDF_PYTHON_PATH").filter(_.nonEmpty).getOrElse("python3")
Review Comment:
Optional: now that the two copies are one, this could use
`PyOpExecHarness.resolvePython()`. Without `UDF_PYTHON_PATH`, models are
pickled here under `python3`, while `Comparator` unpickles them under
`python3.12`, which can differ in sklearn. This was already the case on main;
CI sets the variable, so it doesn't show there.
```scala
val python = PyOpExecHarness.resolvePython()
```
--
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]