Matthew-DWM commented on code in PR #9364:
URL: https://github.com/apache/texera/pull/9364#discussion_r4555882014


##########
amber/src/test/scala/org/apache/texera/amber/engine/architecture/pythonworker/PythonWorkflowWorkerSpec.scala:
##########
@@ -339,4 +504,129 @@ class PythonWorkflowWorkerSpec
 
     a[NotImplementedError] should be thrownBy 
worker.underlyingActor.loadFromCheckpoint(null)
   }
+
+  // 
---------------------------------------------------------------------------
+  // Failure reporting: a Python process that exits, a Flight client that 
stops, and an
+  // interpreter that exits before connecting must each fail the worker, so 
the coordinator
+  // can fail the run instead of letting it hang.
+  // 
---------------------------------------------------------------------------
+
+  for ((code, how) <- Seq(3 -> "with an error code", 0 -> "cleanly")) {
+    it should s"report a Python process that exits $how mid-run, naming the 
worker and the code" in {
+      val name = s"py-exit-$code"
+      standInInterpreter(name, s"sleep 1\nexit $code")

Review Comment:
   Done: removed the `sleep 1` lines and cut the no-report wait to 1 s; those 
five tests now take 2.5 s instead of 8.0 s.



-- 
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]

Reply via email to