Skip to content

Conversation

@ivicac
Copy link
Contributor

@ivicac ivicac commented Dec 29, 2025

  • 682 Update endpoints
  • 682 Generate
  • 682 Add support for asynchronous workflow test execution and SSE streaming
  • 682 SF, spotbugs

@ivicac ivicac changed the title 682 server 682 Add support for asynchronous workflow test execution and SSE streaming Dec 29, 2025
Copy link
Contributor

Copilot AI left a 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.

@ivicac ivicac force-pushed the 682_server branch 2 times, most recently from 25f085c to dabfe60 Compare December 29, 2025 10:30
@ivicac ivicac requested a review from Copilot December 29, 2025 10:31
Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

… 'awaitTestResult' completes, which could leave resources in an inconsistent state
Copy link
Contributor

Copilot AI left a 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.

@ivicac ivicac force-pushed the 682_server branch 2 times, most recently from 3898b29 to 393f391 Compare December 29, 2025 22:13
@ivicac ivicac requested a review from Copilot December 29, 2025 22:13
Copy link
Contributor

Copilot AI left a 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.

@sonarqubecloud
Copy link

@ivicac ivicac merged commit 983b6a4 into master Dec 30, 2025
7 checks passed
@ivicac ivicac deleted the 682_server branch December 30, 2025 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants