aglinxinyuan opened a new pull request, #4834: URL: https://github.com/apache/texera/pull/4834
### What changes were proposed in this PR? Add `CoreExecutorReflectionSpec` covering the four classes/traits in `common/workflow-core/.../core/executor`: - `OperatorExecutor` trait defaults (open/close no-ops, produceStateOnStart/Finish None, processState passthrough, processTupleMultiPort delegation to processTuple, onFinish empty, onFinishMultiPort delegation to onFinish) - `SourceOperatorExecutor` trait defaults (processTuple / processTupleMultiPort always empty; onFinishMultiPort delegates to produceTuple with no port routing) - `ExecFactory.newExecFromJavaClassName` across all four constructor-shape fallbacks (no-arg, (String), (Int, Int), (String, Int, Int)) plus ClassNotFoundException for unknown classes - `JavaRuntimeCompilation.compileCode` success path on a self-contained source and diagnostic RuntimeException on syntax errors The `newExecFromJavaCode` / `compileCode`-with-Texera-deps integration is intentionally not covered: javac is invoked with null compilation options, which under sbt test does not include the project classpath and produces "package ... does not exist" errors for any source that references workflow-core types. That failure is a deployment-environment artifact, not a contract violation. ### Any related issues, documentation, discussions? Closes #4833 ### How was this PR tested? `sbt "WorkflowCore/testOnly org.apache.texera.amber.core.executor.CoreExecutorReflectionSpec"` - 18/18 tests pass. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.7) -- 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]
