You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/05/03 04:18:44 UTC
[PR] test(workflow-core): add unit test coverage for core/executor reflection [texera]
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test(workflow-core): add unit test coverage for core/executor reflection [texera]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang merged PR #4834:
URL: https://github.com/apache/texera/pull/4834
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test(workflow-core): add unit test coverage for core/executor reflection [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #4834:
URL: https://github.com/apache/texera/pull/4834#issuecomment-4365376709
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/4834?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 42.84%. Comparing base ([`945849c`](https://app.codecov.io/gh/apache/texera/commit/945849ce4f7ba77091e930b53b0b35440e33b994?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`4513c35`](https://app.codecov.io/gh/apache/texera/commit/4513c3599e6f6f987f2958ed070aadc748b97507?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #4834 +/- ##
=========================================
Coverage 42.84% 42.84%
Complexity 2027 2027
=========================================
Files 957 957
Lines 34077 34077
Branches 3753 3753
=========================================
Hits 14600 14600
Misses 18693 18693
Partials 784 784
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/4834/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [access-control-service](https://app.codecov.io/gh/apache/texera/pull/4834/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `28.12% <ø> (ø)` | |
| [config-service](https://app.codecov.io/gh/apache/texera/pull/4834/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/texera/pull/4834?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org