Test/event handler start agent e2e - #1547
Draft
kowser-orkes wants to merge 7 commits into
Draft
Conversation
Verifies Spring context loads and MetadataService/ExecutionService/DefaultEventProcessor autowire.
Ports registerHelloWorldAgent/ensureTaskDef from ConductorAgentEndToEndTest. Adds a smoke test confirming the registered WorkflowDef is flagged isAgent().
Registers an EventHandler with a single start_agent action carrying
${...} placeholders for prompt/sessionId/idempotencyKey.
Fires a genuine Message through DefaultEventProcessor.handle(); the queue is stubbed only because it's swappable transport, not the thing under test.
Fires a real event, spies WorkflowExecutor.startAgentExecution() to capture the resolved AgentStartRequest and executionId (Redis-only correlationId search isn't available without Elasticsearch), then awaits the started agent workflow to COMPLETED.
Spies ExecutionService.updateEventExecution() to observe the FAILED EventExecution DefaultEventProcessor.execute() records internally — the message still gets acked either way, so failure isn't visible via queue interaction alone.
Full test-harness module regression and the new test class both pass after formatting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request type
NOTE: Please remember to run
./gradlew spotlessApplyto fix any format violations.Changes in this PR
Describe the new behavior from this PR, and why it's needed
Issue #
Alternatives considered
Describe alternative implementation you have considered
Enterprise UI Playwright Tests
Every PR automatically triggers the enterprise UI Playwright E2E test suite.
Tests run against conductor-ui
mainby default. To test against a differentconductor-ui branch, add this line anywhere in the PR description: