feat: add K8s integration test suite for cluster mode#61
Merged
Conversation
Adds a full k3d-based integration test that deploys 3 replicas with a real PostgreSQL coordinator to verify leader election, WS mesh, and event distribution across pods. Also adds dataSourceOverride passthrough to FlowcoreDataPumpCluster for test injection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Events were being processed before workers connected. Now delivers events in batches of 10 after a 15s startup delay, giving the WS mesh time to form so events get distributed across pods. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When notifier.type is "nats", NATS handles both event notifications and cluster event distribution via request/reply with queue groups, replacing the WS mesh for inter-pod communication. Shared NATS connection is reused by both notifier and distributor. WS mode remains unchanged as fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
dataSourceOverridepassthrough toFlowcoreDataPumpClusterto enable test injection without Flowcore API credentialsTest plan
deno test -A— existing unit tests still pass (verified locally)deno lint && deno fmt --check— clean (verified locally)buildjob passes (lint, fmt, test, npm build)integration-testjob passes (k3d cluster, 3 pods, 100 events distributed across >= 2 pods, exactly 1 leader)bash integration/run-integration.sh🤖 Generated with Claude Code