carloea2 opened a new pull request, #8092: URL: https://github.com/apache/texera/pull/8092
### What changes were proposed in this PR? Workflow WebSocket request parsing now runs inside the endpoint's existing error handler. Malformed JSON is reported with the same `WorkflowErrorEvent` used for other request failures, while the parsing exception still reaches the WebSocket container. A regression test sends incomplete JSON through the real handler and verifies the error event. The existing heartbeat test continues to cover valid input. Before: Malformed JSON escaped without an error event. After: Malformed JSON produces a `WorkflowErrorEvent`. ### Any related issues, documentation, discussions? Closes #8091 ### How was this PR tested? The regression test failed before the production change because no message was sent. After the change, all 16 tests in the WebSocket resource suite passed. ```shell sbt "set DAO / Compile / sourceGenerators := Seq.empty" "WorkflowExecutionService / Test / testOnly org.apache.texera.web.resource.WorkflowWebsocketResourceSpec" sbt "set DAO / Compile / sourceGenerators := Seq.empty" "scalafixAll --check" sbt scalafmtCheckAll ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex, GPT-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]
