-
Notifications
You must be signed in to change notification settings - Fork 124
682 Add support for asynchronous workflow test execution and SSE streaming #3816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ivicac
commented
Dec 29, 2025
- 682 Update endpoints
- 682 Generate
- 682 Add support for asynchronous workflow test execution and SSE streaming
- 682 SF, spotbugs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds support for asynchronous workflow test execution with Server-Sent Events (SSE) streaming, enabling real-time progress monitoring and control of workflow test runs.
Key Changes:
- Introduced asynchronous workflow test execution with start/await pattern replacing synchronous execution
- Added SSE streaming endpoints for real-time event broadcasting (job status, task progress, errors)
- Implemented event listener infrastructure using Caffeine caches for job lifecycle monitoring
- Added stop/attach capabilities for workflow test runs
Reviewed changes
Copilot reviewed 20 out of 25 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| WorkflowTestApiController.java | Refactored to support SSE streaming with new endpoints for starting, stopping, and attaching to workflow tests; manages emitters and pending events with Caffeine caches |
| WorkflowTestFacade.java & WorkflowTestFacadeImpl.java | Added async methods (startTestWorkflow, awaitTestResult, stopTest) and event listener registration methods; refactored testWorkflow to use new execution pattern |
| JobTestExecutor.java | Refactored execute method to use start/await pattern; added comprehensive listener registration methods; removed direct JobService dependency |
| JobSyncExecutor.java | Added event listener support with Caffeine caches; introduced new public methods for async job execution (startJob, awaitJob, stopJob); refactored event handling to notify registered listeners |
| WorkflowTestFacadeTest.java | Added comprehensive test coverage for new async execution methods and listener functionality |
| WorkflowTestApiControllerTest.java | Added extensive tests for SSE streaming, stop/attach functionality, and event buffering behavior |
| JobSyncExecutorTest.java | New test file covering listener notifications and job lifecycle management |
| openapi.yaml | Updated API specification to reflect new SSE endpoints (commented out) and stop endpoint |
| *.gradle.kts | Added Caffeine cache dependency to support listener caching infrastructure |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...service/src/test/java/com/bytechef/platform/workflow/test/facade/WorkflowTestFacadeTest.java
Outdated
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Outdated
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
25f085c to
dabfe60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 25 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Outdated
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
...service/src/test/java/com/bytechef/platform/workflow/test/facade/WorkflowTestFacadeTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...service/src/main/java/com/bytechef/platform/workflow/test/facade/WorkflowTestFacadeImpl.java
Outdated
Show resolved
Hide resolved
...service/src/main/java/com/bytechef/platform/workflow/test/facade/WorkflowTestFacadeImpl.java
Outdated
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Outdated
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Outdated
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 11 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...s/platform/platform-workflow/platform-workflow-test/platform-workflow-test-rest/openapi.yaml
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Outdated
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...s/platform/platform-workflow/platform-workflow-test/platform-workflow-test-rest/openapi.yaml
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Outdated
Show resolved
Hide resolved
...service/src/main/java/com/bytechef/platform/workflow/test/facade/WorkflowTestFacadeImpl.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 12 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...rkflow/platform-workflow-test/platform-workflow-test-rest/generated/.openapi-generator/FILES
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
… 'awaitTestResult' completes, which could leave resources in an inconsistent state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Outdated
Show resolved
Hide resolved
3898b29 to
393f391
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 20 out of 26 changed files in this pull request and generated 11 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...latform-coordinator/src/main/java/com/bytechef/platform/coordinator/job/JobSyncExecutor.java
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Show resolved
Hide resolved
...st/src/main/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiController.java
Show resolved
Hide resolved
...rc/test/java/com/bytechef/platform/workflow/test/web/rest/WorkflowTestApiControllerTest.java
Show resolved
Hide resolved
|


